Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic PrintPreview and print (Read 1511 times)
mrreddy82
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Sep 30th, 2009
PrintPreview and print
Oct 11th, 2009 at 1:35pm
Print Post  
Hi Stoyo,
When I try to view the pert diagram in Print Preview it is showing at the top of the page and nodes also very small (I cannot even view what is there in the nodes)
I used the fallowing code in PrintPreviewEvent
PForm.diagramViewPert.PrintOptions.ScaleToPage();
PForm.diagramViewPert.PrintOptions.EnableShadows = true;
PForm.diagramViewPert.PrintOptions.EnableText = true;
PForm.diagramViewPert.PrintOptions.EnableInterior = true;
PForm.diagramViewPert.PreviewOptions.LandscapeToolTip.IsNormalized();
PForm.diagramViewPert.PrintPreviewEx();

1)  I want to use the complete page to display the nodes
2) At the same time I want to set the page title as the project I loaded
Please help me 
Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PrintPreview and print
Reply #1 - Oct 12th, 2009 at 6:02am
Print Post  
Hi,

This happens if MeasureUnit is set to Pixel. The control doesn't transform to logical units in that case, but uses the printer's pixel size which is much smaller than the display's. To work around this, switch MeasureUnit to Point before printing.

Stoyan
  
Back to top
 
IP Logged
 
mrreddy82
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Sep 30th, 2009
Re: PrintPreview and print
Reply #2 - Oct 12th, 2009 at 9:22am
Print Post  
Hi Stoyan ,

How can I set the page title while printing  ?

Thanks.....
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PrintPreview and print
Reply #3 - Oct 12th, 2009 at 10:18am
Print Post  
Hi,

Set the PrintOptions.HeaderFormat property.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint