qbd software ltd [UK]
qprinter > moth > qbd software
qPrinter² qcPrinter: Properties and Methods
Applies To:
qcPrinter
 
See Also:
Table_BestFit
FormPrint
 

ListView_Document

Listview Document StyleCreates a document from a ListView including Icons. There are two styles of document; Report or List.

Report Style Document
The Report document will display a 2 column document with the column header listed in the left column and the column content in the right header. This will be repeated for each item in the list.

List Style Document
The List style document will try to emulate the content of the ListView in the document. Both styles of document use the Table_BestFit method to fit the items on the page. Columns containing text wider than the width of the column will be wrapped.

Syntax

Object.ListView_Document (lvList As Object, bReportStyle As Boolean , sColumnGap As Single, sRowGap As Single, BorderMargin As Single)

Parameters
lvListThe ListView used to create the document.
bReportStyleThe Style of Document. True[Default] for Report Style. False for List Style.
sColumnGapA single value based on the ScaleMode of the Document to determine the gap between each column.
sRowGapA single value based on the ScaleMode of the Document to determine the gap between each row.
BorderMarginA single value based on the ScaleMode of the Document to determine the gap between the border of each cell and the content.

Notes

Font Styles

The styles for the headers and items in the document can be changed after the document has been created. The method creates Template blocks for each item and each header. For Report Style documents there are 2 header templates and 2 item templates. For List Style documents there are header and item templates for each column in the ListView.

Each Template has a key made up of:
[ListView Name] Head [Column Number]
[ListView Name] Item [Column Number]
This means that it is possible to Right align a complete column by changing the Template's 'Align' property.

See Also: Table_BestFit, FormPrint

©2002 qbd software ltd