Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sending jasper report directly to printer  RSS feed

Ubq Sunil
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am a newbi to Jasper reports.I have used Jasper reports in my web application for reporting purpose.I have a strange problem w.r.t printing jasper reports.I am sending the jasper report directly to a dot matrix printer.It is skipping some lines(say 8 lines) after printing 25 lines and starts printing the last lines.This is NOT happening always.This happens after taking some 20 to 30 printouts.But,if I take the same printout again, it prints all the lines.we are using apache tomcat.
Can anyone please help me out on this issue.
javascript: x()
Attaching the code below...

File reportFile = new File(getServletContext().getRealPath("reports//bill.jasper"));

JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, param, conn );

any help would be really appreciated..
Thanks in advance,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!