[jasperreports-questions] Setting style at run-time

2006-01-17 Thread Pushkar
	I am using iReport 0.5.3 with JasperReports 1.1.1. I have defined a style in my report using iReport and applied it to some text fields (let's call this style 'col_header'). When I run the report from my java program, it works well and also shows the text fields with the applied style. Now, is there a way, where I can get col_header style from report during run-time and modify some of it's properties. I have tried the following way, but this did not work. It still shows the text fields with earlier style. Basically I want to externalize the style for my reports(similar to css in HTML). Any help on this will be greatly appreciated.//Code Snippet		JasperPrint jasperPrint = jasperPrint(dataSource, reportParameters, templateLocation);JRStyle style = jasperPrint.removeStyle("col_header");//Altering few properties in style		style.setFontSize(12);		style.setForecolor(new Color(50,50,50));//Adding the modified style to the report		jasperPrint.addStyle(style);JasperExportManager.exportReportToPdfFile(jasperPrint, "/sample.pdf");	                 //Thanks,Pushkar

[jasperreports-questions] Setting style at run-time

2006-01-23 Thread Pushkar
I am using iReport 0.5.3 with JasperReports 1.1.1. I have defined a style in my report using iReport and applied it to some text fields (let's call this style 'col_header'). When I run the report from my java program, it works well and also shows the text fields with the applied style. Now, is there a way, where I can get col_header style from report during run-time and modify some of it's properties. I have tried the following way, but this did not work. It still shows the text fields with earlier style. Basically I want to externalize the style for my reports(similar to css in HTML). Any help on this will be greatly appreciated.//Code Snippet		JasperPrint jasperPrint = jasperPrint(dataSource, reportParameters, templateLocation);JRStyle style = jasperPrint.removeStyle("col_header");//Altering few properties in style		style.setFontSize(12);		style.setForecolor(new Color(50,50,50));//Adding the modified style to the report		jasperPrint.addStyle(style);JasperExportManager.exportReportToPdfFile(jasperPrint, "/sample.pdf");	                //Thanks,Pushkar

Re: [jasperreports-questions] [NEWBIE] Large report and print directly

2006-09-11 Thread Pushkar
Hi,		I believe you should look at JRFileVirtualizer Class. This will allow Jasper to load data into memory in chunks(similar to virtual memory concept of OS), thus avoiding the Java OutOfMemoryError.Yes, you can print a jasper report without displaying it. Following is a sample code snippet which should be of some help to you.		//The File Virtualizer location should be configurable.		JRFileVirtualizer virtualizer = new JRFileVirtualizer(2, "tempLocation");		parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);		JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource);		               JasperPrintManager.printPage(jasperPrint, 0, false);I would also suggest you to look for writing your own custom data source class and using it.Regards,PushkarOn Sep 11, 2006, at 12:23 PM, yves pielusenet wrote:Hello,I'm new to jasperreport. I have to generate a very big print job (1 00 pages). can jasper deals with it ? is there a good way to do this ?I want to print this report without display it on the screen. Is itpossible ?thank you :)-- yves piel-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___jasperreports-questions mailing listjasperreports-questions@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jasperreports-questions -
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions