views:

54

answers:

1

DynamicReport firstDynaRep = new DynamicReport(); firstDynaRep.setTemplateFileName("./landscape.jrxml"); firstDynaRep = firstReport.build();

DynamicReport not taking it as a template. So the width of the page is not increased. So is there any way to increase the width of the page in dynamicjasper report because i want the report in landscape orientation.

A: 

I haven't used DynamicJasper for a long time, but I believe you should be using setTemplateFileName() on a DynamicReportBuilder and not on DynamicReport

DynamicReportBuilder drb = new DynamicReportBuilder();
drb.setTemplateFile("./landscape.jrxml");
DynamicReport firstDynaRep = drb.build();
gedim
I am used FastReportBuilder. I check the code just you specified ,but its not working with FastReportBuilder.
chetan