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