GrapeCity MultiRow Windows Forms Documentation
Print Style

MultiRow offers three types of print styles. The styles are rich, compact, and content.

Rich

If you set the PrintSettings.PrintStyle property to Rich, the grid is printed the same as it is displayed on the screen. This is the default style.

Using Code

This example sets the PrintStyle property to Rich.

[VB]

Imports GrapeCity.Win.MultiRow

GcMultiRow1.PrintSettings.PrintStyle = PrintStyle.Rich
GcMultiRow1.PrintPreview()

[CS]

using GrapeCity.Win.MultiRow;

gcMultiRow1.PrintSettings.PrintStyle = PrintStyle.Rich;
gcMultiRow1.PrintPreview();

Compact

If you set the PrintSettings.PrintStyle property to Compact, it excludes the screen dependent factors while printing the grid. Specifically, it excludes drop-down buttons or visual styles and creates a form that is applicable for printing.

Using Code

This example sets the PrintStyle property to Compact.

[VB]

Imports GrapeCity.Win.MultiRow

GcMultiRow1.PrintSettings.PrintStyle = PrintStyle.Compact
GcMultiRow1.PrintPreview()

[CS]

using GrapeCity.Win.MultiRow;

gcMultiRow1.PrintSettings.PrintStyle = PrintStyle.Compact;
gcMultiRow1.PrintPreview();

Content

If you set the PrintSettings.PrintStyle property to Content, it only prints strings and images. Cell borders, backcolors, and back gradation are not printed.

Using Code

This example sets the PrintStyle property to Content.

[VB]

Imports GrapeCity.Win.MultiRow

GcMultiRow1.PrintSettings.PrintStyle = PrintStyle.Content
GcMultiRow1.PrintPreview()

[CS]

using GrapeCity.Win.MultiRow;

gcMultiRow1.PrintSettings.PrintStyle = PrintStyle.Content;
gcMultiRow1.PrintPreview();

Differences with Print Styles

CellType Rich Compact and Content
ColumnHeaderCell Drop-down buttons for built-in sorting and built-in filtering are not printed (common to both).
RowHeaderCell Indicator is not printed (common to both).
LinkLabelCell - Link underline is not printed.
NumericUpDownCell - Spin button is not printed.
ComboBoxCell - Drop-down button is not printed.
DateTimePickerCell - Spin and drop-down buttons are not printed.
CheckBoxCell - Visual Style is not applied.
RadioGroupCell - Visual Style is not applied.
ProgressBarCell - Visual Style is not applied.
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options