PROGRESS xPrint.i functions

Navigation:  PROGRESS users >

PROGRESS xPrint.i functions

Previous pageReturn to chapter overviewNext page

xPrint.i

 

xPrint.i is a useful include to work with vpxPrint. Put it in the definition section of each of your vpxPrint programs.

 

centerText():        

Centers a text within an area.

Input parameters :

<text to center>AS CHARACTER
<font attributes>format: "Arial,B,10". notation <> is not used
<area width in inches>DECIMAL

Returned value :

The sequence to insert into your output stream.

 

 

rightJustify():        

right justifies a text within an area.

Input parameters :

<text to justify>AS CHARACTER
<font attributes>format: "Arial,B,10". notation <> is not used
<area width in inches>DECIMAL

Returned value :

The sequence to insert into your output stream.

 

decimalAlign():        

justifies a decimal text within an area. The decimal points (or commas) are the delimiters to align.

Input parameters :

<text to justify>AS CHARACTER for example STRING(decimal-value)
<font attributes>format: "Arial,B,10". notation <> is not used
<area width in inches>DECIMAL

 

Returned value :

The sequence to insert into your output stream.

 

reduce():        

truncates a text to fit within a given area.

Input parameters :

<initial text>AS CHARACTER
<font attributes>format: "Arial,B,10". notation <> is not used
<area width in inches>DECIMAL

Returned value :

The truncated text. Note that no word wrap is done.

 

This function is now included in the dll with the <TRUNCATE> tag.

 

getBackground():        

Returns a string containing all the lines in the file.

Input parameters :

<.xpr file name>AS CHARACTER

Returned value :

The content of the file in a string variable.

 

setDefaultPrinter():        

Sets a new Windows default printer.

Input parameters :

<.Printer name>AS CHARACTER

 

loadxPrint : PROCEDURE to load the xPrint.dll in memory (uses the loadLibrary API call)

 

unloadxPrint : PROCEDURE to unload the xPrint.dll from memory (uses the freeLibrary API call)