Unable to Affect Printer Paper Orientation?

Scott Rossi scott at tactilemedia.com
Thu Nov 18 03:17:44 EST 2010


> There doesn't seem to be any way to force the Print dialog to accept the
> landscape setting.
> ...
> Is there anything else I can try short of creating yet
> another dialog for users to click "No, really, I want to print landscape!" ???

[answering my own question]

I am admittedly new to LiveCode's printing features, but it turns out I was
missing a few key pieces of information...

1) I was using the form "answer printer" when apparently one needs to use
"open printing with dialog".  Not sure why both options exist but the former
appeared to be unaffected by manually setting printer properties (and led to
a couple of days of aggravation).

2) I found this tidbit buried in the user contributed notes of the Rev 4
Dictionary stack: "If you change the orientation of the printed page by
setting the value of the PrintPaperOrientation property, the value of the
PrintRectangle does not change to match it until you open printing."  This
info was key in tracking down paper orientation problems.  Many thanks to
the anonymous poster who added this to the dictionary.

Maybe the above will be helpful for anyone else struggling with print
orientation issues.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




Recently, I wrote:

> I'm wondering if anyone has come across a print dialog situation that has
> multiple ways of setting paper orientation (LC4, Windows XP).
> 
> After beating my head against the wall for several hours, I realized that the
> landscape paper  setting in the Page Setup dialog in XP is not being honored
> in the main Print dialog. Even when I explicitly script "set the
> printPaperOrientation to "landscape" before opening the system print dialog,
> the orientation setting shows up as "Portrait".  In my situation, the paper
> orientation is found in a secondary dialog that is accessed by clicking the
> Preferences button in the main print dialog.
> 
> There doesn't seem to be any way to force the Print dialog to accept the
> landscape setting.  In the Page Setup dialog, setting landscape orientation
> works as expected.  If I set the paper orientation manually and bypass the
> print dialog, I can print landscape no problem, so really the only issue is
> the main print dialog.  Is there anything else I can try short of creating yet
> another dialog for users to click "No, really, I want to print landscape!" ???
> 
> Thanks for any suggestions.





More information about the use-livecode mailing list