Missing last line(s) when print from JasperViewer

Hi,

I’m having the following situation.

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?

Thanks

Martin

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

Hi Tom,

When I export the report to pdf, and print the pdf from Adobe, then it is printing correct.

So looks to me that the problem is in JasperViewer and not in printersettings.

Kind regards

Martin

Martin,
if you run the report to the viewer and then select “save to” to PDF do you have the error or is it only for “save to printer”?
Tom

I do “Save as” and select filetype pdf within Jasper Viewer
Write file to disk
And open in Acrobat and then print.

There is no errormessage at all.

I’m not using some pdf printer tool

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

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

Hi 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.

Kind regards

Martin

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

Hi Tom,

I installed iReports 3.0.0 on my PC
I opened the report created with 2.0.4 in the 3.0.0 version.

In the 3.0.0 I tested the report, compiled it and saved it.

Then I send the .jrxml and .jasper file to my customer.

Unfortunately the last line is still not visible on the print.

Do you have any other suggestions?

Kind regards

Martin

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. :D

Good Luck!
Tom

The problem has been solved

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.

Martin