Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
How to set up page size when printing xamdatagrid
posted

The grid I want to print has a lot of columns. I use SCALE mode to print the grid.

Here is the code snippet for creating the Report object:

 

 

 

 

 

 

 

myReport =

 

New Report()

myReport.ReportSettings.HorizontalPaginationMode =

 

HorizontalPaginationMode.Scale

myReport.ReportSettings.PageOrientation =

 

PageOrientation.Landscape

myReport.ReportSettings.PageSize =??? 'I tried various size here.

 

myReport.Print(

 

True, True)

I tried different sizes for page size, but the generated report was always scaled to the Letter paper size.  When I chose the paper size from the Print Dialog to papers larger than Letter, e.g. Legal, the printed area was still restricted to the Letter size, and I ended up a big margin in a large paper.

I just wonder if I miss anyting and how I can make printing XamDataGrid respect the paper size setting.

My version of Infragistic is 11.1.2011

Thanks.