I have a report created with Jasper. The report is shown in the Jasper Viewer.
When printing the report from the viewer, on some printers (specially HP deskjet/officejet printers) the last (2-3) line(s) are not printed or half printed
On a laser printer the report was printed correctly.
When the report is not printed directly from Jasper Viewer, but first exported to a PDF-document and then open the PDF document in Acrobat Reader and print from Acrobat, then the report is printed correcly also on the HP deskjet printers.
Is there someone who knows what causes this and how I can solve this?
HI Martin,
My experience with this symptom is that the margins are not set correctly when sending to a printer. Check the margins for your printer type.
Regards,
Tom
On of my colleagues told me that perhaps some postscriptdriver must be installed on that printer.
Could that be a reason?
Problem is that we don’t have found a postscript driver for all the printers with this problem.
But before installing this driver, I would like to know if this could be the reason, to avoid that my customer will have other problems with printing.
Martin,
What version of the JasperReports plugin do you use?
What version of Java?
What printer is problematic (model etc)?
Do you know what version of the JasperReports jar file you use (look in the plugins folder for a sub-folder for servoy_jasperreports) probably 3.0.0?
If you run the report from the latest iReports (i.e. not using the servoy plugin) do you get same results to that printer?
I would have thought that a lack of postscript driver would cause no print out at all.
For the case of the PDF there might be automatic scaling going on to ensure printable area of a page is used and not the small unprintable area near the sides.
Try upgrading the printer driver for the problematic printers and see if it changes.
I have upgraded the servoy plugin that uses the next version of JasperReports. I am testing it out at this time before sending back to the Google code project. It has more export types. If you desire to try it out you are welcome. Although I doubt it fixes this issue.
Tom
I don’t know how I can find out all the version numbers, but the following I can provide you:
I’m using iReports/Jasper 2.0.4 to develop. Servoy 3.5.7
The Servoy plugin is the latest plugin (july 2008)
Java 1.6 update 7
Printers: HP LJP4010, HP Officejet all in one 7780
In my Jasper plugin directory there is indeed jasperreports-3.0.0.jar (what I didn’t expect, because I’m not using iReports 3.0.0, could that be a reason?)
I don’t have iReports on a computer in my customer netwrok, so that I have to test later.
The difference in the iReports/jasperreports version 2.0.4 and the latest 3.0.0 might affect the outcome. I know there were some changes and the iText version might also be updated. So I would try to use the latest iReport compatible with the JasperReports 3.0.0 and see if any improvement.
Tom
I could examine the design file and see if any obvious anomalies.
I could try to use another printer here (but it is North American letter size paper not A4 that I assume you/your customer use?).
On the HP printers check to ensure that the paper settings are correct for your paper and not reset to North American sizes by some power reset?
It seems odd that the Ink Jet printer is the only printer that is bad.
I took a very good search of the problems related to the “HP Officejet all in one 7780” and found a lot of customers complaining similar to your own.
The basic advice was to replace the printer with another “brand” - not sure but it appears that HP may not be supporting this anymore!
To shortcut your customers complaints ask them to investigate the internet problems related to this printer.
It was a printer setting. The HP-Officejet printer has a setting “Use minimum margins”.
If that setting is on, then the last line is not printed.
When putting this setting off, print is like expected
So in case you are missing last line, check the printer settings, and make any chance permanent.