Problem in Pdf format

By: ajay kumar - ajaykumar
Problem in Pdf format
2002-10-25 03:19
i wrote the following code to generate my report in pdf format...it just printing some junk characters on the browser..its not invoking the acrobatr reader at all..how i have to run directly from my servlet.

pdfname = JasperRunManager.runReportToPdfFile(reportFile.getPath(),parameters, con);

if (bytes != null && bytes.length > 0)
{
response.setContentType("application/pdf");
response.setContentLength(bytes.length);
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(bytes);
ouputStream.flush();
ouputStream.close();
}


By: Teodor Danciu - teodord
RE: Problem in Pdf format
2002-10-27 13:34

Hi,

Try these:

https://sourceforge.net/forum/message.php?msg_id=1632797
https://sourceforge.net/forum/message.php?msg_id=1632973

I hope this helps.
Teodor
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

2 Answers:

I am not able to access the link specified. I have the same issue. Can someone please help?
sreepriyar's picture
Joined: Apr 27 2007 - 6:30am
Last seen: 16 years 5 months ago
You can read the referred discussion [url=http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func....

Regards,
Lucian
lucianc's picture
87239
Joined: Jul 17 2006 - 1:10am
Last seen: 30 min 38 sec ago
Feedback