Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts

By: jack - jackysan55


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


//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();




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



// impression du document

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


// visualisation du rapport


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