On Mar 23, 2007, at 2:49 PM, TJ Hanson, PhD wrote:

> If a user does not select the Page Setup... menu item, which displays
> the OpenPrinterDialog, then PageSizeSet remains as FALSE and the
> PageWidth and PageHeight are both 0.
>
> Most computers will default to portrait, but some people have their
> computer set to default to landscape. I need to know if a document is
> being printed in landscape or portrait so I can generate headings at
> the top of a new page. If the user does not specify via the
> OpenPrinterDialog, how can I determine the printing orientation?

Compare G.Width and G.Height. If the width is greater than the  
height, you're printing landscape.

--
Brad Rhine
[EMAIL PROTECTED]
http://bradrhine.com
Tangelo: Web Publishing... With A Twist!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to