Jump to content
We've recently updated our Privacy Statement, available here ×

load jasperdesign from xml and compile?


Recommended Posts

By: Kuo Lung Ching - ching_kuo

load jasperdesign from xml and compile?

2003-01-28 19:56

Hi...

I load jasperdesign from xml and compile.

Why can't get .jasper file and export report to pdf and html ???

 

JasperDesign jdesign=JasperManager.loadXmlDesign("BasicReport.xml");

JasperReport jreport=JasperCompileManager.compileReport(jdesign);

Map parameters=new HashMap();

parameters.put("ReportTitle", "Basic JasperReport");

parameters.put("MaxSalary", new Double(25000.00));

 

JasperPrint jprint=JasperFillManager.fillReport(jreport,parameters,new JREmptyDataSource());

 

JasperManager.printReportToPdfFile(jprint, "BasicReport.pdf");

JasperExportManager.exportReportToHtmlFile (jprint,"BasicReport.html");

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...