Archive for Tháng Sáu 28th, 2005
Two or more jasper files in one pdf only
Có hai jasperreports và muốn combine thành 1 PDF? Chưa có giải pháp? Thử giải pháp này xem sao :
http://sourceforge.net/forum/forum.php?thread_id=1298338&forum_id=113529
Quote
If you are using net.sf.jasperreports.engine.export.JRPdfExporter to get the byte stream to send to the browser, you can call net.sf.jasperreports.engine.export.JRPdfExporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, list) where list is an ArrayList containing the JRPrints to be concatenated into one PDF. e.g.
List printList = new ArrayList();
printList.add(jrPrint1);
printList.add(jrPrint2);
ByteArrayOutputStream pdfOutput = new ByteArrayOutputStream();
JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, printList);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, pdfOutput);
exporter.exportReport();
byte[] results = pdfOutput.getBytes();
/Quote
Add comment Tháng Sáu 28, 2005
Yet, another framework : Wicket 1.0, web framework, released
Híc híc, học cái framework này chưa xong, đã nghe có framework khác hay hơn
. Chẳng thể nào có thời gian để xem xét thử xem thế nào, chỉ kịp đọc các discussion tại theserverside.com, với một số ý kiến xem ra rất hài lòng về anh chàng Wicket này (So với Tapestry).
Dù chẳng hiểu gì
, nhưng dù sao cũng nên note lại để lỡ sau này cần thì sao
.
Xem thêm tại trang chủ của Wicket : http://wicket.sourceforge.net/
Add comment Tháng Sáu 28, 2005
Project Dependencies Using Ant
Dùng để biên dịch, đóng gói, … thì thật là hữu ích … cho các project nhỏ, không có sub-project hay có sub-project nhưng đã được biên dịch trước đó
. Vấn đề đặt ra là làm sao giải quyết sự phụ thuộc của các sub-project để khi biên dịch và/hoặc phân phối, đóng gói… cho đúng?
Tác giả Joe Schmetzer đưa ra một giải pháp, xem ở đây :
Add comment Tháng Sáu 28, 2005