I can set the PrintDocument.DefaultPageSettings = a pagesettings variable.
I then set the PrintDialog.Document = PrintDocument and show the PrintDialog, checking the return value for OK, which works fine. I want to retrieve the printersettings selected from the PrintDialog, but all I see is the PrinterSettings collection which doesnt give me the selected printing options (Landscape (yes, I can see the LandscapeAngle so I can work around that), PaperSize, PaperSource, and PrinterResolution). I can see their collections, but I dont know which item was selected in each collection. Am I missing something?
The PrintDocument doesnt have a PageSettings (does have a PrintSettings but that gives me the same problem as the PrintDialog.PrintSettings).
Ive looked at the PageSettingsDialog and that doesnt give all of the options of the PrinterDialog.
We dont show the printdialog everytime someone runs a report. We store the printer settings in a database as a tab delimited string and when retrieved Split into a string array, which is carried over from the VB6 version of our app.
It would be great if we could still do it this way, which is why Im trying to get the PaperSize, PrinterResolution, Landscape, Duplex, and PaperSource.
I then set the PrintDialog.Document = PrintDocument and show the PrintDialog, checking the return value for OK, which works fine. I want to retrieve the printersettings selected from the PrintDialog, but all I see is the PrinterSettings collection which doesnt give me the selected printing options (Landscape (yes, I can see the LandscapeAngle so I can work around that), PaperSize, PaperSource, and PrinterResolution). I can see their collections, but I dont know which item was selected in each collection. Am I missing something?
The PrintDocument doesnt have a PageSettings (does have a PrintSettings but that gives me the same problem as the PrintDialog.PrintSettings).
Ive looked at the PageSettingsDialog and that doesnt give all of the options of the PrinterDialog.
We dont show the printdialog everytime someone runs a report. We store the printer settings in a database as a tab delimited string and when retrieved Split into a string array, which is carried over from the VB6 version of our app.
It would be great if we could still do it this way, which is why Im trying to get the PaperSize, PrinterResolution, Landscape, Duplex, and PaperSource.