WPTools Manual



Search


(press enter to search)

Class TWPSuperPrint

Hierarchy

System.TObject | System.Classes.TPersistent | System.Classes.TComponent | TWPSuperPrint

Description

Component to print multiple pages on one (virtual) paper sheet. It does not use actual code to do the printing so you need to add some code to call the 'Paint' procedure:
procedure TForm1.PrintIt(Sender: TObject); var n : Integer; begin Printer.Title := 'superprint-' + WPRichText1.LastFileName; Printer.BeginDoc; n := 0; try while n
This code is used in the label printer example to print a lable: WPSuperPrint1.Paint( Printer.Canvas, - GetDeviceCaps(Printer.Handle,PHYSICALOFFSETX ),// Offset in pixels - GetDeviceCaps(Printer.Handle,PHYSICALOFFSETy ),// Offset in pixels GetDeviceCaps(Printer.Handle,LOGPIXELSY )/1440, // Multiplicator for Parameters (twips->Canvas) [wpDoNotScalePage] ); // Options

Properties

Property BackgroundImage : TPicture

Property BackgroundImageModes : TWPSuperPrintImageModes

Property BackgroundImageName : string

Property BGMarginBottom : Integer

Property BGMarginLeft : Integer

Property BGMarginRight : Integer

Property BGMarginTop : Integer

Property BookletMode : TWPSuperPrintBookletModes

Property Columns : Integer

Property Copies : Integer

Property EditBox : TWPCustomRtfEdit

Property Height : Integer

Property InbetweenHorz : Integer

Property InbetweenVert : Integer

Property LabelStartColumn : Integer

Property LabelStartRow : Integer

Property Landscape : TWPSuperPrintLandscape

Property LockPreview : Boolean

Property MarginBottom : Integer

Property MarginLeft : Integer

Property MarginRight : Integer

Property MarginTop : Integer

Property Mode : TWPSuperPrintMode

Property PageHeight : Integer

Property PageWidth : Integer

Property Preview : TPaintBox

Property PrintLandscape : Boolean

Property PrintTopDown : Boolean

Property Rows : Integer

Property Width : Integer

Methods

Events

OnCalcPageNumber : TWPSuperPrintCalcPageNumber= TWPSuperPrintCalcPageNumber

OnUpdate : TNotifyEvent= procedure (Sender : TObject) of Object