RenderPrint

<< Click to Display Table of Contents >>

Navigation:  Rendering >

RenderPrint

Previous pageReturn to chapter overviewNext page

Computes the dimensions of a given text, based on the method Print().

method RenderStatus [integer] VPE.RenderPrint(

VpeCoord Left,

VpeCoord Top,

string Text

)

VpeCoord Left, Top

position

string Text

the text to be rendered

Returns:

The method returns one of the following values, indicating the AutoBreak status:

ActiveX / VCL

Value

Enum

Comment

RENDER_NO_BREAK

0

NoPageBreak

NO Auto Page Break will occur

RENDER_BREAK

1

PageBreak

Auto Page Break will occur

RENDER_SKIP_BREAK

2

SkipPageBreak

Auto Page Break will occur, but no text will be placed on the current page, all text will be skipped to the next page (nRenderWidth and nRenderHeight are not set)

Remarks:

The computed dimensions can be retrieved with the properties:

nRenderWidth and nRenderHeight

Example:

Doc.RenderPrint(0, 0, "X")

font_height = Doc.nRenderHeight

retrieves the font height for a single line

 

See also:

"Rendering Objects" in the Programmer's Manual