Jump to content
Changes to the Jaspersoft community edition download ×

why the error message?

2004 IR Help

Recommended Posts

By: navy - navydhc

why the error message?

2004-07-29 18:32

I am a newer in JasperReports . a few days ago,I had writed a query.jsp . follow is the code:


File reportFile= new File(application.getRealPath("/ybcx.jasper"));


String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs";




Connection conn =DriverManager.getConnection(url,"sa","navydhc");

Map parameters=new HashMap();


System.out.print("start the report");


byte[] bytes =JasperRunManager.runReportToPdf(reportFile.getPath(),parameters, conn);


but when I run it ,it also prompt me the error message :

start the report




Help viewer error

URL: Unable to open location: Document not found on server


I am very pain,please help me!

thanks advance!!!!!!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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