Print Preview

I am having a ToolBar button in my Windows Forms Application that uses Syncfusion Diagram and Tool Components. Diagram is my draw area for my custom symbols. I have implemented PrintPreview on click of the ToolBar button. The issue I am facing is, when the Print Preview Dialog window shows up instead of 1 page it shows up 30 pages. The first page in the Print Preview Dialog shows up my custom symbols drawn in the Diagram, the rest of the pages from 2 to 30 shows blank. On the first place the pages from 2 to 30 shouldn''t appear at all. Any clues why this is happening ? I wrote a simple Winforms app without using any of Syncfusion''s components and PrintPreview works fine. Pls let me know if you have suggestions. Regards, Vinod

2 Replies

AD Administrator Syncfusion Team September 15, 2005 02:15 PM UTC

Hello Vinod, The print and print preview implementation uses the diagram Model bounds to calculate the drawing area. It looks like you might have assigned a much higher value to the Diagram.Model.Bounds property, than what is actually being used by the drawing. Changing the diagram model bounds to more closely reflect the dimensions of your diagram will make sure that print and printpreview bounds are calculated taking into account the actual drawing size. Prakash Surendra Syncfusion Inc.,


AD Administrator Syncfusion Team September 16, 2005 08:59 AM UTC

Rearranging the sizes did the trick..! Thanks Regards, Vinod >Hello Vinod, > >The print and print preview implementation uses the diagram Model bounds to calculate the drawing area. It looks like you might have assigned a much higher value to the Diagram.Model.Bounds property, than what is actually being used by the drawing. Changing the diagram model bounds to more closely reflect the dimensions of your diagram will make sure that print and printpreview bounds are calculated taking into account the actual drawing size. > >Prakash Surendra >Syncfusion Inc., > >

Loader.
Up arrow icon