CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    6

    getting page size information



    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.

  2. #2
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    100

    Re: getting page size information

    What you are looking for is maybe "DeviceCapabilities()" function.

    Good luck...

    Walter I An


  3. #3
    Guest

    Re: getting page size information

    GetDeviceCaps will allow you to get the parameters that define the printable (or viewable) area.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured