Loading...
 

DrawOle

DrawOle

DrawOle

Stack
Stack Position Description
Stack(In) Top ]
Top 1 Parameter n
. . . . . .
Top-n Parameter 1
Top n-1 [
Stack(Out) -

The following parameters can be transferred:

Parameters
Parameters Description Default
document a document created with Document mandatory
x Column x = 0
y line the current line
LF Line break the text is still on the current line
NL Line break like LF, but never triggers a sheet change
FF Page change the text is still on the current page
HEADER a heading line
CLIP Clipping when the OLE object no longer fits on the page No clipping
Information to be output CX_COM_OBJECT or CX_ML_COM_OBJECT
  • The Document object - parameter 1 in the table above - must be passed in any case.
  • Parameters 2 to 8 are format attributes and control where and how the text information is output on the printed page. All attributes are optional; they can be specified in any order. Following the usual convention, position coordinates are specified in the order x, y. If there is only one position value, this is the x-coordinate (column) and the text is inserted in the current line.
  • If neither x nor y are specified, the text is chained to the previously output text element. In this way, longer texts can be inserted into the document without first having to form an extremely long character string.
  • Attribute LF increases the current line number after the text is inserted. The same applies to headings - indicated by attribute HEADER - where the current heading line is independent of the current text line.
  • LF, NL and FF indicated several times trigger multiple side or sheet feeds. To avoid that logically related Ole objects are separated by a page change, use NL instead of LF.
  • By default, print elements that do not fit completely on one page are repeated on a margin page. This behaviour can be prevented with the CLIP flag.

The general settings for the document, such as page margins, CPI, LPI, etc., can be set via SetParameter.