<<

Contents

Search

>>

 

GET_STYLEDTEXT_LPRINTLENGTH

 

 

Function

 

 

Syntax:

GET_STYLEDTEXT_LPRINTLENGTH(<Type of Wordprocessor>,<Number of Lines>,<Number of Columns>,<From Row>,<From Column>,<To Row>,<Width>,<Row Beginning At Page 2>,<Styled Text>)

 

<Type of Wordprocessor>

= <NUM-EXPRESSION>

<Number of Lines>

= <NUM-EXPRESSION>

<Number of Columns>

= <NUM-EXPRESSION>

<From Row>

= <NUM-EXPRESSION>

<From Column>

= <NUM-EXPRESSION>

<To Row>

= <NUM-EXPRESSION>

<Width>

= <NUM-EXPRESSION>

<Row Beginning At Page 2>

= <NUM-EXPRESSION>

<Styled Text>

= <STRING-EXPRESSION>

 

 

Meaning:

Returns the print length of the <Styled Text> in print lines if the <Styled Text> is printed in the width of <Width> print columns.

 

<Number of Lines> and <Number of Columns> specify the grid of the print area in rows and columns and refer to the currently selected printer.

 

If an error occurs, the function returns the result –1 and the variable ERRORTEXT$ contains the error report.

Parameter:

Type of Wordprocessor

Defines the type of the word processor:

 

Type

Wordprocessor

0

Editor

1

Styled Editor

2

RTF Editor

otherwise

Html Editor

 

Number of Lines

Number of print lines

Number of Columns

Number of print columns

From Row

Specifies in which row of the current print page printing is to start. 

From Column

Specifies in which column on the print page printing is to start.

To Row

Specifies, to which row on the print pages printing is to be executed. Printing continues in <Row from page 2> on the next page respectively.

Width

Specifies the print width in columns.

Row Beginning At Page 2

Specifies in which row on the following pages printing is to start.

Styled Text

Contains the formatted text to be printed.

 

Sample:

/* Read STYLED_TEXT$ from file Info.html

STYLED_TEXT$ = GET_STYLEDTEXT_FROM_FILE$(3, "Info.html")

IF OK <> 0

THEN ... Error ...

ENDIF

 

/* Compute the number of print lines if Info.html is printed on

/* the current page from line 20 to 50 and on the following pages

/* from line 10 to 50. In each line printing starts at column 15

/* and print width is 45 columns.

 

Z% = GET_STYLEDTEXT_LPRINTLENGTH(3,60,80,20,15,50,45,20,STYLED_TEXT$)

 

See also:

EDITOR_LOAD_FILE

EDITOR_LOAD_STRING

EDITOR_GET_TEXT$

EDITOR_GET_STYLEDTEXT$

GET_STYLEDTEXT_FROM_FILE$

LPRINT_STYLEDTEXT