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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

( Emergent )How to print the specified cells

Thread ID:

Created:

Updated:

Platform:

Replies:

20740 Oct 25,2004 02:30 AM UTC Oct 25,2004 04:49 AM UTC WinForms 1
loading
Tags: GridControl
Wang Pinghua
Asked On October 25, 2004 02:30 AM UTC

I have initialized a grid with 1000 rows and 1000 columns. But in displaying I only used 50 rows and 100 columns. And how to print these cells in the range with 50 rows and 100 columns? Thanks and expect your quick answer.

Administrator [Syncfusion]
Replied On October 25, 2004 04:49 AM UTC

If you have cells selected in the grid, you can print them with code like: GridPrintDocument pd = new GridPrintDocument(this.gridControl1, true); PrintPreviewDialog dlg = new PrintPreviewDialog() ; pd.PrinterSettings.PrintRange = System.Drawing.Printing.PrintRange.Selection; dlg.Document = pd; dlg.ShowDialog(); If you need to select the cells from code, you can add code to select a Cell range like: this.gridControl1.Selections.Ranges.Add(GridRangeInfo.Cells(1,1,5,5));

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

;