Jump to content

Error Occured, but succeed to create a PDF


Ota_Jun

Recommended Posts

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:mainmain.jrxml

and subreport is in:c:subreportsub.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

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

Link to comment
Share on other sites

  • 1 year later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.

Link to comment
Share on other sites

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