Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Print Preview to landscape by default (Read 1757 times)
Kyle Chen
Full Member
***
Offline


I Love MindFusion!

Posts: 104
Joined: Nov 29th, 2012
Print Preview to landscape by default
Aug 30th, 2013 at 2:37pm
Print Post  
Hi Stoyan,

Is there any way to pre-set the print preview window to show landscape? As well as the Print? I want to ScaleToPage at landscape mode before print and preview if the diagram's width > height.

And for different diagram page, can I display the page title in print out?

Thanks,

Kyle
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print Preview to landscape by default
Reply #1 - Sep 2nd, 2013 at 8:29am
Print Post  
Hi,

This should preview and print in landscape:

Code
Select All
PrintDocument doc = new PrintDocument();
doc.DefaultPageSettings.Landscape = true;
view.PrintPreview(doc);
view.Print(doc); 



Add %T to PrintOptions.HeaderFormat to get current DiagramPage.Title printed in the header.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint