Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example specifies a cell range as the print range.

C++

// Select a block of cells
m_Spread.SetRow(2);
m_Spread.SetCol(2);
m_Spread.SetRow2(4);
m_Spread.SetCol2(4);
// Set the cell range to be printed
m_Spread.SetPrintType(PrintTypeCellRange);

Visual Basic

' Select a block of cells
fpSpread1.Row = 2
fpSpread1.Col = 2
fpSpread1.Row2 = 4
fpSpread1.Col2 = 4
' Set the cell range to be printed
fpSpread1.PrintType = PrintTypeCellRange

Copyright © GrapeCity, inc. All rights reserved.