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.

Problem in print GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 01:07 AM

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 09:05 AM

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 08:24 AM

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 09:17 AM

Thank you for replying

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

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.

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.

;