Class TRVPrint (unit PtblRV)

Inherits from

TComponent

------------------------------------------------------------

Constructors


constructor Create(AOwner: TComponent);

==================================================================


Functions

procedure AssignSource(PrintMe: TRichView);

------------------------------------------------------------------

procedure Clear;

------------------------------------------------------------------

function FormatPages(PrintOptions:TRVDisplayOptions): Integer;

------------------------------------------------------------------

procedure MakePreview(pgNo: Integer; bmp: TBitmap);

------------------------------------------------------------------

procedure Print(Title: String; Copies: Integer; Collate: Boolean);

------------------------------------------------------------------

procedure PrintPages(firstPgNo, lastPgNo: Integer; Title: String; Copies: Integer; Collate: Boolean);

------------------------------------------------------------------

function GetBM: Integer;

------------------------------------------------------------------

function GetLM: Integer;

------------------------------------------------------------------

function GetPagesCount: Integer;

------------------------------------------------------------------

function GetRM: Integer;

------------------------------------------------------------------

function GetTM: Integer;

------------------------------------------------------------------

procedure SetBM(mm: Integer);

------------------------------------------------------------------

procedure SetLM(mm: Integer);

------------------------------------------------------------------

procedure SetRM(mm: Integer);

------------------------------------------------------------------

procedure SetTM(mm: Integer);

------------------------------------------------------------------

Properties

property BottomMarginMM : Integer


property LeftMarginMM : Integer


property PagesCount : Integer

Published declarations

property RightMarginMM : Integer


property TopMarginMM : Integer


Events

event OnFormatting : TRVPrintingEvent


event OnSendingToPrinter : TRVPrintingEvent


Variables

rv : TPrintableRV;

Public declarations

FOnFormatting : TRVPrintingEvent;

Private declarations

FOnPrinting : TRVPrintingEvent;



Constructors


constructor Create(AOwner: TComponent);

==================================================================


Functions


procedure AssignSource(PrintMe: TRichView);

------------------------------------------------------------------


procedure Clear;

------------------------------------------------------------------


function FormatPages(PrintOptions:TRVDisplayOptions): Integer;

------------------------------------------------------------------


procedure MakePreview(pgNo: Integer; bmp: TBitmap);

------------------------------------------------------------------


procedure Print(Title: String; Copies: Integer; Collate: Boolean);

------------------------------------------------------------------


procedure PrintPages(firstPgNo, lastPgNo: Integer; Title: String; Copies: Integer; Collate: Boolean);

------------------------------------------------------------------


function GetBM: Integer;

------------------------------------------------------------------


function GetLM: Integer;

------------------------------------------------------------------


function GetPagesCount: Integer;

------------------------------------------------------------------


function GetRM: Integer;

------------------------------------------------------------------


function GetTM: Integer;

------------------------------------------------------------------


procedure SetBM(mm: Integer);

------------------------------------------------------------------


procedure SetLM(mm: Integer);

------------------------------------------------------------------


procedure SetRM(mm: Integer);

------------------------------------------------------------------


procedure SetTM(mm: Integer);

------------------------------------------------------------------


Properties


property BottomMarginMM : Integer


property LeftMarginMM : Integer


property PagesCount : Integer

Published declarations


property RightMarginMM : Integer


property TopMarginMM : Integer


Events


event OnFormatting : TRVPrintingEvent


event OnSendingToPrinter : TRVPrintingEvent


Variables


rv : TPrintableRV;

Public declarations


FOnFormatting : TRVPrintingEvent;

Private declarations


FOnPrinting : TRVPrintingEvent;