2005 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: steveT - stevetucknott Command Line Execution 2005-05-31 01:06 Is there a way of 'running' the designed report from the 'command line'? Assuming that we have used iReport to design and create the jrxml file, and have compiled that report - can I then (somehow) run that report without going through iReport? Effectively to parameterise any input parameters and the required output format and file path/name...ie run ./myReport.jasper --myParam1 "abcdef" --myParam2 123 --outputFormat "PDF" --outputFile "/tmp/fred" Is that possible - or am I asking the wrong list (presumably this is a jasperReports issue?) By: Giulio Toffoli - gt78 RE: Command Line Execution 2005-05-31 07:47 You can't using ireport, but it should be no complex to write an application that do exactly this. Giulio By: steveT - stevetucknott RE: Command Line Execution 2005-05-31 23:36 ...presumably thats a Java application?........ Is there a way to use a scripting tool to run jasperReports with the compiled .jasper file? By: Giulio Toffoli - gt78 RE: Command Line Execution 2005-06-01 15:55 With JasperReports is shipped an ant task to compile reports. You can modify it to export too and use ant. Giulio By: steveT - stevetucknott RE: Command Line Execution 2005-07-27 02:42 Just in case anyone has the same problem .... I have now written a small Java app (the code is appalling as I'm not a Java programmer) that will run a predesigned report and either/and/or preview it or format an output file (pdf,html etc). It picks up any parameters required by the report and prompts the user for the values. If anyone is interested, contact me off list. Link to comment Share on other sites More sharing options...
unnipillai Posted May 23, 2008 Share Posted May 23, 2008 Dear Steve/Giulio, Can you have a sample application or script whic run a report as a batch process by varying some the parameters like run ./myReport.jasper --myParam1 "abcdef" --myParam2 123 --outputFormat "PDF" --outputFile "/tmp/fred.pdf" Link to comment Share on other sites More sharing options...
mdahlman Posted May 24, 2008 Share Posted May 24, 2008 unnipillai, Did you download jasperreports-<ver>-project.zip? It's available as a download. That's probably the easiest starting point for a small app that compiles/generates/displays reports. If you have questions about using it, post to the JasperReports forum. Regards,Matt Link to comment Share on other sites More sharing options...
unnipillai Posted May 26, 2008 Share Posted May 26, 2008 Matt, I have download the iReports source code and tried running a compiled report through command line ,but happening. My Concerns for the product is automatic execution of iReports in a shell script or batch file. iReports.bat report1.jrxml (report1.jasper) -username -password - timestamp -o ouput.pdf I request you to look into this . Because Datavision reports provide this facility like the following datavision.bat -c output.pdf E:\DataVision-Reports\samplereport1.xml Thanks,Unni Link to comment Share on other sites More sharing options...
mdahlman Posted May 28, 2008 Share Posted May 28, 2008 Unni, Did you download jasperreports-<ver>-project.zip? That's probably the easiest starting point. It shows command line compilation and filling of reports. It seems to be exactly what you're describing. Regards,Matt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now