Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Landscape printing by default (Read 1519 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 136
Location: England
Joined: Oct 23rd, 2006
Landscape printing by default
Dec 12th, 2006 at 10:23am
Print Post  
How can I get fc.Print() and fc.PrintPreviewEx() to print and preview in Landscape by default?  There does not seem to be an option for this in fc.PrintOptions.

Thanks,
DavidL
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Landscape printing by default
Reply #1 - Dec 12th, 2006 at 10:57am
Print Post  
Try this:

Code
Select All
PrintDocument pd = new PrintDocument();
pd.DefaultPageSettings.Landscape = true;
fc.PrintPreviewEx(pd);
fc.Print(pd);
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 136
Location: England
Joined: Oct 23rd, 2006
Re: Landscape printing by default
Reply #2 - Dec 12th, 2006 at 2:02pm
Print Post  
Thanks, that seems to do it.
DavidL
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint