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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Printing Grid one page wide many pages high

Thread ID:

Created:

Updated:

Platform:

Replies:

69679 Nov 7,2007 07:52 PM UTC Nov 23,2007 07:46 PM UTC Windows Forms 3
loading
Tags: GridControl
Todd Swygert
Asked On November 7, 2007 07:52 PM UTC

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

J.Nagarajan [Syncfusion]
Replied On 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


Todd Swygert
Replied On 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.Nagarajan [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;