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

Problem in print GGC

when i print the GGC the first record and end record on the page Cut , please can help me


Attachment: GGC_CUT_dd5e1e37.rar

5 Replies

MG Mohanraj Gunasekaran Syncfusion Team January 31, 2017 06:07 AM UTC

Hi Mlehya, 

Thanks for using Syncfusion products. 

We are able to understand your scenario. Your scenario occurs when use the ScaleColumnsToFitPage or PrintColumnToFitPage property and scroll the grid before printing. In order to overcome this issue, you can move scroll position using VScrollBar.Value property. Please refer the below code snippet and refer the below attached sample. 
 
Code snippet 
GridPrintDocumentAdv printDocument = new GridPrintDocumentAdv(this.gridGroupingControl1.TableControl); 
PrintPreviewDialog previewDialog = new PrintPreviewDialog(); 
this.gridGroupingControl1.TableControl.HScrollBar.Value = 1; 
this.gridGroupingControl1.TableControl.VScrollBar.Value = 1; 
printDocument.ScaleColumnsToFitPage = true
previewDialog.Document = printDocument; 
previewDialog.Show(); 
 
 
Screenshot 
 
 
Sample link: GridGroupingControl 

If we misunderstood your scenario, please share the code part or provide the sample to reproduce your scenario at our end. It will be helpful to provide the solution at the earliest. 

Regards, 
Mohanraj G. 



ML mlehya January 31, 2017 02:05 PM UTC

you can change the value to  2000
 for (int i = 0; i < 2000; i++)
            {
                dataSource.Add(new Data(r.ToString(), "Category" + r.ToString(), "Desc"+r.ToString(), "Data"+r.ToString()));
            }
and print the grid in the print view move to page 64
now you can see the problem


MG Mohanraj Gunasekaran Syncfusion Team February 1, 2017 01:24 PM UTC

Hi Mlehya, 

Sorry for the inconvenience caused. 

By default, we have painted the GridGroupingControl in PrintPreview page based on the page size and we do not have the support to check the column clipped or not in the page. In order to overcome this issue, you can set ScaleColumnsToFitPage set as false. Please refer the below code snippet and refer the attached sample, 
 
Code snippet 
GridPrintDocumentAdv printDocument = new GridPrintDocumentAdv(this.gridGroupingControl1.TableControl); 
PrintPreviewDialog previewDialog = new PrintPreviewDialog(); 
previewDialog.ShowIcon = false; 
 
//Customization for HeaderCell. 
this.gridGroupingControl1.TableDescriptor.Appearance.AnyHeaderCell.BackColor = Color.White; 
printDocument.ScaleColumnsToFitPage = false; 
previewDialog.Document = printDocument; 
previewDialog.Show(); 

Sample link: GridGroupingControl 

Regards, 
Mohanraj G. 



ML mlehya February 1, 2017 02:17 PM UTC

Thank you for replying


MG Mohanraj Gunasekaran Syncfusion Team February 2, 2017 05:43 AM UTC

Hi Mlehya, 

Thanks for your update. 

We will wait until hear from you. 

Regards, 
Mohanraj G 


Loader.
Live Chat Icon For mobile
Up arrow icon