DLL
To specify a block of cells as a print range
- Call the SSSetSheet function to specify the sheet to print.
-
Using the SS_PRINTFORMAT structure,
- Set the fUseDataMax field to FALSE.
- Set the x1CellRange, y1CellRange, x2CellRange, and y2CellRange fields to specify the block of cells you want to print.
-
Set the dPrintType parameter to SS_PRINTTYPE_CELLRANGE.
Note: You can use the SSSetPrintOptions function to preset the SS_PRINTFORMAT structure. You should preset the SS_PRINTFORMAT structure if you plan on using the fpSpreadPreview control.
- Call the SSPrint function.