LPRINT_STYLEDTEXT
|
Syntax: |
LPRINT_STYLEDTEXT(<Type of
Wordprocessor>,<From Line>,<From Column>,<To
Line>,<Width>,<Line Beginning at Page 2>,<Styled Text>)
|
||||||||||||||
|
|
|
||||||||||||||
|
Meaning: |
Prints styled word processor text. This function only has an effect with ENABLE LPGDI. LPRINT_STYLEDTEXT prints the formatted text
<Styled Text> beginning at the current print page and returns the
number of lines that were needed to print the <Styled Text>. With DISABLE LPGDI LPRINT_STYLEDTEXT
returns the result –1, no printing is done. <Type of Wordprocessor> defines the
type of <Styled Text>: 0: Editor 1: Styled Editor 2: RTF-Editor otherwise: Html-Editor |
||||||||||||||
|
Parameter: |
|
||||||||||||||
|
Sample: |
/* Read
STYLED_TEXT$ from file Info.htm STYLED_TEXT$ = GET_STYLEDTEXT_FROM_FILE$(3,"Info.html") IF OK
<> 0 THEN ... Error ... ENDIF /* Print Info.html on
the current page from line 20 to line 50 and /* on the following
pages from line 10 to line 50. /* Each print line
starts at column 15, the print width is 45 columns. NUMBER% = LPRINT_STYLEDTEXT(3,20,15,50,45,10,STYLED_TEXT$) /* Printing within
a report requires to print NUMBER% empty lines /* because report
printing has to continue after the styled text. FOR I% = 1 TO NUMBER% NEWLINE ENDLOOP |
||||||||||||||
|
See also: |
|