Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DocumentPaginator.PageSize (Read 2921 times)
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
DocumentPaginator.PageSize
Jan 17th, 2011 at 5:39pm
Print Post  
Hi,

i want to set Pagesize to DinA4 and use the following code before printpreview:

Code
Select All
double width = 96 * 8.27;
double height = 96 * 11.69;
myDiagram.DocumentPaginator.PageSize = new Size(width, height); 



The Property does not change.
PageSize isl still "letter" (8.5, 11).

Any hints?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DocumentPaginator.PageSize
Reply #1 - Jan 17th, 2011 at 6:13pm
Print Post  
Hi,

I think DocumentPaginator returns a new instance when you call it. Try saving a reference to the returned object and use it without calling myDiagram.DocumentPaginator again.

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