ComponentOne List 8.0 for ActiveX
PrintData Method

 

PrintData Method

The PrintData method prints the specified rows in the associated list using the currently selected printer.

Syntax

PrintInfo.PrintData [selector]

Arguments

selector is an optional RowSelectorConstants value that specifies the rows to be printed.

Return Value

None

Remarks

Method applies to PrintInfo object.

Generally, this is the system default printer, although you can use the PageSetup method to enable end users to select a different printer prior to calling the PrintData method.

The selector argument determines the rows to be printed. It can be one of the following constant values:

0 - dbgAllRows

All available rows are printed. If the selector argument is omitted, this value is assumed.

1 - dbgSelectedRows

Only selected rows are printed. The list's SelBookmarks collection contains a bookmark for each selected row.

2 - dbgCurrentRow

Only the current row is printed. The list's Bookmark property returns the bookmark of the current row.

The printed output preserves as much of the associated list's original formatting as possible, including colors, fonts, alignment, and relative column widths. If present, the list caption, split captions, column headers, and column footers are displayed on the first page. You can force these elements to be repeated on each physical page by setting the RepeatSplitHeaders, RepeatColumnHeaders, and RepeatColumnFooters properties to True.

Note: Use the PrintPreview method to enable end users to view and scale the output before optionally printing it.

See Also

PrintInfo Object, PrintInfos Collection

 

 


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

Product Support Forum  |  Documentation Feedback