PrintGrid Property
Applies To
fpSpread control
Description
Sets or returns whether to print the grid lines. This property is available at run time only.
Syntax
BOOL CSpreadSheet::GetPrintGrid( );
void CSpreadSheet::SetPrintGrid(BOOL value);
[form.]fpSpread.PrintGrid[ = boolean%]
Remarks
The default value for the PrintGrid property is True, which prints the grid lines the way the sheet displays them.
Set the PrintGrid property before you use the PrintSheet method to print the sheet.
This property is set at the sheet level. Set the Sheet property before setting this property if there are multiple sheets.
Specify which grid lines the sheet displays and how the grid lines appear using the GridShowHoriz, GridShowVert, and GridSolid properties. If the sheet does not display horizontal or vertical grid lines (the GridShowHoriz or GridShowVert properties are set to False), the grid lines that are not displayed do not print, no matter what the setting of the PrintGrid property.
You can specify the color of the grid lines using the GridColor property. However, whether the grid lines print that color depends on the setting of the PrintColor property and the available printer.
Spread Designer
Choose the Sheet menu, then the Print Properties menu, select the Print Properties tab, and then choose the Grid check box in the Print group box in the Print Properties dialog box.
Data Type
Integer (Boolean)
See Also
GridColor, GridShowHoriz, GridShowVert, GridSolid, PrintColor properties
PrintSheet method
DLL Correspondence
SSPrint function