Click to See Complete Forum and Search --> : getting page size information


Barry Neyer
March 29th, 1999, 07:48 PM
I am trying to do what should be simple. I would like to get the page size from the printer information and use this for my view. When the user changes the page size, such as changing printers or changing from portrait to landscape, I would like to change the width of my view. When I used the wizard to add the OnFilePrintSetup, it gave me a blank function. I could get the dialog box to make changes, but these were not reflected when the framework did the print preview or print. There must be some simple way to tell the framework what the new print setup information is, but I can't find it.

Walter I An
April 2nd, 1999, 05:23 AM
What you are looking for is maybe "DeviceCapabilities()" function.

Good luck...

Walter I An

April 2nd, 1999, 02:53 PM
GetDeviceCaps will allow you to get the parameters that define the printable (or viewable) area.