I would like to print a EMF file with viewer.PrintDialogFit method because user can sets some options.
But it is a good idea to set paper orientation before user can select other options according with document dimensions.
When user prints a landscape file and the default printer has portrait paper orientation (as default) I would like to set landscape orientation automatically.
If user changes the printer all options should be reset to defaults one.
I tryed to use viewer.PrintSetOrientation(GdPicture.PrinterOrientation.PrinterOrientationPortrait) but with viewer.PrintDialogFit function does not work (with viewer.PrintDialog it works correctly!).
How can I reach my goal?
When you show a printing option dialog using the PrintDialog method you can't setup any parameter by code. All choices can be done only by the user.
The only way to reach your goal is to provide your own printing dialog box.
With best regards,
Who is online
Users browsing this forum: No registered users and 2 guests