473,434 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

calling jrxml from jsp...plz urgent

hi All,

i got a problem while running jrxml file from jsp page.
i have written code to compile jrxml file, run the file and export to pdf.
the code is running fine, pdf file is also generating...but pdf is not displaying while sending the request, it is not taking the path of pdf file...
i have given exact path.....but it is not taking....
i tried in somany ways but no use.......
please help me..i need it urgent.

here is my code of jsp
Expand|Select|Wrap|Line Numbers
  1. try{
  2. String destrep="C:/ReportsPDF/Report.pdf";
  3. Map parameters = new HashMap();
  4. parameters.put("SUBREPORT_DIR","C:/Reports/");
  5.  
  6. JasperDesign jasperDesign = JRXmlLoader.load(ReportFile);
  7. JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
  8. JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, con);
  9. JasperExportManager.exportReportToPdfFile(jasperPrint,destrep);
  10. response.sendRedirect(destrep);
  11. con.close();
  12. rs.close();
  13.   }
  14.  
here Report.pdf is generating in C:/ReportsPDF/
but it is not displaying it is giving me the error like
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. type Status report
  4.  
  5. message /ReportProj/Pages/C:/MSReportsPDF/Report.pdf
  6.  
  7. description The requested resource (/ReportProj/Pages/C:/ReportsPDF/Report.pdf) is not available.
  8.  
please help me.....
Sep 11 '07 #1
0 2355

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
4
by: Miguel Dias Moura | last post by:
Hi, I just uploaded a web site and i am getting an error. I have a script which sends form values to an email using AspNetEmail. The script was working when i was calling the script like...
1
by: Sen K via .NET 247 | last post by:
(Type your message here) Hi, Any help is appreciated. I have a situation wherein i need to compact access db after somebusiness logic through VB.NET.I've written a function in VBA tocompact...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
1
by: sck10 | last post by:
Hello, I am calling a function using vb and want to convert it to c#. When moving from vb 1.1 to vb 2.0, I can use the following: text='<%# AddBlankRowMenu(Eval("strMenuType")) %>' to call the...
0
by: shanmukhi | last post by:
Hi All, i have written a code to run jrxml file from jsp page... but im not able to run the report please check my code <%@ page language="java"...
1
by: Akino877 | last post by:
Hello, If I have a .jrxml file, how do I compile it into a .jasper file? Could you please give a me instructions to do this? Thank you for your help. Akino.
23
by: Stewart Berman | last post by:
I am trying to develop a wrapper class for the Windows API functions in Visual Studio 2008: GetOpenFileName GetSaveFileName I put together a starter class: using System; using...
1
by: Sundhas | last post by:
Hey! I am working on jrxml to create dynamic re0ports. I have parameterized the columns i.e. the jrxml for that report can be used to generate other reports as well. However, i have not managed...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.