<<

Contents

Search

>>

 

LPRINT_STYLEDTEXT

 

 

Function

 

 

Syntax:

LPRINT_STYLEDTEXT(<Type of Wordprocessor>,<From Line>,<From Column>,<To Line>,<Width>,<Line Beginning at Page 2>,<Styled Text>)

 

<Type of Wordprocessor>

= <NUM-EXPRESSION>

<From Line>

= <NUM-EXPRESSION>

<From Column>

= <NUM-EXPRESSION>

<To Line>

= <NUM-EXPRESSION>

<Width>

= <NUM-EXPRESSION>

<Line Beginning at Page 2>

= <NUM-EXPRESSION>

<Styled Text>

= <STRING-EXPRESSION>

 

 

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:

Type of Wordprocessor

Defines the type of  <Styled Text>.

 

From Line

Defines in which line on the current print page the printing shall start.

 

From Column

Defines in which column on the print pages the printing shall start.

 

To Line

Defines to which line the print pages are to be printed. Printing continues in <Line Beginning at Page 2> on the next page respectively.

 

Width

Defines the print width in columns.

 

Line Beginning at Page 2

Defines in which line on the following page the printing is to begin.

 

Styled Text

Formatted text

 

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:

EDITOR_LOAD_FILE

EDITOR_LOAD_STRING

EDITOR_GET_STYLEDTEXT$

GET_STYLEDTEXT_FROM_FILE$

GET_SYTLEDTEXT_LPRINTLENGTH