ComponentOne List 8.0 for ActiveX
RangeOfPages Property

 

RangeOfPages Property

This property sets or returns a string that defines the range of pages to be printed when the PrintData method is invoked.

Syntax

PrintInfo.RangeOfPages= string

Remarks

Read/Write at run time. Not available at design time.

Property applies to PrintInfo object.

This property is honored only be the PrintData method, and not by PrintPreview.

The syntax of the string accepted by this property is in a relatively free format, and is parsed using the following rules:

·      Any characters except digits and "-" are ignored.

·      Any numbers which are separated with "-" are treated as an inclusive range of pages.

·      A "-" at the beginning of the string is treated as "1-".

·      A "-" at the end of the string is treated as "to the end".

·      All other numbers are treated as single page numbers.

·      Sequence is not important, unless within a range.  In this case, the smaller number must be given first, or the range will be ignored.  The string "4-8" indicates pages 4 to 8 (inclusive), but the string "8-4" will not print any pages.

Example:  For a list containing 14 pages of data, the string "-3, 8-10, 7, 12-" will print pages 1, 2, 3, 7, 8, 9, 10, 12, 13, and 14.

See Also

PrintInfo Object, PrintInfos Collection

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback