CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    28

    Escape from Printing

    I'm printing a datatable and once the user has pressed the print button, the QueryPageSettings event handler checks the width of the document and adjusts the paper to landscape if needed.

    That bit works.

    I also want to then check if the document is still too wide to fit on landscape paper and escape from the printing process to allow the user to select fewer columns to print.

    How do I escape from the printing process when I'm in the QueryPageSettings event handler?

    TIA
    I'm using .NET Framework 3.5

    I'm planning to be spontaneous tomorrow

  2. #2
    Join Date
    Oct 2006
    Posts
    28

    Re: Escape from Printing

    I've found a work around solution:

    I disable the print button until a successful print preview (where everything fits of the page) has been completed
    I'm using .NET Framework 3.5

    I'm planning to be spontaneous tomorrow

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