HotXLS Docs

PrintArea property

Returns or sets the range to be printed, as a string using A1-style references. Read/write String.

Syntax

property PrintArea: string;

Remarks

Set this property to the empty string ('') to set the print area to the entire sheet.

Example

This example sets the print area to cells A1:C5 on Worksheet one.

Workbook.Worksheets[1].PageSetup.PrintArea := 'A1:C5';