VpeWrite

<< Click to Display Table of Contents >>

Navigation:  Text Functions >

VpeWrite

Previous pageReturn to chapter overviewNext page

[ActiveX only]

The same as Write(). This method is for the use with Visual Basic. Visual Basic has problems with the keywords "Print, Write, Line and Scale". VB doesn't recognize, that these are methods and properties of an ActiveX.

Outputs text formatted with the current alignment settings within a rectangle at position Left, Top with the right border at Right and the bottom border at Bottom.

The pen is invisible.

method VpeCoord VPE.VpeWrite(

VpeCoord Left,

VpeCoord Top,

VpeCoord Right,

VpeCoord Bottom,

string Text

)

VpeCoord Left, Top, Right, Bottom

position and dimensions

string Text

the text to output

Returns:

the bottom y-coordinate generated by the output

Remarks:

see also Write

 

It is not possible to change font styles within one string. For such need, you should use the Professional Edition, which can interpret and display Rich Text Format (RTF).
 

VPE offers several methods to attach an object's position to margins and relative to the position of previously inserted objects. In addition Text, Rich Text and Picture objects are able to compute their dimensions automatically depending on their visual content.
For details please see "Dynamic Positioning" in the Programmer's Manual.

 

If the very first character of the output string is a '[' (square bracket), VPE expects a sequence of Embedded Flags. In order to print a square bracket as the very first character, output two consecutive square brackets, i.e. '[['. For details, see "Embedded Flag-Setting" in the Programmer's Manual.