Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to set the page margins before printing a diagram? (Read 2492 times)
Jan Meyer
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Feb 26th, 2012
How to set the page margins before printing a diagram?
Mar 16th, 2012 at 9:29pm
Print Post  
I was hoping to find a appropriate set method in the PrintOption class.

Regards,
Jan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to set the page margins before printing a diagram?
Reply #1 - Mar 19th, 2012 at 9:04am
Print Post  
This should be possible using the public void print(PageFormat pageFormat, String printer) overloaded method. The PageFormat class has a Paper member and the Paper.setImageableArea method lets you specify margins.

PageFormat also lets you switch to landscape orientation.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Jan Meyer
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Feb 26th, 2012
Re: How to set the page margins before printing a diagram?
Reply #2 - Mar 19th, 2012 at 9:52am
Print Post  
I though I had to use something like "aDiagramView.getPrintOptions().setVisibleRect(myRect)". So a have to learn to think more straitforward Smiley)

Thanx,
Jan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint