Consultor Eletrônico



Kbase 16525: RESULTS, compressed print, features, how to use u-cprint.p
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/09/1998
RESULTS, compressed print, features, how to use u-cprint.p


This knowledgebase entry describes how to use u-cprint.p to print
using compressed print from within GUI RESULTS. It covers how to
set up a feature and what arguments to pass.

More information on this can be found in the RESULTS Administration
and Development Guide (V7, pages 3-46 & 3-47; V8, pages 3-48 & 3-49).

From the Query menu select Customize -> Feature. The Feature
Editor dialog box will come up. Fill in the fields on the right
hand side of the dialog box. Name will identify the feature
after you have added it. Program is the name of the program
that will run when you select the feature from the menu, in this case
u-cprint.p (found in dlc\gui\aderes). Argument is the ASCII
character values of the control sequences (more on this in
a minute). Label is what will appear on the menu after you
have added the feature. Help line and images are for features
being added to the toolbar rather than a menu.

In order to determine the value for the Argument field you must
have the control codes for the printer you are using (usually
found in the documentation provided with your printer). You
must also have access to an ASCII table. The first part of the
Argument field is the printer name as it is recognized by the
operating system (for example, LPT1). What follows is a comma
delimited list of ASCII values that correspond to the control
codes you need to send to the printer. For example, the code for
compressed print on an HP LaserJet is /027&l1O. The first part,
/027, is the escape sequence. The ASCII value for this is simply
27. The next part, &l1O is broken into four parts: &, l, 1, and O.
The ASCII values for these characters (found on the ASCII table)
are: & -> 38, l -> 108, and 1 -> 32, and O -> 79.

For example, the argument fill-in within the Feature Editor would
read: LPT1,27,38,108,32,79 for printing in Portrait mode.

To set control codes to print in landscape format with an HP
LaserJet: LPT1,27,38,108,49,79

Progress Software Technical Support Note # 16525

PS: If it seems like you have done everything in the kbase, and still
Results refuses to print through the Feature, then, in your Progress
Icon command line, insert the startup parameters -Wa -wpp at the end
of the command line.