We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Printing Grid one page wide many pages high

I'm trying to print a grid with a fit to page width of one, but as many pages high as needed. Is this possible with easy changes to the PrintAsBitmap_2005 sample? Do you have any suggestions?

Or does the print preview have a fit to page height and width functionality?

Thanks,
Todd

3 Replies

J. J.Nagarajan Syncfusion Team November 7, 2007 08:51 PM UTC

Hi Todd,

Please refer this sample which prints all the columns in a single page and the rows in multiple pages. You can increase the number of rows and see the effect.

Here is the sample:
http://websamples.syncfusion.com/samples/Grid.Windows/F69679/main.htm

Please let me know if this helps.

Regards,
Nagaraj



TS Todd Swygert November 7, 2007 09:29 PM UTC


Thanks for the effort. The printed grid separates correctly, but unfortunately the font is blurry and unreadable. The unaltered sample was able to print the grid very clear although much smaller. I’ll see if I can make some changes with what you gave me. If you have any ideas, let me know.

Once again, thanks,
Todd



J. J.Nagarajan Syncfusion Team November 23, 2007 07:46 PM UTC

Hi Todd ,

Kindly accept our sincere apologies for the delay in getting back to you.

To get the clear image of grid in Print preview dialog, you have to set SmoothingMode to AntiAlias and InterpolationMode of graphics object to HighQualityBicubic. Please refer to the following code snippet.

[C#]

Graphics g = Graphics.FromImage(bm);
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
g.InterpolationMode = InterpolationMode.HighQualityBicubic;


I have attached the sample for your reference.

http://websamples.syncfusion.com/samples/Grid.Windows/F69679_Nov23/main.htm

Please refer to it and let me know if this helps.

Regards,
Nagaraj


Loader.
Live Chat Icon For mobile
Up arrow icon