how to compile .jrxml file into .jasper

igorbarkon's picture
Joined: Dec 2 2013 - 12:38pm
Last seen: 9 years 9 months ago

1 Answer:

String sourceFileName = "D://../../DemoReportPT.jrxml";  
JasperCompileManager.compileReportToFile(sourceFileName);

The .jasper file gets generated at the same location with the same name as your jrxml file, unless and until you have not specified the name explicitly in the jrxml file.

abhimanyu.prasad's picture
Joined: Nov 25 2013 - 2:18am
Last seen: 8 years 5 months ago
Feedback
randomness