Landscape setting

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
Posts: 8
Joined: Thu Oct 29, 2009 5:51 pm
Location: Italy

Landscape setting

Post by atome » Thu Oct 29, 2009 6:43 pm


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?


User avatar
Site Admin
Posts: 5759
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Landscape setting

Post by Loïc » Sat Oct 31, 2009 12:19 pm


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,


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest