G
Guest
Hi,
I try to use my own PreviewDialog with a PrinPreviewControl, to preview a
document of type MyPrintDocument, and I want to implement the PrintRange
functionnality (print some pages between 2 values).
I noticed that we can specified the PrintRange, FromPage and ToPage
properties of the PrintDocument.PrintSettings object, but, as said in MSDN :
"The FromPage, ToPage and PrintRange can also be set programmatically,
though the PrintDocument.PrintPage implementation is the same."
So I tried to do that in my class, inherited from PrintDocument, but I
failed ! In the PrintPage EventHandler, I made a treatment that paint
graphics for the specified pages, but I have blank pages ; I also tried to
specified a virtual printer for the page to ignore, in the QueryPageSettings
EventHandler, but it throws an exception...
So, please, how to proceed ?
Thanks in advance.
I try to use my own PreviewDialog with a PrinPreviewControl, to preview a
document of type MyPrintDocument, and I want to implement the PrintRange
functionnality (print some pages between 2 values).
I noticed that we can specified the PrintRange, FromPage and ToPage
properties of the PrintDocument.PrintSettings object, but, as said in MSDN :
"The FromPage, ToPage and PrintRange can also be set programmatically,
though the PrintDocument.PrintPage implementation is the same."
So I tried to do that in my class, inherited from PrintDocument, but I
failed ! In the PrintPage EventHandler, I made a treatment that paint
graphics for the specified pages, but I have blank pages ; I also tried to
specified a virtual printer for the page to ignore, in the QueryPageSettings
EventHandler, but it throws an exception...
So, please, how to proceed ?
Thanks in advance.