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

Problem in print GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

128586 Jan 30,2017 11:14 PM UTC Feb 2,2017 05:43 AM UTC Windows Forms 5
loading
Tags: GridGroupingControl
mlehya
Asked On January 30, 2017 11:14 PM UTC

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


Attachment: GGC_CUT_dd5e1e37.rar

Mohanraj Gunasekaran [Syncfusion]
Replied On 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. 


mlehya
Replied On 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

Mohanraj Gunasekaran [Syncfusion]
Replied On 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. 


mlehya
Replied On February 1, 2017 02:17 PM UTC

Thank you for replying

Mohanraj Gunasekaran [Syncfusion]
Replied On February 2, 2017 05:43 AM UTC

Hi Mlehya, 

Thanks for your update. 

We will wait until hear from you. 

Regards, 
Mohanraj G 


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

;