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
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
2 Answers:
Posted on May 9, 2007 at 8:14am
You can read the referred discussion [url=http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func....
Regards,
Lucian
Regards,
Lucian