gilbertngandu / flexreport

Automatically exported from code.google.com/p/flexreport
1 stars 0 forks source link

Blank pages are printed in between each real page #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to http://www.kemelyon.com/flexreport/ on a Mac (in Safari)
2. Print the report

What is the expected output? What do you see instead?
Expected to have 2 pages of content. Got 4 pages: 1st page, blank page, 2nd 
page, blank page.

What version of the product are you using? On what operating system?
Mac OSX 10.5, Safari

This is reproducible every time.

Original issue reported on code.google.com by ebli...@gmail.com on 4 Mar 2008 at 2:38

GoogleCodeExporter commented 8 years ago
Aaron Leavitt February 28th, 2008 4:47 pm wrote:

"Got it sorted. The guestimate values for the document template values weren’t
matching what our printer actually wanted. Added the following values to 
doPrint in
the Document class after the printJob is started.

template.height = printJob.pageHeight;
template.width = printJob.pageWidth;

The print preview is now only an estimate, but printing works correctly every 
time."

Original comment by matt...@gobigradio.com on 7 Mar 2008 at 3:26

GoogleCodeExporter commented 8 years ago
Where inside doPrint() did you add this code to make it work right?

Thanks,
Andrew Westberg

Original comment by andrewwe...@gmail.com on 10 Oct 2008 at 6:06

GoogleCodeExporter commented 8 years ago
I am on a PC and just looked at the example quoted above. I too get a blank 
page in
between each real page. 

Original comment by woods524...@yahoo.com on 10 Jun 2009 at 11:06

GoogleCodeExporter commented 8 years ago
I'm still getting blank pages. I tried the suggestion above with out any luck. 
Any 
one figure this one out?

Original comment by brock.co...@gmail.com on 7 Aug 2009 at 1:49

GoogleCodeExporter commented 8 years ago
It work. 
Thank you Aaron . 

if (printJob.start()) {
   setUpTemplate();
   Application.application.addChild(template);
   _template.height = printJob.pageHeight; // add here
   _template.width = printJob.pageWidth;   // add  here
   _template.validateNow();
   _template.reset();

Original comment by cza...@gmail.com on 11 Dec 2009 at 10:45