DLL
To specify a range of pages 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 nPageStart and nPageEnd fields to specify the range of pages you want to print.
-
Set the dPrintType parameter to SS_PRINTTYPE_PAGERANGE.
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.