This sample illustrates the customized support provided for printing multiple grids.
Given below is an image of the sample.
Features:
MultiGridPrinting: MultiGrid Printing customizes the way of printing support provided for grids. It enables the multiple grids to be printed in a single print.
ListgCtrls = new List MultiGridPrintDocument pd = new MultiGridPrintDocument(gCtrls);();
CustomizePrintPages: Using this support the number of pages to fit the grid can be given customized i.e the gridcolumns will be breaked to fit the number of pages customized.
GridPrintDocumentAdv pd = new GridPrintDocumentAdv(this.gridControl1);Interactive Features:
1.MultipleGridPrinting
MultipleGridPrint
Using MultipleGridprint the multiple grids can be printed continuously (considering the column breaks) in a single print.
pd.GridPrintOption = MultiGridPrintDocument.GridPrintOptions.MultipleGridPrint;PrintGridInNewPage
Using PrintGridInNewPage the multiple grids can be printed continuously. But the consecutive new grids starting page will be a new page.
pd.GridPrintOption = MultiGridPrintDocument.GridPrintOptions.PrintGridInNewPage;DefaultGridPrint
Using DefaultGridPrint the default printing suuport is achieved in multiple grids i.e: if columns are breaked it will take a new page (Continuous printing support of the grid will be not available).
pd.GridPrintOption = MultiGridPrintDocument.GridPrintOptions.DefaultGridPrint;ScaleColumnsToFit
Using ScaleColumnsToFit the multiple grids columns will be scaled to fit the page.
pd.GridPrintOption = MultiGridPrintDocument.GridPrintOptions.ScaleColumnsToFit;2.Customize PrintPages
PagesToFit - This is an enhanced way of printing. Here the no of pages used to fit the grid can be given as per our requirements. The grid will be fitted into the no of pages which is described in the following PagesToFit property. This property will work only when the PrintColumnToFitPage property is enabled.
GridPrintDocumentAdv pd = new GridPrintDocumentAdv(this.gridControl1); pd.PagesToFit = 4; pd.PrintColumnToFitPage = true;