qbd software ltd [UK]
qprinter > moth > qbd software
qPrinter 1.6 Enhanced Visual Basic Printer Object with Preview
Version: 1.6.0
Date: 19 Oct 2001
Page: 10 Dec 2001
 
Links
qPrinter 1.6
 
Contact
Mail Moth

Introduction

The qPrinter project features an enhanced VB Printer Object with resizable Preview window.  Documents are built using TextItem elements.  For each element properties can be set and edited to change font, border and positioning properties and by using HTML style tags font, alignment and indent characteristics can be changed within the TextItem element.  Headers and Footers can be included on each page.

qPrinter 1.6 Methods

qPrinter 1.6 Properties
.AppName

[R/W] Used in headers and footers to identify the project calling qPrinter

.Footer(e)

Where e is the enum of footer types - returns TextItem

.Header(e)

Where e is the enum of header types - returns TextItem

.ItemCount

[R] TextItem count

.MarginBottom

[R/W] Page margin bottom

.MarginLeft

[R/W] Page margin left

.MarginRight

[R/W] Page margin right

.MarginTop

[R/W] Page margin top

.Orientation [R/W] Print orientation (Portrait or Landscape)
.OrientOkay [R] Determines whether the orientation can be changed
.Pages

[R] Total Pages in document

.PageSize

[R/W] Enum value for page dimensions (A3, A4, A5, B4)

.PrintOptions [R/W] Enum addition of features available to the end user in the Print Options dialog.  (Choose Printer, Choose number of Copies)
.Scalemode

[R/W] Enum value for scale mode (twip, inch, mm, cm, percentage)  This will overwrite any scalemode values set for individual textitems

.TextItem(n)

[R/W] Direct reading/writing of TextItem properties.  Where 'n' is the index number of the TextItem or Key defined when TextItem was added.

qPrinter 1.6 Methods
.addtext

(Text, Fontname, Fontsize, [Fontbold], [Fontitalic], [FontColor], [Align], [Indentleft], [Indentright], [Key])

Add a TextItem to the current document.  The values passed relate directly to the properties of individual TextItems.

.footercopy

(FromItem,ToItem)

Copies the contents of one footer type to another

.formprint See the FormPrint and FormPrint_Update page
.fornprint_update See the FormPrint and FormPrint_Update page
.headercopy

(FromItem,ToItem)

Copies the contents of one header type to another

.preview

Display preview form

.printdoc

(StartPage, EndPage, [Copies], [Collate], [PrinterNumber])

Print document pages between StartPage and EndPage.  Collate (if true) will print documents in turn page 1, page 2 etc. if false print n copies of page 1, n copies of page 2 etc.

PrinterNumber is the zero-based value of the Printer in the Printers collection.

.removeitem

(IndexKey)

Delete a specified item.

.resetitems

Removes all textitems ready for new document.

 

©2001-2004 qbd software ltd