Changing font size in GDBG

Hi.
I printed GridDataBoundGrid as below code
but colums are so many.
Is there any way to get font smaller ?
this.GridDataBound1.Font.Size = 7;
this code got error because it is
read only ... I don't know why...
Please, give me an advice.
Thank you.

GridPrintDocument pd =
new GridPrintDocument(this.GridDataBound1);
PrintDialog printDialog = new PrintDialog();
printDialog.Document = pd;
pd.DefaultPageSettings.Landscape = true;
if (printDialog.ShowDialog()
== DialogResult.OK)
pd.Print();



1 Reply

RC Rajadurai C Syncfusion Team September 7, 2009 01:07 PM UTC

Hi Chin,

Thanks for your interest in Syncfusion Products.

I apologize for the long delay in responding to you.

It seems you would like to print the grid with many columns in a single page. It can be achieved by drawing the grid as a large bitmap and scaled to fit the print page. Please refer to our browser sample 'Print To Fit Demo' in Syncfusion Dashboard v7.3.0.20 in the following location.
[InstallDrive]:\users\[username]\documents\syncfusion\essentialstudio\7.3.0.20\Windows\Grid.Windows\Samples\2.0\Print\Print To Fit Demo\cs

In this sample, GridPrintDocument class is overridden to handle the printing of entire grid on single page by drawing the grid as bitmapl and scaling to fit the output page.

Please let me know if you have any further concerns.

Regards,
Rajadurai

Loader.
Up arrow icon