Error Occured, but succeed to create a PDF

Hi, everyone

I don't know this is wrong or not.

I have a main report (iReport 3.7.6, Win7-32bit) in this directory:c:\main\main.jrxml

and subreport is in:c:\subreport\sub.jrxml

main report refers subreport  by configuration of "Subreport Expression" its value is "../subreport/sub.jasper".

i can see preview main report, but error(warning?) occured.

Unable to locate the subreport with expression: "$P{SUBREPORT_DIR} + "sub.jasper"". java.lang.Exception: ../subreport/sub.jrxml not found. 
    at com.jaspersoft.ireport.designer.utils.Misc.locateFileFromExpression(Misc.java:1373) 
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.compileSubreports(IReportCompiler.java:1403) 
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:508) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

please tell me how to delete error message.( i want to use relative path for subreport)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

i have resolved this problem.

according to ireport ultimate guide, we can't use relative path for subreport.

so, it mast set absolute path or set only report name and put subreport into main report directory.

thank you

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ota_Jun's picture
Joined: Jul 16 2013 - 6:19pm
Last seen: 9 years 1 week ago

1 Answer:

In the corporate world, many official documents are sent to the business associates, taxation department, suppliers or client in the form of PDF files.  Therefore, the majority of people working in the business offices find it necessary to install PDF conversion enterprise software on their computer systems, so that it helps converting the MS Word and MS Excel, or JEPG files into PDF before attaching them with the email.

dannyrevera's picture
Joined: Feb 7 2015 - 1:21am
Last seen: 8 years 1 month ago
Feedback