Transcript xPrint

www.4gl.fr
Copyright 4GL – 1999-2012
Summary
www.4gl.fr
Quick tour
Tutorial
Basic rules
Row-column position
Bookmarks
Character attributes
Font alignment
Images
Area definition
Rectangles
Lines
Ellipses
<FROM> tag
Frames
PROGRESS automatic mode
Additional functions
Quit
Please select an item…
www.4gl.fr
Quick tour.
How vpxPrint can
help you to make
smooth reports.
www.4gl.fr
Quick tour
Cust-Num
-------1
2
3
4
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
24
25
26
27
28
29
30
31
32
33
34
35
Name
-------------------Lift Line Skiing POR
Urpon Frisbee
Hoops Croquet Co.
Go Fishing Ltd
Fanatical Athletes
Aerobics valine KY
Game Set Match
Pihtiputaan Pyora
Just Joggers Limited
Keilailu ja Biljardi
Surf Lautaveikkoset
Biljardi ja tennis
Paris St Germain
Hoopla Basketball
Thundering Surf Inc.
High Tide Sailing
Antin Metsastysase
Buffalo Shuffleboard
Espoon Pallokeskus
Pedal Power Cycles
Kesport Katiska
Jazz Futis Kauppa
La Boule Lyonnaise
Bulls Eye Sports
Bumm Bumm Tennis
Luistin ja Pyora Oy
Bug in a Rug-by
Fast Flipper Pinball
Jaakon Jumppavaline
Kiiskin Jaavarustus
Tennis Agentti
Quick Toss Lacrosse
Penan Sporttiklubi
Phone
-------------------(617) 450-0087
(60) 532 5471
(617) 366-1557
081 883 6827
0224 692 903
(90) 054 6399
060-60 62 61
(60) 162 5007
070 682 2887
(91) 972 3478
(51) 254 2180
(40) 523 3088
1 42 25 68 78
(609) 367-3875
(512) 542-1804
0469 73211
(71) 432 1317
(716) 344-0966
(90) 083 7737
(617) 245-6969
(91) 676 4644
(60) 349 9254
78 98 23 25
0347 21348
0222/924376/12
(30) 731 1978
(503) 743-1318
(919) 330-2993
(61) 749 9273
(21) 826 5779
(98) 829 8224
(216) 783-1877
(70) 227 2926
Your reports today…
Cust-Num
1
2
3
4
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
24
25
26
27
28
29
30
31
32
33
34
35
Name
Lift Line Skiing POR
Urpon Frisbee
Hoops Croquet Co.
Go Fishing Ltd
Fanatical Athletes
Aerobics valine KY
Game Set Match
Pihtiputaan Pyora
Just Joggers Limited
Keilailu ja Biljardi
Surf Lautaveikkoset
Biljardi ja tennis
Paris St Germain
Hoopla Basketball
Thundering Surf Inc.
High Tide Sailing
Antin Metsastysase
Buffalo Shuffleboard
Espoon Pallokeskus
Pedal Power Cycles
Kesport Katiska
Jazz Futis Kauppa
La Boule Lyonnaise
Bulls Eye Sports
Bumm Bumm Tennis
Luistin ja Pyora Oy
Bug in a Rug-by
Fast Flipper Pinball
Jaakon Jumppavaline
Kiiskin Jaavarustus
Tennis Agentti
Quick Toss Lacrosse
Penan Sporttiklubi
Phone
(617) 450-0087
(60) 532 5471
(617) 366-1557
081 883 6827
0224 692 903
(90) 054 6399
060-60 62 61
(60) 162 5007
070 682 2887
(91) 972 3478
(51) 254 2180
(40) 523 3088
1 42 25 68 78
(609) 367-3875
(512) 542-1804
0469 73211
(71) 432 1317
(716) 344-0966
(90) 083 7737
(617) 245-6969
(91) 676 4644
(60) 349 9254
78 98 23 25
0347 21348
0222/924376/12
(30) 731 1978
(503) 743-1318
(919) 330-2993
(61) 749 9273
(21) 826 5779
(98) 829 8224
(216) 783-1877
(70) 227 2926
With vpxPrint !
www.4gl.fr
A PREVIEW
for all your
reports.
www.4gl.fr
Graphical reports.
images
proportional
fonts
colors
frames
www.4gl.fr
Pixel-precision adjustments…
No limits !
www.4gl.fr
A precise control on the printing
process.
If your printer has more than
one input tray, you can select
FOR EACH PAGE, the one to
use.
www.4gl.fr
If you are using pre-printed
forms, use
inches or mm units,
without regarding the printers
margins !
Orientation (PORTRAIT or
LANDSCAPE), multiples copies,
recto-verso,
Escape sequences
per page, etc…
…IMMEDIATE PRINTING !
All around
sports
….……
Total
due
12276 North Street – Boston 02114 (MA)
Phone (617) 450-0087
Easy to learn !
www.4gl.fr
Nothing is more easy than moving
More
specific
? !
your actual
reports
to vpxPrint
Insert vpxPrint tags.
insert the standard vpxPrint include file,
{ xPrint.i } PUT "<PREVIEW>".
send
your"<B><Farial><P14>Report
report to a file,
PUT
title".
OUTPUT TO "myFile.xpr" PAGED PAGE-SIZE 60.
PUT "<BGCOLOR=GREEN><FILLRECT>".
then call vpxPrint:
RUN printFile( "myFile.xpr").
Easy to deploy…
www.4gl.fr
Store the DLL in a directory of the WINDOWS
PATH. (the current working directory is a good candidate…)
Copy the xPrint.lic file in your working directory.
This file contains your activation keys.
Nothing to register,
It's all !
www.4gl.fr
vpxPrint viewer.
vpxPrint.exe is a vpxPrint
VIEWER.
If you set vpxPrint.exe as the
default program for *.xpr files, then
a double-click in the explorer
window opens the file for
preview.
vpxPrint.exe is free, you can
send it to your correspondents.
www.4gl.fr
Financial…
vpxPrint is the more easy-to-use solution…
but it's the less expensive too !
Developement license
per site 450 €.
RUN-TIME license per site,
any number of users 300 €.
Compare with other
solutions !
Price list as of january 2012
Our users…
www.4gl.fr
Several VARS and PROGRESS users
have choosen vpxPrint.
Our users are coming from :
France,
Switzerland,
Belgium,
Brazil,
Spain,
Netherlands,
Canada,
Austria,
United States,
Germany,
Equator,
England,
South Africa,
Norway,
Finland,
Slovak Republic,
Philippines,
Turkey,
Russia
Sweden,
Hong-Kong,
Sri-Lanka,
Argentina,
Yugoslavia
Mexico
Polyneysia,
Malaysia,
Korea,
…
www.4gl.fr
Our users talk about vpxPrint…
l also want to give you credit for an excellent printing solution for PROGRESS, its great…
Reidar Johansen
I would like to congratulate you for the last improvements in the Xprint DLL. I don't have
doubts. It's the best tool for PROGRESS 4 GL. I mean that we are very happy, because we
have a tool to help us day by day. And, I want that you know I talk about xPrint with my friends.
Carlos Baccarin
So far we're pretty amazed by the possiblities of the product ! THIS IS GREAT... the
report is looking very sharp and we're ready the take the first one in production! From here we
will be working toward a corparate with xPrint solution.
Thanks for the hard work we very content with your tools.
Robbert Visser
The more I work with xPrint, the more enthousiastic I become.
Wouter Dupré
Merci et un grand bravo pour ces améliorations. Je tiens à vous dire que vous avez réglé
de façon admirable les problèmes d'impression avec Progress.
ENFIN UNE SOLUTION SIMPLE ET EFFICACE !!!
Robert TOLFO
We would like also to inform you that we are very satisfied with your product, it has proven
to be a great help to us.
Tony Vertenten
……
Technical support…
www.4gl.fr
Thank you for your great support.
Je me répète mais ... merci merci merci, je suis impressionné par la rapidité à laquelle vous
appréhendez nos besoins.
You're solution works great!!! Our reports look nice this way. I will send a order for xprint tomorrow
morning.
Thank's a lot!, it really help me out of that problem, keep it in that way !!
I still find your support, and product to be supreme and look forward to implement it in my
applications.
Thank you for your support, I like your xPrint.dll very much and my company will probably decide to
purchase a full unlimited license shortly. Thanks for your support, I find it very pleasing that you respond
so quick.
You beauty! Thanks very much for this feature! I'll get it to work straight away!
Congratulations for the news that you included in xPrint. It was so good.
I love xPrint. My presentation to my boss was postponed to next week.
I have really appreciated your prompt e-mails and your professionalism. You are doing a fine job.
Merci pour l'efficacité.
Thanks for the help so far, you have been excellent and all help has been gratefully received.
……
www.4gl.fr
On the WEB…
www.4gl.fr
Download vpxPrint today !
www.4gl.fr
The quick tour is over…
Summary
Quit
www.4gl.fr
Tutorial
How to 'program' vpxPrint.
www.4gl.fr
Basic rules
1. Create an output file in place of the printer
OUTPUT to "facture.xpr" PAGED PAGE-SIZE 60.
Programmation notes
2. Send your report in this file
These linesFOR
are sufficient
to make a report with graphical lines.
EACH customer :
DISPLAY Cust-num Name WITH STREAM-IO.
PROGRESS loadsEND.
a DLL using the PATH, not the PROPATH. Verify that
the DLL is in the correct directory.
3. Close the xPrint file
Specify WITH
STREAM-IO
in the DISPLAY instruction, xPrint uses the '-'
OUTPUT
TO TERMINAL.
character to determine where labels and columns are located.
4. Call xPrint
After the RUN
vpxPrint
file can be deleted.
RUN printFile,
printFile
("facture.xpr").
In this
example,
report isxPrint
ran without
5. Add
the standard
includepreview.
:
{ xPrint.i }
www.4gl.fr
Preview
With the previous
example, a first report
was made, like the
The title of the PREVIEW window
one you did with
can be modified with
PROGRESS.
<TITLE=TitleOfPreviewWindow>
How to add a preview ?
But now you have
graphical lines Simply add a tag <PREVIEW>
between columns. in your vpxPrint file.
PUT CONTROL "<PREVIEW>".
Syntax: <PREVIEW[=ZoomToWidth]>
to adjust the preview to the report width.
www.4gl.fr
Programmation.
Like HTML, vpxPrint uses tags.
These tags allows you to :
apply different attributes to your report : font, character size,
colors, orientation portrait or landscape…
set the cursor position in the page : Row-Column, relative
(LINE +- n) absolute position, margin-independent,
draw : lines, rectangles, ellipses,
insert images : *.bmp, *.jpg, *.wmf, *.emf
……
www.4gl.fr
The vpxPrint page.
vpxPrint uses the page as a coordinate system where rows and
cols are defined by the number of lines per inch (LPI) and the
number of characters per inch (CPI).
X Axis
C1 C2 C3 C4 C5 C6 C C8 C9
7
R1
R2
R3
R4
R5
ABCDEIW
Non-proportional FONT.
SKIP
<LPI6>
6 lines per
ABCDEIW Every line Skip advances the current position
inch
proportional font
depending of the value of the <LPI> tag.
(<LPI6> défault value)
Note the size difference
between the two fonts.
R6
Y axis
<CPI12>
12 characters per inch
www.4gl.fr
Row-Column positionning.
Rows and columns are defined by
<R> (rows) et <C> (columns).
<R5><C20>
Cursor at row 5, column 20.
<R5.7><C20.3>
<R+3><C-5.2>
Decimal values are accepted
Relative positionning.
Absolute position.
www.4gl.fr
You can position your cursor at any
point, independent of printers
margins.
Choose your unit:
<UNITS=MM>
or
<UNITS=INCHES> (défault)
<UNITS=MM>
And specify:
<AT=50,100.5>
<AT=+50>
<AT=,-30>
50 mm from top, 100.5 mm from left
50 mm lower
30 mm to left
www.4gl.fr
Absolute position.
Absolute position is well used in
case of pre-printed documents :
invoices, cheques…
All around sports
….……
Don't forget that this
position is MARGININDEPENDENT
Total due
12276 North Street – Boston 02114 (MA)
Phone (617) 450-0087
www.allaround.com
www.4gl.fr
Bookmarks.
For background usage,
vpxPrint uses bookmarks.
All around sports
….……
These bookmarks define
different anchor points in the
page.
#1
Tag <#>
Bookmarks can be
aphanumeric strings:
#2
<#Address>
<AT=30,110>
<#1>
defines the bookmark #1
located at the current
position.
Total due
12276 North Street – Boston 02114 (MA)
Phone (617) 450-0087
www.allaround.com
#3
www.4gl.fr
Bookmarks.
Set the cursor on these bookmarks,
with :
<=#n>
All around sports
….……
La voile en folie
#1
<=#1> La voile en folie
#2
AB12
<=#2> AB12
Bookmarks are
numeric or
alphanumeric values.
Total due
12276 North Street – Boston 02114 (MA)
Phone (617) 450-0087
www.allaround.com
#3
www.4gl.fr
Bookmarks
To move a bookmark, simply redefine it..
<=#1>12345 INOX Bolt
<=#1><R+2><#1>
1,50
10
15,00
Go to the #1 bookmark
Print 12345 INOX Bolt
<=#1>
1,50
10
Go to the #1 bookmark
This new point will be located at the same
Movethat
thethe
cursor
two lines
column
previous
one,lower
Andtwo
set lines
a newlower.
place for the #1 bookmark
You can use this technic to print
invoices…
15,00
<=#1>
<R+2>
<#1>
www.4gl.fr
Bookmarks and <AT> tag.
The <AT> tag can use the bookmark information.
New additional syntax for <AT> :
[+][-] row position
<AT=
# bookmark number
,
[+][-] col position
# bookmark number
Example :
• <AT=#1,#2> set the row position at the same value
than bookmark #1 and the column position to the same
value than bookmark #2.
>
Character attributes
www.4gl.fr
Every character can use specific attributes like:
Font <F>. Example : <Farial> or <Fcomic Sans MS>
Size <P>. Example : <P10> or <P24>
Color <FGCOLOR>. Example : <FGCOLOR=GREEN>
or <FGCOLOR=128,10,112> in RGB mode
Style : <B> <I> <U> for bold, italic or underline
reversed by </B> </I> </U>
PUT "<R2><C10><Farial><P20>TITLE" skip(2)
"<P12><B>My text is here</B>".
Font alignment.
www.4gl.fr
Printed characters are aligned with the top line of the current point..
This text is
based on the top margin
but when font, size, attributes differences exist in the same line,
result is incorrect.
Tag <ALIGN=BASE> allows you to align
characters with the font base line
This text is aligned
with the base-line.
Reverse of <ALIGN=BASE> is <ALIGN=TOP>
Images.
www.4gl.fr
vpPrint can print *.bmp, *.jpg, *.wmf, *.emf images.
Syntax : <IMAGEc:\MyImages\logo.jpg>
This instructionThis
respects
the is
image
proportions but vary with
file name
a WINDOWS
printer and image resolutions. The printed size will be different
name (\ and not /)
depending of the various combinations.
How to solve this problem : define a frame where vpxPrint will
print the image (with correct proportions).
<R2><C10><#1>
<R+10><C+20>
<IMAGE#1=c:\MyImages\logo.jpg>
..defines a rectangular area starting from the #1 bookmark to
the current point. (10 lines lower, 20 cols on the right)
and inserts an image.
www.4gl.fr
Images.
You can specify a transparent background for
your images with :
<TRANSPARENT= TRUE>
Area definition.
www.4gl.fr
In the previous slide, you have seen the area definition within a page.
1. Place a bookmark :
<AT=30,50><#1>
bookmark #1 3 cm from top, 5 cm from left
2. Move the current point :
<AT=+50,+60>
Moving 5 cm down, 6 to right
#1
A rectangular area is now defined
The next step is an action in this area :
Insert an image, draw a rectangle, circle, line or insert a text.
Rectangles.
www.4gl.fr
Prerequesite : you should have read the previous slide (work area definition).
#1
<AT=30,50><#1>
<AT=+50,+60>
<RECT#1>
(Rectangle from bookmark #1)
…draws a transparent rectangle where
border color is defined by the
<LINECOLOR> tag and the border width
by <|> or <||> tags.
<FILLRECT#n> Filled rectangle (<BGCOLOR>) without border
<FILLRECT+#n> Filled rectangle with border
<FILLRECT)#n> Filled rectangle with border et round corners.
Lines.
www.4gl.fr
Same as rectangles.
#1
<AT=30,50><#1>
<AT=+50,+60>
<LINE#1>
…draws a line where border color is
defined by <LINECOLOR> and width by
<|> or <||>
Ellipses.
www.4gl.fr
Unlike rectangles, an ellipse is always filled.
#1
<AT=30,50><#1>
<AT=+50,+60>
<ELLIPSE#1>
…draws an ellipse filled with
<BGCOLOR>, where the border color is
defined by <LINECOLOR> and width by
<|> or <||>
<FROM> tag.
www.4gl.fr
In previous slides, we used bookmarks. An easier syntax can be
used to reduce the vpxPrint coding :
<FROM>
X
<AT=30,50><FROM>
<AT=+50,+60>
<RECT>
<LINE>
<ELLIPSE>
Only one point can be a <FROM> point at a time.
vpxPrint frames.
#1
Thank you for your great support. Je me répète
mais ... merci merci merci, je suis impressionné
par la rapidité à laquelle vous appréhendez nos
besoins. You're solution works great!!! Our
reports look nice this way. I will send a order for
xprint tomorrow morning. Thank's a lot!, it really
help me out of that problem, keep it in that way !!
I still find your support, and product to be
supreme and look forward to implement it in my
applications. Thank you for your support, I like
your xPrint.dll very much and my company will
probably decide to purchase a full unlimited
license shortly. Thanks for your support, I find it
very pleasing that you respond so quick.
www.4gl.fr
<AT=30,50><#1>
<AT=+70,+90>
<FRAME#1>
…defines a work area in a page
(frame).
<USE#1>
…asks vpxPrint to start writing in
this area.
After the <USE> tag, character printing occurs in the
frame area with WORD WRAP mechanism. </USE>
restores to the standard 'FULL-PAGE' mode.
vpxPrint frames.
Thank you for your great
support. Je me répète mais ...
merci merci merci, je suis
impressionné par la rapidité à
laquelle vous appréhendez
nos besoins. You're solution
works great!!! Our reports
look nice this way. I will send
a order for xprint tomorrow
morning. Thank's a lot!, it
really help me out of that
problem, keep it in that way !!
I still find your support, and
product to be supreme and
look forward to implement it
in my applications. Thank
you for your support, I like
your xPrint.dll very much
and my company will
probably decide to purchase
a full unlimited license
shortly. Thanks for your
support, I find it very
pleasing unlimited license
shortly. Thanks for your
support, I find it very
pleasing that you respond
so quick. Thank you for your
great support. Je me répète
mais ... merci merci merci, je
suis impressionné par la
rapidité à laquelle vous
appréhendez nos besoins.
You're solution works great!!!
Our reports look nice this
way. I will send a order for
xprint tomorrow morning.
Thank's a lot!, it really help
me out of that problem, keep
www.4gl.fr
it in that way !! I still find your
support, and product to be
supreme and look forward to
implement it in my Thank you
for your great support. Je me
répète mais ... merci merci
merci, je suis impressionné
par la rapidité à laquelle vous
appréhendez nos besoins.
You're solution works great!!!
Our reports look nice this
way. I will send a order for
xprint tomorrow morning.
If the inserted text must continue on the next page
in the same frame (or frame chain), specify
<USE#1,AUTO>
Frame chaining.
Thank you for your great
support. Je me répète mais ...
merci merci merci, je suis
impressionné par la rapidité à
laquelle vous appréhendez nos
besoins. You're solution works
great!!! Our reports look nice this
way. I will send a order
for xprint tomorrow
morning. Thank's a lot!,
it really help me out of
<NEXTFRAME>
productt to be supremelook nice
this way. I will send a order for
xprint tomorrow morning. Thank's a
lot!, it really help me out it in that
way !! I still find your support, and
product to be supreme and look
forward to implement it in
<AT=30,50><#1>
<AT=+70,+90>
<FRAME#1>
<AT=110,90><#2>
<AT=+50,+30>
<FRAME#2>
<AT=170,50><#3>
<AT=+20,+90>
<FRAME#3>
<CHAIN=1,2,3>
The <NEXTFRAME> tag forces the frame chain to the next one.
www.4gl.fr
www.4gl.fr
'PROGRESS'
automatic mode
www.4gl.fr
'PROGRESS' automatic mode.
When the PROGRESS mode is activated (<PROGRESS>),
vpxPrint can detect labels of standard editions.
(vpxPrint scans for succession of dashes '----' that PROGRESS uses for
underlining column labels. With this information he can determine the
place and width of each column)
Customer Name
Tel.
--------- ------------- ----------12345
John
0477545584
12346
<PROGRESS> mode is
active by default.
Don't forget
WITH STREAM-IO
for the dashes printing.
If your page headers use dashes, this automatic mode can disturb your
report…
You can manually drive this mode with :
Activation <PROGRESS>, Inactivation </PROGRESS>
'PROGRESS' automatic mode.
www.4gl.fr
When vpxPrint draws automatic lines ?
vpxPrint can't always determine when a PROGRESS frame is terminated.
However, this is really true in two cases :
at end of page,
at end of report
Cust num
Name
Tel.
12345
12346
12245
4512125
Dupont Albert
kkhsdfkj sdkj
Ioikjlkl lklk
llkjkkjn kj k
0477545584
123213121
89956445
45589545
12345
12346
12245
4512125
Dupont Albert
kkhsdfkj sdkj
Ioikjlkl lklk
llkjkkjn kj k
0477545584
123213121
89956445
45589545
Cust num
Name
Tel.
12345
12346
12245
4512125
Dupont Albert
kkhsdfkj sdkj
Ioikjlkl lklk
llkjkkjn kj k
0477545584
123213121
89956445
45589545
EOF
PAGE
'PROGRESS' automatic mode.
www.4gl.fr
vpxPrint uses two other cases :
end of PROGRESS mode: </PROGRESS>,
end of vpxPRINT frame : </USE>
as events 'END of FRAME'
for drawing automatic lines
If your page includes multiple PROGRESS frames, you
must indicate to vpxPrint each end-of-frame
with </USE> or </PROGRESS>
(in this last case, don't forget to add a <PROGRESS> tag to repeat the
PROGRESS automatic mode processing)
'PROGRESS' automatic mode.
www.4gl.fr
If your page includes multiple PROGRESS frames, you must indicate to
vpxPrint each end-of-frame with </USE> or </PROGRESS>
for each customer no-lock:
disp cust-num name with stream-io.
put control "</use>"
"<C20><#1><C+50><R+60><FRAME#1><USE#1>".
for each order
customer no-lock
:
End of
of PROGRESS
frame,
display order-date
format
"99/99/9999"
The new
askorder-num
vpxPrint
toDISPLAY
draw lines.
(PROGRESS
frame ) will be
Order.Instructions
stream-io.
placed in awith
vpxPrint
frame on
end.
put control "</use>". the right.
end.
End of PROGRESS frame
for orders, tell that to
vpxPrint.
'PROGRESS' automatic mode.
Customer
Number
Customer
Name
12345
12346
12245
4512125
John
0477545584
kkhsdfkj sdkj 123213121
Ioikjlkl lklk 89956445
llkjkkjn kj k 45589545
12345
12346
12245
4512125
Dupont Albert
kkhsdfkj sdkj
Ioikjlkl lklk
llkjkkjn kj k
0477545584
123213121
89956445
45589545
12345
12346
12245
4512125
Dupont Albert
kkhsdfkj sdkj
Ioikjlkl lklk
llkjkkjn kj k
0477545584
123213121
89956445
45589545
12345
12346
12245
4512125
Dupont Albert
kkhsdfkj sdkj
Ioikjlkl lklk
llkjkkjn kj k
0477545584
123213121
89956445
45589545
Tel.
www.4gl.fr
In your labels are higher
than one line, specify
<PROLABELS=n>
to indicate to vpxPrint the
height of your labels.
www.4gl.fr
Additional functions
Oriented texts, line width.
www.4gl.fr
<ANGLE=n>
n is the number of degrees to rotate
the text. (reversed by </ANGLE>)
<|n>
set the line width (in pixels) for
lines, rectangles and borders. This
value vary with printer resolution.
So you can use <||n> for printerindependent width.
<||1> is a one-pixel width on a 300
DPI printer and is translated to twopixels for a 600 DPI printer.
Page orientation
www.4gl.fr
Page orientation can be set by :
<OLANDSCAPE>
<OPORTRAIT>
Orientation can be changed within a report, but if you a
preview is started, then each orientation update shows
the preview and create a new spool file.
www.4gl.fr
Printers
Printers can be selected by :
<PRINTER?>
<PRINTER<Name>>
<PrinterSETUP>
Printer?
asks for a printer,
PrinterSETUP
opens the printer setup dialog,
Printer<Name>
opens the first printer whose
name begins by <Name>.
The
of copies
to print is defined by :
If number
present,
the <PRINTER>
tag must be placed
<Xn> at the
beginning
yourtworeport
Example
: <X2>ofprints
copies.file.
www.4gl.fr
Bin selection
To select a particular tray for paper input,
use the <BIN> tag.
<BIN=bin-name>
AUTO
CASSETTE
ENVELOPE
ENVMANUAL
LARGECAPACITY
LARGEFMT
LOWER
MANUAL
MIDDLE
ONLYONE
SMALLFMT
TRACTOR
UPPER
Escape sequences
www.4gl.fr
Escape sequences can be sent to the printer on
a per-page basis.
<ESCAPE=escape-sequence>
non-printable characters can be written with a # or \
prefix.
Example : ESC character (1B in hex, 033 base 8) is
coded as #027 or \027
This tag is not intented for bold characters, form feeds…
Its goal is to allow to send sequences at beginning of each
page. Tray selection, page reverse…
International character sets
www.4gl.fr
Character sets are selected with the CHARSET tag :
<CHARSET=Charset-name>
ANSI
DEFAULT
SYMBOL
SHIFTJIS
HANGEUL
EASTEUROPE
HEBREW
RUSSIAN
ARABIC
TURKISH
Total page count.
www.4gl.fr
<#PAGES>
is replaced with the total number of pages of your report.
You can write in your output :
"Page " Page-number " of <#PAGES>".
www.4gl.fr
Tutorial is over…
Summary
Quit
www.4gl.fr
Now you know why
is the solution
BEST solution
for printing from PROGRESS.
See you soon…