home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
prtgraph.zip
/
PRTGRAPH.INF
(
.txt
)
< prev
next >
Wrap
OS/2 Help File
|
1996-01-01
|
151KB
|
3,445 lines
ΓòÉΓòÉΓòÉ 1. PrtGraph REXX Library ΓòÉΓòÉΓòÉ
The PrtGraph REXX Library gives you access to complex graphic printing
functionality from command line REXX scripts.
With this library you will be able to create professional style reports and
outputs for your REXX programs with images, boxes and text that can be
justified, right or left aligned or centred. You can create documents that use
up to 25 different font faces.
The PrtGraph REXX Library allows you to define headers and footers and gives
you access to a list of the printers connected to your work-station, their Job
Properties dialogs and their available printing fonts.
ΓòÉΓòÉΓòÉ 1.1. Whats new in version 2.1 ΓòÉΓòÉΓòÉ
The PrtGraph REXX Library has been aligned with the PrtGraph C Library, the
VRPrinter Object for VX-REXX and the PrtGraph Class Library.
In version 2.0 we introduced properties which are all accessed through the same
functions (PrtGRxGet and PrtGRxSet).
It is also now possible to call the dialog functions from an OS/2 Command
Window. This is done by running a PM Daemon program (PRTRXDAE.EXE) which
communicates with the DLL and handles all the dialog functions.
The memory usage of the library has been reduced and the code efficiency
improved.
In version 2.1 the following functions have been added:
PrtGRxMoveX
PrtGRxMoveY
PrtGRxPrintWinImage
PrtGRxNewPage will now prepare the job to start a new page from within a table
when the next PrtGRxEndRow call is made.
The PM Daemon is now only necessary if you use PrtGraph for REXX from the
command line or want to use the Printers dialog. The font and Job properties
dialogs are available from PM REXX environments without using the Daemon.
ΓòÉΓòÉΓòÉ 1.2. Shareware Software ΓòÉΓòÉΓòÉ
DEFINITION OF SHAREWARE SOFTWARE
Shareware Software distribution gives users a chance to try software before
buying it. If you try a Shareware software program and continue using it, you
are expected to register. Individual programs differ on details -- some request
registration while others require it, some specify a maximum trial period.
With registration, you get anything from the simple right to continue using
the software to an updated program with printed manual.
Copyright laws apply to both Shareware and commercial software, and the
copyright holder retains all rights, with a few specific exceptions as stated
below. Shareware software authors are accomplished programmers, just like
commercial authors, and the programs are of comparable quality. (In both cases,
there are good programs and bad ones!) The main difference is in the method of
distribution. The author specifically grants the right to copy and distribute
the software, either to all and sundry or to a specific group. For example,
some authors require written permission before a commercial disk vendor may
copy their Shareware software.
Shareware software is a distribution method, not a type of software. You should
find software that suits your needs and pocketbook, whether it's commercial or
Shareware software. The Shareware software system makes fitting your needs
easier, because you can try before you buy. And because the overhead is low,
prices are low also. Shareware software has the ultimate money-back guarantee
-- if you don't use the product, you don't pay for it.
When you register the PrtGraph REXX Library you will be sent a registered
version of the DLL by e-mail. This version has the "nag" popup removed and you
have the right to freely distribute software that includes the DLL.
If you are satisfied with the PrtGraph REXX Library we ask you to freely
distribute the shareware version to your freinds and colleagues.
If you have any suggestions for enhancements or find any bugs in the software
please contact us at one of our Contact Addresses
ΓòÉΓòÉΓòÉ 1.3. Registering your license ΓòÉΓòÉΓòÉ
Printer is a "Shareware software program" and is provided at no charge to the
user for evaluation. Feel free to share it with your friends, but please do not
give it away altered or as part of another system. The essence of
"user-supported" software is to provide personal computer users with quality
software without high prices, and yet to provide incentive for programmers to
continue to develop new products. If you find this program useful and find that
you are using Printer and continue to use Printer after a reasonable trial
period of 30 days, you must make a registration payment of $45.00 to ADD
Consulting (CH).
If you have already registered either PrtGraph Class Library, PrtGraph C
Library or VRPrinter you can register for $20.00.
You can register through the CompuServe Shareware Registration facility:
GO SWREG registration Number 5602 for new registrations
GO SWREG registration Number 6350 for registered users of another ADD
Consulting printing library
The registration fee will license one copy for use on any one computer at any
one time. You must treat this software just like a book. An example is that
this software may be used by any number of people and may be freely moved from
one computer location to another, so long as there is no possibility of it
being used at one location while it's being used at another. Just as a book
cannot be read by two different persons at the same time.
Payment of the registration fee gives you the right to distribute programs
that include the object and the DLL without paying any other "run-time"
licenses.
Site-License arrangements may be made by contacting ADD Consulting (CH).
ΓòÉΓòÉΓòÉ 1.4. Distributing the PrtGraph REXX Library ΓòÉΓòÉΓòÉ
Anyone distributing the PrtGraph REXX Library for any kind of remuneration must
first contact ADD Consulting (CH) at our address below for authorization. This
authorization will be automatically granted to distributors recognized by the
(ASP) as adhering to its guidelines for shareware distributors, and such
distributors may begin offering Printer immediately, however ADD Consulting
(CH) should still be advised so that the distributor can be kept up-to-date
with the latest version of Printer.
Registered users are free to distribute programs that use the the PrtGraph REXX
Library with no additional run-time fees.
ΓòÉΓòÉΓòÉ 1.5. Contact Address ΓòÉΓòÉΓòÉ
You can contact ADD Consulting at the addresses below:
ADD Consulting (CH)
Mr. Peter Kanis
Via Suro 9
CH-7403 RhДzБns
Switzerland
Tel: +41 (0)81 630 2011
Fax: +41 (0)81 630 2015
CompuServe: 100275,350 (Peter Kanis)
INTERNET: kanis@ibm.net
ADD Consulting (RUS)
Mr. Michael V. Schelkin
18-29 Molodezhnaya Street
Jukovsky
140160 Moscow Region
Russia
Tel: +7 095 556 8533
Internet: michael@schelkin.msk.ru
ΓòÉΓòÉΓòÉ 1.6. Rights And Limitations ΓòÉΓòÉΓòÉ
ADD Consulting makes no warranties as to the information in this guide.
Additionally, ADD Consulting is not responsible or liable for any loss or
damage of any kind resulting from use of this product.
The Software is protected by international copyright laws. All rights reserved.
No part of the computer program, documentation or related files may be
reproduced photocopied, stored on a retrieval system, or transmitted except as
provided by copyright law or by express permission of the copyright owner.
DISCLAIMER - AGREEMENT
Users of the PrtGraph REXX Library shall accept this disclaimer of warranty:
ADD CONSULTING SUPPLIES THIS PRODUCT AS IS WITHOUT WARANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARANTIES OF
MERCANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. ADD CONSULTING ASSUMES NO
LIABILITY FOR DAMAGES, DIRECT OR CONSEQUENTIAL, WHICH MAY RESULT FROM THE USE
OF THE PRODUCT.
Some jurisdictions do not allow the exclusion or limitations for consequential
or incidental damages, so the above may not apply to you.
ΓòÉΓòÉΓòÉ 1.7. The DEMO program ΓòÉΓòÉΓòÉ
Included in this package is a demonstration program in REXX.
The demo shows you many of the possibilities offered by the object, but the
limits are set by your imagination.
ΓòÉΓòÉΓòÉ 1.8. Setting up a print job ΓòÉΓòÉΓòÉ
Setting up a print job requires several steps:
Setting up a print job requires several steps:
Load the functions with PrtGRxLoadFuncs
Intialise the printing environment with PrtGRxInit
Choose a printer with PrtGRxPrinterDialog
If necessary set the job properties with PrtGRxJobProperties
Set the page margins with PrtGRxSetMargins
Set up the aspect of header with PrtGRxSetHeaderMode
Set up any header text with PrtGRxSetHeader
Set up any footer with PrtGRxSetFooter
Open the print job with PrtGRxOpenPrintJob
Print your texts, tables, bitmaps etc..
Close the print job with PrtGRxClosePrintJob
Destroy the printer object with PrtGRxTerm
If you wish, drop the functions with PrtGRxDropFuncs
Since headers and footers often contain constants like the date or the
document title and variables like the page number, the texts defined for these
can contain special formatting characters.
NOTE
All the input parameters that denote positions are by default in millimetres
or 1/10 inch depending on the Measures property. You can convert from inches
using the formula:
mm = 254 * inch
All the line widths are defined in TWIPS:
1 Point = 20 TWIPS
1 mm = 56.7 TWIPS (rounded to 57 for internal calculation)
Warning:
If you wish to print several documents concurrently (i.e. in parrallel
threads) you must initialise and terminate the environment for each thead with
PrtGRxInit and PrtGRxTerm.
ΓòÉΓòÉΓòÉ 1.9. Formatting Characters ΓòÉΓòÉΓòÉ
To help define header and footer texts with PrtGRxSetFooter and PrtGRxSetHeader
the following special formatting flags are defined:
ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
Γöé$ ΓöéIf followed by one of the other characters in this tableΓöé
Γöé Γöéit indicates a formatting character follows, otherwise Γöé
Γöé Γöéit is taken as a literal '$' Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöél ΓöéLeft align the following text Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöér ΓöéRight align the following text Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöéc ΓöéCentre the following text Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöé@ ΓöéInsert the current date formatted acording to the systemΓöé
Γöé Γöésettings. This is read every time a job is started; so Γöé
Γöé Γöéyou can change the date format from job to job in the Γöé
Γöé Γöésame sesssion. Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
Γöé# Γöéinsert the current page number (always arabic) Γöé
Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
ΓöéΓûî or | ΓöéInsert the title of the document (see PrtGRxOpenPrintJobΓöé
Γöé Γöé) Γöé
ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
Example
'$Γûî$rpage $#' would give:
Document Title page 1
'$r@ page $#' would give (where date is defined as ISO with '/' separator):
1995/03/18 page 1
Warning:
Formatting characters only apply to the page and table header and page footer
texts.
ΓòÉΓòÉΓòÉ 1.10. Fill Syles ΓòÉΓòÉΓòÉ
Several of the Printer functions refer to a fill style. You can see the effect
of a style for any printer by running the DEMO program and printing the box
styles option. The numbers you pass to any of these functions is translated
into a PATSYM_????? constant, and the output is, to a certain extent, device
dependent. For an idea of what you will obtain see the pictures below.
ΓòÉΓòÉΓòÉ 2. Printer Properties ΓòÉΓòÉΓòÉ
The following sections describe the properties that you can "Get" or "Set" with
PrtGRxGet or PrtGRxSet for a Printer Object.
BottomMargin
ColorEnabled
CurrentDevice
CurrentPrinter
DefaultPrinter
FormHeight
FormName
FormWidth
JobName
LeftMargin
LineSpace
Measures
MinBottomMar
MinLeftMar
MinRightMar
MinTopMar
PageHeight
PageNum
PageWidth
Printing
PrintColor
RightMargin
ShowProgress
TopMargin
Version
WordBreak
ΓòÉΓòÉΓòÉ 2.1. BottomMargin ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> BottomMargin - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
LeftMargin
RightMargin
TopMargin
PageHeight
PageWidth
ΓòÉΓòÉΓòÉ <hidden> BottomMargin - Description ΓòÉΓòÉΓòÉ
The distance of the bottom margin from the lower edge of the page. The measure
is in mm or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.2. ColorEnabled ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> ColorEnabled - List ΓòÉΓòÉΓòÉ
Data Type
Boolean
Possible Values
1 (TRUE)
0 (FALSE)
See Also
PrintColor
ΓòÉΓòÉΓòÉ <hidden> ColorEnabled - Description ΓòÉΓòÉΓòÉ
Boolean property indicating whether color printing is enabled or not.
ΓòÉΓòÉΓòÉ 2.3. CurrentDevice ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> CurrentDevice - List ΓòÉΓòÉΓòÉ
Data Type
String
See Also
CurrentPrinter
PrtGRxPrinterDialog
ΓòÉΓòÉΓòÉ <hidden> CurrentDevice - Description ΓòÉΓòÉΓòÉ
The name of the printer device selected for the printer object. This is the
same as the Physical Name seen in printer settings notebook.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.4. CurrentPrinter ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> CurrentPrinter - list ΓòÉΓòÉΓòÉ
Data Type
String
See Also
CurrentDevice
PrtGRxPrinterDialog
ΓòÉΓòÉΓòÉ <hidden> CurrentPrinter - Description ΓòÉΓòÉΓòÉ
The name of the printer selected for the printer object. This is the same as
the name seen on the desktop printer object.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.5. DefaultPrinter ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> DefaultPrinter - List ΓòÉΓòÉΓòÉ
Data Type
String
See Also
CurrentDevice
CurrentPrinter
PrtGRxPrinterDialog
ΓòÉΓòÉΓòÉ <hidden> DefaultPrinter - Description ΓòÉΓòÉΓòÉ
The name of the default system printer. This is the same as the name seen on
the desktop printer object.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.6. FormHeight ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> FormHeight - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
FormName
FormWidth
ΓòÉΓòÉΓòÉ <hidden> FormHeight - Description ΓòÉΓòÉΓòÉ
The height of the currently selected form for the current printer in mm or 1/10
inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.7. FormName ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> FormName - List ΓòÉΓòÉΓòÉ
Data Type
String
See Also
FormHeight
FormWidth
ΓòÉΓòÉΓòÉ <hidden> FormName - Description ΓòÉΓòÉΓòÉ
The name of the currently selected form for the current printer.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.8. FormWidth ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> FormWidth - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
FormHeight
FormName
ΓòÉΓòÉΓòÉ <hidden> FormWidth - Description ΓòÉΓòÉΓòÉ
The width of the currently selected form for the current printer in mm or 1/10
inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.9. JobName ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> JobName - List ΓòÉΓòÉΓòÉ
Data Type
String
ΓòÉΓòÉΓòÉ <hidden> JobName - Description ΓòÉΓòÉΓòÉ
The document name of the current print job.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.10. LeftMargin ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> LeftMargin - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
BottomMargin
RightMargin
TopMargin
PageHeight
PageWidth
ΓòÉΓòÉΓòÉ <hidden> LeftMargin - Description ΓòÉΓòÉΓòÉ
The distance of the left margin from the left edge of the page. The measure is
in mm or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.11. LineSpace ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> LineSpace - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
PrtGRxPrintCentered
PrtGRxPrintJustified
PrtGRxPrintRight
PrtGRxPrintLeft
PrtGRxPrintLine
ΓòÉΓòÉΓòÉ <hidden> LineSpace - Description ΓòÉΓòÉΓòÉ
Line spacing as a percentage of the font size. The default value is set to
single space = 120%. All writes following this call will use this inter-line
spacing.
ΓòÉΓòÉΓòÉ 2.12. Measures ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> Measures - List ΓòÉΓòÉΓòÉ
Data Type
String
Possible Values
Metric
Inch
See Also
PrtGRxDefineTable
PrtGRxSetFooter
PrtGRxSetHeaderMode
PrtGRxSetMargins
ΓòÉΓòÉΓòÉ <hidden> Measures - Description ΓòÉΓòÉΓòÉ
The units to use for distances on the printing page. These can be either mm
(the default) or in 1/10 inch units.
ΓòÉΓòÉΓòÉ 2.13. MinBottomMar ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> MinBottomMar - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
MinLeftMar
MinRightMar
MinTopMar
ΓòÉΓòÉΓòÉ <hidden> MinBottomMar - Description ΓòÉΓòÉΓòÉ
The minimum bottom margin allowed for the selected printer. The measure is in
mm or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.14. MinLeftMar ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> MinLeftMar - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
MinBottomMar
MinRightMar
MinTopMar
ΓòÉΓòÉΓòÉ <hidden> MinLeftMar - Description ΓòÉΓòÉΓòÉ
The minimum left margin allowed for the selected printer. The measure is in mm
or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.15. MinRightMar ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> MinRightMar - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
MinBottomMar
MinLeftMar
MinTopMar
ΓòÉΓòÉΓòÉ <hidden> MinRightMar - Description ΓòÉΓòÉΓòÉ
The minimum right margin allowed for the selected printer. The measure is in mm
or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.16. MinTopMar ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> MinTopMar - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
MinBottomMar
MinLeftMar
MinRightMar
ΓòÉΓòÉΓòÉ <hidden> MinTopMar - Description ΓòÉΓòÉΓòÉ
The minimum top margin allowed for the selected printer. The measure is in mm
or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.17. PageHeight ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PageHeight - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
BottomMargin
LeftMargin
RightMargin
TopMargin
PageWidth
ΓòÉΓòÉΓòÉ <hidden> PageHeight - Decsription ΓòÉΓòÉΓòÉ
The height of the printing area of the page (bottom to top margin) in mm or
1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.18. PageNum ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PageNum - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
JobName
ΓòÉΓòÉΓòÉ <hidden> PageNum - Description ΓòÉΓòÉΓòÉ
This property contains the number of the page that is currently being printed.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.19. PageWidth ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PageWidth - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
BottomMargin
LeftMargin
RightMargin
TopMargin
PageHeight
ΓòÉΓòÉΓòÉ <hidden> PageWidth - Description ΓòÉΓòÉΓòÉ
The width of the printing area of the page (left to right margin) in mm or 1/10
inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.20. Printing ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> Printing - List ΓòÉΓòÉΓòÉ
Data Type
Boolean
Possible Values
1 (TRUE)
0 (FALSE)
See Also
PrtGRxClosePrintJob
PrtGRxOpenPrintJob
ΓòÉΓòÉΓòÉ <hidden> Printing - Description ΓòÉΓòÉΓòÉ
This property is set to 1 when a print job is open on the printer object.
Otherwise this property is set to 0.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.21. PrintColor ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrintColor - List ΓòÉΓòÉΓòÉ
Data Type
String
Possible Values
See Description
See Also
ColorEnabled
ΓòÉΓòÉΓòÉ <hidden> PrintColor - Description ΓòÉΓòÉΓòÉ
This property is only relevant for colour printers. It contains the current
colour being used for printing. This color can be any of the followng values:
White Black Blue
Red Pink Green
Cyan Yellow DarkGray
DarkBlue DarkRed DarkPink
DarkGreen DarkCyan Brown
PaleGrey <default>
ΓòÉΓòÉΓòÉ 2.22. RightMargin ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> RightMargin - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
BottomMargin
LeftMargin
TopMargin
PageHeight
PageWidth
ΓòÉΓòÉΓòÉ <hidden> RightMargin - Description ΓòÉΓòÉΓòÉ
The distance of the right margin from the right edge of the page. The measure
is in mm or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.23. ShowProgress ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> ShowProgress - List ΓòÉΓòÉΓòÉ
Data Type
Boolean
Possible Values
1 (TRUE)
0 (FALSE)
See Also
PrtGRxSetProgressTexts
ΓòÉΓòÉΓòÉ <hidden> ShowProgress - Description ΓòÉΓòÉΓòÉ
This is boolean property that when set enables the progress dialog to pop up
when a job is printing.
Figure: Default Progress Dialog.
ΓòÉΓòÉΓòÉ 2.24. TopMargin ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> TopMargin - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
See Also
BottomMargin
LeftMargin
RightMargin
PageHeight
PageWidth
ΓòÉΓòÉΓòÉ <hidden> TopMargin - Description ΓòÉΓòÉΓòÉ
The distance of the top margin from the upper edge of the page. The measure is
in mm or 1/10 inch depending on the Measures property.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.25. Version ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> Version - List ΓòÉΓòÉΓòÉ
Data Type
Numeric
ΓòÉΓòÉΓòÉ <hidden> Version - Description ΓòÉΓòÉΓòÉ
Version number of the object.
Warning: This property is read only and cannot be set with a call to PrtGRxSet.
ΓòÉΓòÉΓòÉ 2.26. WordBreak ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> WordBreak - List ΓòÉΓòÉΓòÉ
Data Type
Boolean
Possible Values
1 (TRUE)
0 (FALSE)
ΓòÉΓòÉΓòÉ <hidden> WordBreak - Description ΓòÉΓòÉΓòÉ
The WordBreak property allows you to control the way the Printer Object
performs word wrapping on a block of text. By default this property is set to 1
(TRUE) so that the breaks occur between words. By setting this property off
(0), line wrapping will occur with breaks between characters.
ΓòÉΓòÉΓòÉ 3. Printer Functions ΓòÉΓòÉΓòÉ
The following sections describe each of the functions available for a Printer
Object in the PrtGraph REXX Library. In the following list, the names of the
old functions are given where applicacable. These old function names are
maintained for backward compatibility.
PrtGRxAbortPrintJob
PrtGRxBlockFits
PrtGRxClosePrintJob
PrtGRxDefineTable
PrtGRxDropFuncs
PrtGRxEndRow
PrtGRxEndTable
PrtGRxFontDialog or PrtGRxFontDlg
PrtGRxGet
PrtGRxGoto
PrtGRxInit
PrtGRxJobProperties or PrtGRxJobProps
PrtGRxLineFits
PrtGRxLoadFuncs
PrtGRxMoveX
PrtGRxMoveY
PrtGRxNewPage
PrtGRxOpenPrintJob
PrtGRxPrintBitMap or PrtGRxBitmap
PrtGRxPrintBox or PrtGRxBox
PrtGRxPrintCentered or PrtGRxCentre
PrtGRxPrinterDialog or PrtGRxPrinterDlg
PrtGRxPrinterList
PrtGRxPrintFile
PrtGRxPrintJustified or PrtGRxJustified
PrtGRxPrintLeft or PrtGRxWrite
PrtGRxPrintLine or PrtGRxWriteln
PrtGRxPrintRight or PrtGRxJustRight
PrtGRxPrintWinImage
PrtGRxResetColHeader
PrtGRxResetHeader
PrtGRxSet
PrtGRxSetFooter
PrtGRxSetHeader
PrtGRxSetHeaderLineFont or PrtGRxSetHdrLineFont
PrtGRxSetHeaderMode
PrtGRxSetMargins
PrtGRxSetPrinter
PrtGRxSetProgressTexts
PrtGRxStartCol
PrtGRxStartRow
PrtGRxStartTable
PrtGRxTab
PrtGRxTerm
ΓòÉΓòÉΓòÉ 3.1. PrtGRxAbortPrintJob ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxAbortPrintJob - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxOpenPrintJob
PrtGRxClosePrintJob
ΓòÉΓòÉΓòÉ <hidden> PrtGRxAbortPrintJob - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxAbortPrintJob( printer);
Aborts the print job and deletes the document from the print queue.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxAbortPrintJob - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxAbortPrintJob - Example ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Abort the print job */
/********************************************************************/
ok = PrtGRxAbortPrintJob( printer);
ΓòÉΓòÉΓòÉ 3.2. PrtGRxBlockFits ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxBlockFits - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxLineFits
PrtGRxPrintCentered
PrtGRxPrintJustified
PrtGRxPrintRight
PrtGRxPrintLeft
PrtGRxPrintLine
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxBlockFits - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxBlockFits( printer,
face_name,
points,
string);
Checks whether the text will fit as one block onto the page or needs a new page
to complete.
Return
TRUE (1) if the block of text will fit on the page else FALSE (0).
Note:
No text is actually printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxBlockFits - parameters ΓòÉΓòÉΓòÉ
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
string The string to be printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxBlockFits - Example ΓòÉΓòÉΓòÉ
facename = 'Helvetica';
/**** Text is long block of text */
fnt = 8
rcy = PrtGRxPrintLine( printer, facename, fnt, text);
rcy = PrtGRxPrintLine( printer, , fnt, '');
do fnt = 10 to 24 by 2
if PrtGRxBlockFits( printer, facename, fnt, text) then
rcy = PrtGRxPrintLine( printer, , fnt, text);
else do
rcy = PrtGRxGoto( printer, 0, 10, 1);
rcy = PrtGRxPrintRight( printer, , 10, "Continued...");
rcy = PrtGRxPrintLine( printer, , fnt, text);
end
if PrtGRxBlockFits( printer, facename, fnt, '') then
rcy = PrtGRxPrintLine( printer, , fnt, '');
else
rcy = PrtGRxPrintRight( printer, , 10, "Continued...");
end
ΓòÉΓòÉΓòÉ 3.3. PrtGRxClosePrintJob ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxClosePrintJob - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxOpenPrintJob
PrtGRxAbortPrintJob
ΓòÉΓòÉΓòÉ <hidden> PrtGRxClosePrintJob - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxClosePrintJob( printer);
Close the print job and end the document.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxClosePrintJob - parameters ΓòÉΓòÉΓòÉ
None
ΓòÉΓòÉΓòÉ <hidden> PrtGRxClosePrintJob - Example ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Close the print job */
/********************************************************************/
ok = PrtGRxClosePrintJob( printer);
ΓòÉΓòÉΓòÉ 3.4. PrtGRxDefineTable ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDefineTable - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxStartTable
PrtGRxStartRow
PrtGRxStartCol
PrtGRxEndRow
PrtGRxEndTable
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDefineTable - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxDefineTable( printer,
"table.",
"Cols.");
Defines a table for printing. If there are not the right number of elements in
the stem vars the function will return FALSE.
This call only prepares the internal structures for handling a table, to start
printing the table you must call PrtGRxStartRow and PrtGRxStartCol.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDefineTable - Parameters ΓòÉΓòÉΓòÉ
"table." Quoted name of a stem variable containing the definition
of the table:
printer Identifier for the printer object from
PrtGRxInit.
table.0 Must be 9 for monochrome printing or
15 if you use colour support
table.1 fill style for the table (see Fill
Syles)
table.2 line thickness in TWIPS for the
outlines of the cells in the table
table.3 Flag indicating that table has column
headers
table.4 fill style for the table header (see
Fill Syles)
table.5 line thickness in TWIPS for the
outlines of the table headers
table.6 Flag indicating that the table header
should be printed on all pages.
(1 = TRUE, 0 = FALSE)
table.7 Point size of text for column header
texts
table.8 Font face name for column header texts
table.9 Left edge of the table from the left
margin in mm or 1/10 inch depending on
the Measures property
table.10 Colour for the text in the table cells
table.11 Colour for the line around table cells
table.12 Colour for the fill pattern in table
cells
table.13 Colour for the text in the table
headers
table.14 Colour for the line around table
headers
table.15 Colour for the fill pattern in table
headers
"Cols." Quoted name of a complex stem variable containing the
definitions for the columns in the table. it has the form
Cols.x.y
where
x is the column reference starting with 1 y is the field number
Cols.0.0 Number of columns in the table
Cols.x.1 Width of the column in mm or 1/10 inch
depending on the Measures property
Cols.x.2 Column header text
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDefineTable - Example ΓòÉΓòÉΓòÉ
/************************************************************************/
/* Declare a table with no fill style, 0.5 mm separator lines, 1mm */
/* lines around headers on all pages and 3 columns */
/************************************************************************/
table.0 = 15
table.1 = 0
table.2 = 28
table.3 = 1
table.4 = 0
table.5 = 56
table.6 = 1
table.7 = 12
table.8 = 'Helvetica Bold'
table.9 = 10
table.10 = "Red"
table.11 = "Cyan"
table.12 = "Black"
table.13 = "Blue"
table.14 = "White"
table.15 = "Black"
Cols.0.0 = 3
Cols.1.1 = 45
Cols.1.2 = 'Column 1'
Cols.2.1 = 75
Cols.2.2 = 'Column 2'
Cols.3.1 = 40
Cols.3.2 = 'Column 3'
ok = PrtGRxDefineTable( printer, "table.", "Cols.");
if ok then do
/**** Start printing in the table **********************************/
ok = PrtGRxStartRow( printer);
/**** Start printing in column 1 ***********************************/
ok = PrtGRxStartCol( printer, 1);
ok = PrtGRxPrintRight( printer, 'Helvetica', 10, textvar);
/**** Start printing in column 2 ***********************************/
ok = PrtGRxStartCol( printer, 2);
ok = PrtGRxPrintJustified( printer, 'Helvetica Bold', 10, textvar);
ok = PrtGRxPrintJustified( printer,,,textvar);
ok = PrtGRxPrintJustified( printer,,,textvar);
/**** Start printing in column 3 ***********************************/
ok = PrtGRxStartCol( printer, 3);
ok = PrtGRxPrintCentered( printer, 'Helvetica Bold', 14, textvar);
/**** Print the row ************************************************/
ok = PrtGRxEndRow( printer);
/**** Start a new row **********************************************/
ok = PrtGRxStartRow( printer);
ok = PrtGRxStartCol( printer, 1);
ok = PrtGRxPrintRight( printer, 'Times New Roman', 10, textvar);
ok = PrtGRxStartCol( printer, 2);
ok = PrtGRxPrintLeft( printer, 'Helvetica Bold', 10, textvar);
ok = PrtGRxPrintCentered( printer,,,textvar);
ok = PrtGRxPrintJustified( printer,,,textvar);
ok = PrtGRxPrintRight( printer,,,textvar);
ok = PrtGRxStartCol( printer, 3);
ok = PrtGRxPrintJustified( printer, 'Times New Roman', 8, textvar);
/**** Print the row ************************************************/
ok = PrtGRxEndRow( printer);
/**** Destroy the table data structures ****************************/
ok = PrtGRxEndTable( printer);
end
ΓòÉΓòÉΓòÉ 3.5. PrtGRxDropFuncs ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDropFuncs - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxLoadFuncs
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDropFuncs - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxDropFuncs( );
Drops all the functions for the PrtGraph REXX Library.
Return
Always returns 1 (TRUE).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDropFuncs - Parameters ΓòÉΓòÉΓòÉ
None
ΓòÉΓòÉΓòÉ <hidden> PrtGRxDropFuncs - Example ΓòÉΓòÉΓòÉ
rc = PrtGRxDropFuncs
ΓòÉΓòÉΓòÉ 3.6. PrtGRxEndRow ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxEndRow - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxDefineTable
PrtGRxStartTable
PrtGRxStartRow
PrtGRxStartCol
PrtGRxEndTable
ΓòÉΓòÉΓòÉ <hidden> PrtGRxEndRow - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxEndRow( printer);
End the current row in a table and print it. This will cause the table to wrap
over page if any of the columns will not fit. Cells will be split over the page
not forced onto the next page. If you have defined running headers for the
table, these will be printed at the top of the page.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxEndRow - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ 3.7. PrtGRxEndTable ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxEndTable - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxDefineTable
PrtGRxStartTable
PrtGRxStartRow
PrtGRxStartCol
PrtGRxEndRow
ΓòÉΓòÉΓòÉ <hidden> PrtGRxEndTable - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxEndTable( printer);
Terminate table mode printing and return to normal text printing.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxEndTable - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ 3.8. PrtGRxFontDialog ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxFontDialog - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrinterDialog
PrtGRxPrinterList
PrtGRxSetPrinter
ΓòÉΓòÉΓòÉ <hidden> PrtGRxFontDialog - Description ΓòÉΓòÉΓòÉ
font = PrtGRxFontDialog( printer,
title,
familyname);
Pops up a dialog with a list of fonts available on your work station for the
selected printer.
Return
Name of the selected font if successful, otherwise an empty string.
Figure: Font Dialog.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxFontDialog - parameters ΓòÉΓòÉΓòÉ
title Title to appear in the font dialog.
familyname This will set the default selected font in the dialog.
This is the name of the font e.g. Helvetica and should not
include the point size or attributes.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxFontDialog - Example ΓòÉΓòÉΓòÉ
fntstr = PrtGRxFontDialog( printer, "Choose printer font", "CG Times");
ΓòÉΓòÉΓòÉ 3.9. PrtGRxGet ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxGet - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxSet
Printer properties
ΓòÉΓòÉΓòÉ <hidden> PrtGRxGet - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxGet( printer,
Property);
Retrieves the value of the given property for the printer object.
Return
A string represenation of the property.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxGet - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
Property name of the property. see Printer properties
ΓòÉΓòÉΓòÉ <hidden> PrtGRxGet - Example ΓòÉΓòÉΓòÉ
prtstr = PrtGRxGet( printer, "CurrentPrinter");
say prtstr
ΓòÉΓòÉΓòÉ 3.10. PrtGRxGoto ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxGoto - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
ΓòÉΓòÉΓòÉ <hidden> PrtGRxGoto - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxGoto( printer,
x,
y,
use_points);
Move the GPI cursor to the given position on the page.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxGoto - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
x X coordinate in millimetres or 1/10 inch depending on the
Measures property from the left margin, unless use_points
is 1
y Y coordinate in millimetres or 1/10 inch depending on the
Measures property from the bottom margin, unless
use_points is 1
use_points flag indicating whether to use the default Measures or
points.
0 (or parameter absent) = Use default measure
1 = use Points
ΓòÉΓòÉΓòÉ 3.11. PrtGRxInit ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxInit - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxTerm
ΓòÉΓòÉΓòÉ <hidden> PrtGRxinit - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxInit( for_cmd_line);
Initialises a new printer object for use. If you are working in a graphics
environment (gpfREXX, VisPro REXX etc..) you may leave the argument out or set
it to 0.
Return
A unique identifier for a printer object to be used with the other PrtGraph
functions.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxInit - Parameters ΓòÉΓòÉΓòÉ
for_cmd_line Flag (0 or 1) indicating that you wnat to use the library
for a command line program. when set to 1, the PM Daemon
is started (or connected to) so that you can use the
dialog functions
ΓòÉΓòÉΓòÉ <hidden> PrtGRxInit - Example ΓòÉΓòÉΓòÉ
printer = PrtGRxInit();
ΓòÉΓòÉΓòÉ 3.12. PrtGRxJobProperties ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxJobProperties - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxPrinterDialog
PrtGRxPrinterList
PrtGRxSetPrinter
ΓòÉΓòÉΓòÉ <hidden> PrtGRxJobProperties - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxJobProperties( printer);
Pops up the job properties dialog for the printer selected with
PrtGRxPrinterDialog or with PrtGRxSetPrinter. If there is no selected printer,
an error dialog is popped up and the function returns FALSE.
Return
TRUE (1) if successful else FALSE (0).
Figure: Printer Job Properties Dialog for a Laserjet IIIP.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxJobProperties - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ 3.13. PrtGRxLineFits ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxLineFits - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxBlockFits
PrtGRxPrintCentered
PrtGRxPrintJustified
PrtGRxPrintRight
PrtGRxPrintLeft
PrtGRxPrintLine
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxLineFits - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxLineFits( printer,
face_name,
points,
string);
Checks whether the text will fit onto the line or needs to be wrapped.
Return
TRUE (1) if the block of text will fit on the line else FALSE (0).
Note:
No text is actually printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxLineFits - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
string The string to be printed.
ΓòÉΓòÉΓòÉ 3.14. PrtGRxLoadFuncs ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxLoadFuncs - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxDropFuncs
ΓòÉΓòÉΓòÉ <hidden> PrtGRxLoadFuncs - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxLoadFuncs( );
Loads all the functions for the PrtGraph REXX Library.
Return
Always returns 1 (TRUE).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxLoadFuncs - Parameters ΓòÉΓòÉΓòÉ
None
ΓòÉΓòÉΓòÉ <hidden> PrtGRxLoadFuncs - Example ΓòÉΓòÉΓòÉ
rc = PrtGRxLoadFuncs
ΓòÉΓòÉΓòÉ 3.15. PrtGRxMoveX ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxMoveX - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxGoto
PrtGRxMoveY
ΓòÉΓòÉΓòÉ <hidden> PrtGRxMoveX - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxMoveX( printer,
relX,
points);
Moves the graphics printing cursor horizontally relative to the current
position.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxMoveX - Parameters ΓòÉΓòÉΓòÉ
Parameters
printer Identifier for the printer object from PrtGRxInit.
relX number of points or units to move. If the number is
negative, the cursor is moved to the left.
points flag indicating whether to use the default Measures or
points.
0 (or parameter absent) = Use default measure
1 = use Points
ΓòÉΓòÉΓòÉ 3.16. PrtGRxMoveY ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxMoveY - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxGoto
PrtGRxMoveX
ΓòÉΓòÉΓòÉ <hidden> PrtGRxMoveY - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxMoveY( printer,
relY,
points);
Moves the graphics printing cursor vertically relative to the current position.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxMoveY - Parameters ΓòÉΓòÉΓòÉ
Parameters
printer Identifier for the printer object from PrtGRxInit.
relY number of points or units to move. If the number is
negative, the cursor is moved down.
points flag indicating whether to use the default Measures or
points.
0 (or parameter absent) = Use default measure
1 = use Points
ΓòÉΓòÉΓòÉ 3.17. PrtGRxNewPage ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxNewPage - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxSetHeader
PrtGRxSetHeaderMode
PrtGRxSetFooter
PrtGRxSetMargins
ΓòÉΓòÉΓòÉ <hidden> PrtGRxNewPage - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxNewPage( printer);
Forces a new page to be started. If a header or footer is defined, these will
be printed to the new page.
If a table is being printed and the table has running headers defined, the
column headers will be printed. The new page will only be started when you make
the next PrtGRxEndRow call.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxNewPage - Parameters ΓòÉΓòÉΓòÉ
Parameters
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ 3.18. PrtGRxOpenPrintJob ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxOpenPrintJob - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrinterDialog
PrtGRxSetPrinter
PrtGRxSetMargins
PrtGRxSetHeader
PrtGRxSetHeaderMode
PrtGRxSetFooter
PrtGRxClosePrintJob
ΓòÉΓòÉΓòÉ <hidden> PrtGRxOpenPrintJob - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxOpenPrintJob( printer,
doc_name,
num_copies);
Opens the print job with the spooler. You should previously define the margins,
header and and footer and, if you do not want to use the default printer, have
selected a printer.
Note: If you have not selected a printer and there is no default printer for
the system, an error dialog is popped up and the function returns FALSE.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxOpenPrintJob - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
doc_name The title of the document. This will aslo be passed to the
spooler ad the document name.
num_copies The number of copies to print.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxOpenPrintJob - Example ΓòÉΓòÉΓòÉ
ok = PrtGRxSetMargins( printer, 25, 20, 20, 25, 0, 0);
ok = PrtGRxSetHeaderMode( printer, header, facename, 10, 8, 28, 0);
ok = PrtGRxSetHeader( printer, 3, ,
"$c|", "$lADD Consulting (CH)$r@",,
'Demo for PrtGraph REXX Library for VX-REXX');
ok = PrtGRxSetFooter( printer, facename, 8, 0, 14, '$|$rpage $#');
ok = PrtGRxOpenPrintJob( printer, 'Document Title');
if \ok then
return
ΓòÉΓòÉΓòÉ 3.19. PrtGRxPrintBitMap ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintBitMap - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
Box
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintBitMap - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintBitMap( printer,
bitmap_file,
lx, ly,
tx, ty,
th,
border_color);
Prints a bitmap from a file in the box given by the coordinates and framed in
the given line style.
The bit map will be stretched or compressed to fit and, if the printer supports
colour, will be printed in colour.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintBitMap - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
bitmap_file Full path to the bitmap file you want to print
lx Lower left X coordinate taken from the left margin in
millimetres or 1/10 inch depending on the Measures
property
ly Lower left Y coordinate taken from the bottom margin in
millimetres or 1/10 inch depending on the Measures
property
tx Upper right X coordinate taken from the left margin in
millimetres or 1/10 inch depending on the Measures
property
ty Upper right Y coordinate taken from the bottom margin in
millimetres or 1/10 inch depending on the Measures
property
th Thickness of the box line in TWIPS ( 56.7 TWIPS = 1mm)
border_color The colour of the line around the bitmap. One of the
colour strings defined by VX-REXX
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintBitMap - Example ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Print the OS/2 logo in a box with a thick outline */
/********************************************************************/
/**** Get the path to the bit map ***********************************/
set_path = VALUE( 'PATH', , 'OS2ENVIRONMENT');
bootdrive = substr( set_path, pos( '\OS2\SYSTEM', set_path ) -2, 2);
bmp_name = bootdrive || '\os2\bitmap\os2logo.bmp'
/**** Print the bit map with a blue border **************************/
ok = PrtGRxPrintBitMap( printer, bmp_name, 40, 20, 130, 110, 200, "Blue");
ΓòÉΓòÉΓòÉ 3.20. PrtGRxPrintBox ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintBox - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintBox - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintBox( printer,
lx, ly,
tx, ty,
th, st,
line_color,
fill_color);
Prints a box at the given coordinates and framed in the given line thickness
and filled with the given style.
Return
TRUE (1) if successful else FALSE (0).
Note: The position of the cursor is unaffected by this function.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintBox - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
lx Lower left X coordinate taken from the left margin in
millimetres or 1/10 inch depending on the Measures
property
ly Lower left Y coordinate taken from the bottom margin in
millimetres or 1/10 inch depending on the Measures
property
tx Upper right X coordinate taken from the left margin in
millimetres or 1/10 inch depending on the Measures
property
ty Upper right Y coordinate taken from the bottom margin in
millimetres or 1/10 inch depending on the Measures
property
th Thickness of the box line in TWIPS ( 56.7 TWIPS = 1mm)
st Style used for filling the box (see Fill Syles)
line_color The colour of the line around the box. One of the colour
strings defined by VX-REXX
fill_color The colour used for the foregound of the fill pattern. One
of the colour strings defined by VX-REXX
ΓòÉΓòÉΓòÉ 3.21. PrtGRxPrintCentered ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintCentered - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrintJustified
PrtGRxPrintRight
PrtGRxPrintLeft
PrtGRxPrintLine
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintCentered - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintCentered( printer,
face_name,
points,
string);
Prints the given text in the given font and point size centred between the
declared margins of the page. All the parameters must be present.
The text will be wrapped over several lines if it is too long to fit on one
line and the cursor is placed at the beginning of the next line at the end of
the printing.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintCentered - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
string The string to be printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintCentered - Examples ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Print a text centred on the page (or in a cell) in Helvetica 10 */
/********************************************************************/
ok = PrtGRxPrintCentered( printer, "Helvetica", 10, "whatever you want to print");
/**** The following text will have the same font and size ***********/
ok = PrtGRxPrintCentered( printer,,,"Here is some more");
ΓòÉΓòÉΓòÉ 3.22. PrtGRxPrinterDialog ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrinterDialog - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxJobProperties
PrtGRxPrinterList
PrtGRxOpenPrintJob
PrtGRxSetPrinter
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrinterDialog - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrinterDialog( printer,
title,
"Buttons.");
Pops up a dialog with a list of printers available on your work station. You
can set the current printer by either double-clicking on a printer or by
selecting an item and clicking on the OK button.
Initially the default printer will be highlighted.
You can set the properties to use for any of the printers in the list with
Properties button. These properties will be valid until you next call the
Dialog.
Return
Name of the printer that was selected or an empty string if the Cancel button
was pressed.
Warning: If you change the button texts, take care that the text will fit on
the button as the buttons are not resized to the text. ALL BUTTON TEXTS ARE
LIMITED TO 32 CHARACTERS
Figure: Printer Dialog.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrinterDialog - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
title Title to appear in the printers dialog.
Buttons. Stem variable containing the texts for the buttons in the
dialog.
Buttons.0 Must be 3
Buttons.1 New text for the OK button in the
dialog.
Buttons.2 New text for the Job properties...
button in the dialog.
Buttons.3 New text for the Cancel button in the
dialog.
ΓòÉΓòÉΓòÉ 3.23. PrtGRxPrinterList ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrinterList - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrinterDialog
PrtGRxSetPrinter
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrinterList - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrinterList( printer,
"printers.");
This function returns a list of printer names that you can use to create your
own printer selection dialog. You can set the selected printer with a call to
PrtGRxSetPrinter using the index of the printer name.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrinterList - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
"printers." Quoted name of a stem variable to contain the list of
available printers.
printers.0 will contain the number of printers in the
list.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrinterList - Example ΓòÉΓòÉΓòÉ
/****************************************************************/
/* Get the list of printers into a stem variable */
/****************************************************************/
ok = PrtGRxPrinterList( printer, "printers.");
ΓòÉΓòÉΓòÉ 3.24. PrtGRxPrintFile ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintFile - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxOpenPrintJob
PrtGRxClosePrintJob
PrtGRxPrintBitMap
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintFile - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintFile( printer,
face_name,
points,
style,
file_name);
Prints the given file in the given font, point size and style. All the
parameters must be present.
A print job must have been opened prior to calling this function.
Return
TRUE (1) if successful else FALSE (0).
Warning: Only print plain text files with this function. printing any other
kind of file could produce unexpected results.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintFile - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
style The style to print in:
"L" or empty = Left aligned
"R" = Right aligned "C" = Centred "J" = Justified
file_name fully qualified name of the file to print.
ΓòÉΓòÉΓòÉ 3.25. PrtGRxPrintJustified ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintJustified - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrintCentered
PrtGRxPrintRight
PrtGRxPrintLeft
PrtGRxPrintLine
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintJustified - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintJustified( printer,
face_name,
points,
string);
Prints the given text in the given font and point size justified between the
declared margins of the page. All the parameters must be present.
The text will be wrapped over several lines if it is too long to fit on one
line and the cursor is placed at the beginning of the next line at the end of
the printing.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintJustified - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
string The string to be printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintJustified - Example ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Print a text justified on the page (or in a cell) in Helv 10 */
/********************************************************************/
ok = PrtGRxPrintJustified( printer, "Helvetica", 10, "whatever you want to print");
/**** The following text will have the same font and size ***********/
ok = PrtGRxPrintJustified( printer,,,"Here is some more");
ΓòÉΓòÉΓòÉ 3.26. PrtGRxPrintLeft ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLeft - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrintCentered
PrtGRxPrintJustified
PrtGRxPrintRight
PrtGRxPrintLine
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLeft - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintLeft( printer,
face_name,
points,
string);
Prints the given text in the given font and point size. All the parameters must
be present.
The text will be wrapped over several lines if it is too long to fit on one
line and the cursor is placed at the end of the text at the end of the
printing.
Return
TRUE (1) if successful else FALSE (0).
Note:
Remember to add a space at the end of a string if you call this function
several times, otherwise the texts will be "stuck" together.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLeft - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
string The string to be printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLeft - Example ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Print a text on the page (or in a cell) in Helvetica 10 */
/********************************************************************/
ok = PrtGRxPrintLeft( printer, 'Helvetica', 10, 'whatever you want to print. ');
/**** The following text will have the same font and size ***********/
ok = PrtGRxPrintLeft( printer,,,'Here is some more');
ΓòÉΓòÉΓòÉ 3.27. PrtGRxPrintLine ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLine - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrintCentered
PrtGRxPrintJustified
PrtGRxPrintRight
PrtGRxPrintLeft
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLine - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintLine( printer,
face_name,
points,
string);
Prints the given text in the given font and point size aligned on the left
margin of the page. All the parameters must be present.
The text will be wrapped over several lines if it is too long to fit on one
line and the cursor is placed at the beginning of the next line at the end of
the printing.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLine - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
string The string to be printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintLine - Example ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Print a text on the page (or in a cell) in Helvetica 10 */
/********************************************************************/
ok = PrtGRxPrintLine( printer, 'Helvetica', 10, 'whatever you want to print');
/**** The following text will have the same font and size ***********/
ok = PrtGRxPrintLine( printer,,,'Here is some more');
ΓòÉΓòÉΓòÉ 3.28. PrtGRxPrintRight ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintRight - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxPrintCentered
PrtGRxPrintJustified
PrtGRxPrintLeft
PrtGRxPrintLine
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintRight - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxPrintRight( printer,
face_name,
points,
string);
Prints the given text in the given font and point size right justified with
relation to the right margin of the page. All the parameters must be present.
The text will be wrapped over several lines if it is too long to fit on one
line and the cursor is placed at the beginning of the next line at the end of
the printing.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintRight - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
face_name Name of the font used to print. This MUST be an outline
font. If this is left empty, the previous font is used.
points Point size of the font, If this is left empty, the
previous font size is used.
string The string to be printed.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintRight - Example ΓòÉΓòÉΓòÉ
/********************************************************************/
/* Print a text right aligned on the page (or in a cell) */
/********************************************************************/
ok = PrtGRxPrintRight( printer, 'Helvetica', 10, 'whatever you want to print');
/**** The following text will have the same font and size ***********/
ok = PrtGRxPrintRight( printer,,,'Here is some more');
ΓòÉΓòÉΓòÉ 3.29. PrtGRxPrintWinImage ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintWinImage - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxPrintBox
PrtGRxPrintBitMap
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintWinImage - Description ΓòÉΓòÉΓòÉ
PrtGRxPrintWinImage( printer,
hwnd,
lx, ly,
tx, ty,
th,
border_color);
Prints an image of the contents of a window.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxPrintWinImage - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
hwnd Handle of the window whose contents you want to print
lx Lower left X coordinate taken from the left margin in
millimetres or 1/10 inch depending on the Measures
property
ly Lower left Y coordinate taken from the bottom margin in
millimetres or 1/10 inch depending on the Measures
property
tx Upper right X coordinate taken from the left margin in
millimetres or 1/10 inch depending on the Measures
property. if this parameter is left out the image will be
printed with the same width as the object on the screen.
ty Upper right Y coordinate taken from the bottom margin in
millimetres or 1/10 inch depending on the Measures
property. if this parameter is left out the image will be
printed with the same height as the object on the screen.
th Thickness of the box line in TWIPS ( 56.7 TWIPS = 1mm)
border_color The colour of the line around the image. One of the colour
strings defined by VX-REXX
ΓòÉΓòÉΓòÉ 3.30. PrtGRxResetColHeader ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxResetColHeader - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxDefineTable
ΓòÉΓòÉΓòÉ <hidden> PrtGRxResetColHeader - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxResetColHeader( printer,
col_num,
text);
Changes the text in the table header for the given column.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxResetColHeader - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
col_num Number of the column (1..n) whose header text you want to
change
text New header text for the column
ΓòÉΓòÉΓòÉ 3.31. PrtGRxResetHeader ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxResetHeader - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxSetHeader
PrtGRxSetHeaderMode
PrtGRxSetHeaderLineFont
PrtGRxSetFooter
ΓòÉΓòÉΓòÉ <hidden> PrtGRxResetHeader - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxResetHeader( printer,
numlines,
text
[, text]);
Redefines the text lines for the header printed on each page of document. The
text variable can contain Formatting Flags.
If you declare less lines than were originally defined for the header, the
extra lines will be destroyed and cannot be re-used.
Return
TRUE (1) if successful else FALSE (0).
Warning: You should only call this function after opening a print job to modify
the header for the following pages
ΓòÉΓòÉΓòÉ <hidden> PrtGRxResetHeader - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
numlines The number of lines in the header ( 1 to 5)
text The text to printed on the line. there should be numlines
text variables. An empty variable will leave the original
header text for that line.
ΓòÉΓòÉΓòÉ 3.32. PrtGRxSet ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSet - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxGet
Printer properties
PrtGRxSetFooter
PrtGRxSetHeader
PrtGRxSetHeaderLineFont
PrtGRxSetHeaderMode
PrtGRxSetMargins
PrtGRxSetPrinter
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSet - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxGoto( printer,
Property,
value);
Sets the value of the given property for the printer object.
Warning: If you try to set a read-only(see Printer properties) an invalid
function call error will be generated.
Return
A string represenation of the property.
Note:
You can only set the fillowing properties:
ColorEnabled
Measures
ShowProgress
WordBreak
All the other printer properties are read only or set using library functions.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSet - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object.
Property The name of the property. see Printer properties
value The value that you want to assign to the property.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSet - Example ΓòÉΓòÉΓòÉ
/***** Set Word Breaking off ***********************************/
ok = PrtGRxSet( printer, "WordBreak", 0);
ΓòÉΓòÉΓòÉ 3.33. PrtGRxSetFooter ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetFooter - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxSetHeader
PrtGRxSetHeaderMode
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetFooter - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxSetFooter( printer,
facename,
points,
fill,
line,
text,
line_color,
fill_color,
text_color);
Defines the footer printed on each page of document. The text variable can
contain Formatting Flags. If you don't define any colours, the default colour
will be used.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetFooter - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
facename name of the font used in printing the footer text
points Point size for the font
fill Fill style for the footer area (see Fill Syles)
line Line thickness for a box surrounding the footer
text Text to be printed in the footer
line_color The colour of the line around the header. One of the
colour strings defined by VX-REXX
fill_color The colour used for the foregound of the fill pattern. One
of the colour strings defined by VX-REXX
text_color The colour for printing the text. One of the colour
strings defined by VX-REXX
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetFooter - Example ΓòÉΓòÉΓòÉ
/****************************************************************/
/* Set the footer with the page number right justified and the */
/* document title left aligned with an unfilled blue box around */
/* it and with black text. */
/****************************************************************/
ok = PrtGRxSetFooter( printer, 'Helvetica', 8, 0, 14, '$|$rpage $#', "Blue", , "Black");
ΓòÉΓòÉΓòÉ 3.34. PrtGRxSetHeader ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeader - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxSetHeaderMode
PrtGRxResetHeader
PrtGRxSetHeaderLineFont
PrtGRxSetFooter
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeader - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxSetHeader( printer,
numlines,
text
[, text]);
Defines the text lines for the header printed on each page of document. The
text variable can contain Formatting Flags.
Return
TRUE (1) if successful else FALSE (0). FALSE is also returned if there has been
no previous call to PrtGRxSetHeaderMode.
Warning: You MUST make a call to the PrtGRxSetHeaderMode function before
calling this function
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeader - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
numlines The number of lines in the header ( 1 to 5)
text The text to printed on the line. there should be numlines
text variables
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeader - Example ΓòÉΓòÉΓòÉ
/****************************************************************/
/* Set the header with the doc title on the first line centred, */
/* the date on the second line right justified and some other */
/* text. There are 3 lines in the header. */
/****************************************************************/
ok = PrtGRxSetHeader( printer, 3, ,
"$c|",,
"$lADD Consulting (CH)$r@",,
'Demo for PrtGraph REXX Library for VX-REXX');
ΓòÉΓòÉΓòÉ 3.35. PrtGRxSetHeaderLineFont ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderLineFont - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxSetHeaderMode
PrtGRxSetHeader
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderLineFont - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxSetHeaderLineFont( printer,
linenum,
font,
points);
Sets the font for one line in the header to a different size or font from that
defined in PrtGRxSetHeaderMode.
Return
TRUE (1) if successful else FALSE (0). FALSE is also returned if there has been
no previous call to PrtGRxSetHeaderMode and PrtGRxSetHeader.
Warning: You MUST make a call to the PrtGRxSetHeaderMode and PrtGRxSetHeader
functions before calling this function
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderLineFont - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
linenum The line number in the header whose font is to be set
font The font to use for printing the line
points The point size to be used for printing
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderLineFont - Example ΓòÉΓòÉΓòÉ
/****************************************************************/
/* Print the header on all the pages with default 10 pt */
/* Helvetica bold, a .05mm line around and halftone fill. */
/****************************************************************/
ok = PrtGRxSetHeaderMode( printer, 1, 'Helvetica Bold', 10, 8, 28, 1);
/****************************************************************/
/* Set the header with the doc title on the first line centred, */
/* the date on the second line right justified and some other */
/* text. There are 3 lines in the header. */
/****************************************************************/
ok = PrtGRxSetHeader( printer, 3, ,
"$c|",,
"$lADD Consulting (CH)$r@",,
'Demo for PrtGraph REXX Library for VX-REXX');
/****************************************************************/
/* Change the point size for the first line. */
/****************************************************************/
ok = PrtGRxSetHeaderLineFont( printer, 1, , 12);
/****************************************************************/
/* Change the font and point size for the third line. */
/****************************************************************/
ok = PrtGRxSetHeaderLineFont( printer, 3, "Helvetica", 8);
ΓòÉΓòÉΓòÉ 3.36. PrtGRxSetHeaderMode ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderMode - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxSetFooter
PrtGRxSetHeader
PrtGRxSetHeaderLineFont
PrtGRxFontDialog
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderMode - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxSetHeaderMode( printer,
print,
facename,
points,
fill,
line,
all_pages,
line_color,
fill_color,
text_color);
Define the way the header is printed. Unless you specify different fonts for
each line with PrtGRxSetHeaderLineFont, the text will be printed in the font
and point size defined with this function. If you don't define any colours, the
default colour will be used.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderMode - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
print 0 = Never print the header
1 = print the header
facename name of the default font used in printing the header text.
points Default point size for printing the header.
fill Fill style for the header area (see Fill Syles)
line Line thickness for a box surrounding the header
all_pages 0 = print header on first page only
1 = print header on all the pages
line_color The colour of the line around the header. One of the
colour strings defined by VX-REXX
fill_color The colour used for the foregound of the fill pattern. One
of the colour strings defined by VX-REXX
text_color The colour for printing the text. One of the colour
strings defined by VX-REXX
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetHeaderMode - Example ΓòÉΓòÉΓòÉ
/****************************************************************/
/* Print the header on all the pages in 10 pt Helvetica bold */
/* with a .05mm blue line around and filled with cyan halftone. */
/****************************************************************/
ok = PrtGRxSetHeaderMode( printer, 1, 'Helvetica Bold', 10, 8, 28, 1, "Blue", "Cyan");
ΓòÉΓòÉΓòÉ 3.37. PrtGRxSetMargins ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetMargins - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxSetFooter
PrtGRxSetHeader
PrtGRxSetHeaderMode
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetMargins - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxSetMargins( printer,
lm, rm,
tm, bm,
pb, ps,
line_color,
fill_color);
Defines the printing margins for the job and whether the printing area has a
border and a fill style. If you don't define any colours, the default colour
will be used.
The border, if defined, will be printed just outside the margins.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetMargins - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
lm Left margin in millimetres or 1/10 inch depending on the
Measures property from page edge
rm Right margin in millimetres or 1/10 inch depending on the
Measures property from page edge
tm Top margin in millimeteres from page edge
bm Bottom margin in millimetres or 1/10 inch depending on the
Measures property from page edge
pb Thickness of line making a border around the page
ps Fill style for the page (see Fill Syles)
line_color The colour of the line around the header. One of the
colour strings defined by VX-REXX
fill_color The colour used for the foregound of the fill pattern. One
of the colour strings defined by VX-REXX
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetMargins - Example ΓòÉΓòÉΓòÉ
/****************************************************************/
/* Set the margins to left 25mm right 20mm top 20mm bottom 25mm */
/* and set the page to filled with green halftone with a black */
/* 1mm border. */
/****************************************************************/
ok = PrtGRxSetMargins( printer, 25, 20, 20, 25, 56, 8, "Black", "Green");
ΓòÉΓòÉΓòÉ 3.38. PrtGRxSetPrinter ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetPrinter - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxPrinterList
PrtGRxOpenPrintJob
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetPrinter - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxSetPrinter( printer,
idx);
For programs that do not use PrtGRxPrinterDialog, the printer MUST be set using
this function if you do not want to use the default printer. The index refers
to the position of the chosen printer name in the the stem variable returned by
PrtGRxPrinterList and is 1 based.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetPrinter - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
idx Index of the printer in the list returned by
PrtGRxPrinterList If this variable is missing or set to 0,
the default printer will be selected.
ΓòÉΓòÉΓòÉ 3.39. PrtGRxSetProgressTexts ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetProgressTexts - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
ShowProgress
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetProgressTexts - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxSetProgressTexts( printer,
"texts.");
This function allows to customise the Progress dialog. Any of the input stem
parameter fields may be left blank, in which case they assume the defaut
values.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxSetProgressTexts - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
texts. Stem variable containing the new title and texts for the
progress dialog.
texts.0 Must be 5
texts.1 New text for the title of the dialog.
By default this is: "Printing -
Progress".
texts.2 New text for the 1st line in the
dialog. By default this is the
document name.
texts.3 New text for the 2nd line in the
dialog. by default this test is:
"Printing page %u". If you replace
this text, you must include the %u
flag for the page number that is
printing.
texts.4 New text for the 3rd line in the
dialog. By default this is the name of
the printer where he job is printing.
texts.5 New text for the Abort button in the
dialog.
ΓòÉΓòÉΓòÉ 3.40. PrtGRxStartCol ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartCol - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxDefineTable
PrtGRxStartTable
PrtGRxStartRow
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartCol - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxStartCol( printer,
column);
Instructs the program to direct all text printing calls to print within the
borders set for the column.
Columns are numbers start at 1.
Return
TRUE (1) if successful else FALSE (0).
Note:
A PrtGRxTable must have been previously declared.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartCol - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
column Number of the column to start printing.
ΓòÉΓòÉΓòÉ 3.41. PrtGRxStartRow ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartRow - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
See Also
PrtGRxDefineTable
PrtGRxStartTable
PrtGRxStartCol
PrtGRxEndRow
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartRow - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxStartRow( printer);
Instructs the program that a new row in a table is to be started. All printing
commands following this call will be directed into the last column that was
declared. You MUST follow this call by a call to PrtGRxStartCol otherwise you
may generate an Access Violation.
Return
TRUE (1) if successful else FALSE (0).
Note:
A table must have been previously declared.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartRow - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ 3.42. PrtGRxStartTable ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartTable - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxDefineTable
PrtGRxStartRow
PrtGRxStartCol
PrtGRxEndRow
PrtGRxEndTable
PrtGRxResetColHeader
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartTable - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxStartTable( printer,
fill,
line,
numcols,
lm,
width
[, width]);
Defines a table for printing. If there are not the right number of lm, rm pairs
the function will return FALSE.
This call only prepares the internal structures for handling a table, to start
printing the table you must call PrtGRxStartRow and PrtGRxStartCol.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartTable - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
fill Fill style used for the table. This applies to all the
cells.
line Thickness of the separator lines for the table in TWIPS
numcols The number of columns in the table; There MUST be a width
variable for each column
lm Left edge of the table in millimetres or 1/10 inch
depending on the Measures property from the left margin
width Width of the column in millimetres or 1/10 inch depending
on the Measures property. There must be numcols width
variables
ΓòÉΓòÉΓòÉ <hidden> PrtGRxStartTable - Example ΓòÉΓòÉΓòÉ
/************************************************************************/
/* Declare a table with no fill style, 0.5 mm separator lines and */
/* 3 columns */
/************************************************************************/
ok = PrtGRxStartTable( printer, 0, 24, 3, 30, 30, 45, 40);
if rcy then do
/**** Start printing in the table **********************************/
ok = PrtGRxStartRow( printer);
/**** Start printing in column 2 ***********************************/
ok = PrtGRxStartCol( printer, 1);
ok = PrtGRxPrintRight( printer, 'Helvetica', 10, textvar);
/**** Start printing in column 2 ***********************************/
ok = PrtGRxStartCol( printer, 2);
ok = PrtGRxPrintJustified( printer, 'Helvetica Bold', 10, textvar);
ok = PrtGRxPrintJustified( printer,,,textvar);
ok = PrtGRxPrintJustified( printer,,,textvar);
/**** Start printing in column 3 ***********************************/
ok = PrtGRxStartCol( printer, 3);
ok = PrtGRxPrintCentered( printer, 'Helvetica Bold', 14, textvar);
/**** Print the row ************************************************/
ok = PrtGRxEndRow( printer);
/**** Start a new row **********************************************/
ok = PrtGRxStartRow( printer);
ok = PrtGRxStartCol( printer, 1);
ok = PrtGRxPrintRight( printer, 'Times New Roman', 10, textvar);
ok = PrtGRxStartCol( printer, 2);
ok = PrtGRxPrintLeft( printer, 'Helvetica Bold', 10, textvar);
ok = PrtGRxPrintCentered( printer,,,textvar);
ok = PrtGRxPrintJustified( printer,,,textvar);
ok = PrtGRxPrintRight( printer,,,textvar);
ok = PrtGRxStartCol( printer, 3);
ok = PrtGRxPrintJustified( printer, 'Times New Roman', 8, textvar);
/**** Print the row ************************************************/
ok = PrtGRxEndRow( printer);
/**** Destroy the table data structures ****************************/
ok = PrtGRxEndTable( printer);
end
ΓòÉΓòÉΓòÉ 3.43. PrtGRxTab ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxTab - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
ΓòÉΓòÉΓòÉ <hidden> PrtGRxTab - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxTab( printer);
Move to the next tab position on the line. PrtGRxTabs are set when a print job
is opened and are placed every 10 millimetres or 1/2 inch depending on the
Measures property starting at the left margin.
Return
TRUE (1) if successful else FALSE (0).
ΓòÉΓòÉΓòÉ <hidden> PrtGRxTab - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ 3.44. PrtGRxTerm ΓòÉΓòÉΓòÉ
ΓòÉΓòÉΓòÉ <hidden> PrtGRxTerm - List ΓòÉΓòÉΓòÉ
Topics
Description
Parameters
Example
See Also
PrtGRxInit
ΓòÉΓòÉΓòÉ <hidden> PrtGRxTerm - Description ΓòÉΓòÉΓòÉ
ok = PrtGRxTerm( printer);
Destroys the given printer printer object.
Return
0.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxTerm - Parameters ΓòÉΓòÉΓòÉ
printer Identifier for the printer object from PrtGRxInit.
ΓòÉΓòÉΓòÉ <hidden> PrtGRxTerm - Example ΓòÉΓòÉΓòÉ
printer = PrtGRxTerm( printer);