Open GoogleCodeExporter opened 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
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
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
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
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
Original issue reported on code.google.com by
ebli...@gmail.com
on 4 Mar 2008 at 2:38