Page 1 of 1

Landscape setting

Posted: Thu Oct 29, 2009 6:43 pm
by atome
Hi!

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?

Thanks.

Re: Landscape setting

Posted: Sat Oct 31, 2009 12:19 pm
by Loïc
Hi,

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,

Loïc