Jump to content
JasperReports Library 7.0 is now available ×

Recommended Posts

By: jack - jackysan55

pdf

2006-03-21 19:46

how to export from .jrxml to .pdf?? help!

 

 

By: lazzeroni - lazzeroni

RE: pdf

2006-03-28 04:43

JasperDesign jasperDesign=JRXmlLoader.load("C:\Documents and Settings\steve\Bureau\demonstation\ireport\scenario2\senario2.jrxml");//redéfinir le fichier source xml

//VERIFIER POUR XML

//JasperDesign jasperDesign = JRXmlLoader.load("C:\senario.xml");

JasperReport jasperReport=JasperCompileManager.compileReport(jasperDesign);

// JasperReport jasperReport=JasperManager.compileReport(jasperDesign);

 

 

//envoie des données passé en parametre

Map parameters=new HashMap();

parameters.put("titre","titre");

 

 

//exécution du rapport avec insertion dans la base

JasperPrint jasperPrint=JasperFillManager.fillReport(jasperReport,parameters,conn);

 

 

//format pdf

// JasperExportManager.exportReportToPdfFile(jasperPrint,"c:\senario1jasper.pdf");

 

//format xml

//JasperExportManager.exportReportToXmlFile(jasperPrint,"c:\senariojasper.xml",true);

 

// impression du document

// JasperPrintManager.printPage(jasperPrint,1,true);

 

// visualisation du rapport

JasperViewer.viewReport(jasperPrint);

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...