Robert,
Using control codes inside a report variable is a whole 'nother animal...
Prior to 2.6x, it couldn't be done. But the 2.6x version of DP added a ;;V
print modifier to be used when printing report variables that disables the
special handling normally applied to text characters that could double as
printer control codes. To use this, you store the actual code character as part
of the text in the report variable.
For example:
Store in RV1: This text is ¥bold£ print.
Print RV1 with format A78;;V
Output: This text is bold print.
To get the code characters, you hold down the Alt key and type (on the numeric
keypad, not the top row numbers) the ascii code number. So to get ¥ to print, I
held down Alt and typed 157 on the numeric keypad. Let up Alt key and ¥ appears.
Caveats:
1. Be careful if there are any other characters in the report variable that
could be consided code characters. Since the ;;V print modifier turns off the
special handling needed for these characters to be recognized as text (and
thereby allows them to be treated as control codes) you might get strange
results if you aren't careful. If you absolutely must include some of these
code characters within the report variable but need them to be treated as text,
you have to bracket each 'problem' character with ascii 225 (ß) characters
(which is what DP normally does automatically when the ;;V isn't in effect).
2. As I recall, the ;;V modifier only works with the standard text field format
(i.e. A50 or U25, not A50A3 or A0A0).
3. The ;;V modifier also truncates any trailing spaces (similar to ;;T).
Hope this helps.
Tim Rude
----- Original Message -----
From: Robert Kendall
To: Dataperfect Users Discussion Group
Sent: Monday, March 17, 2008 8:42 AM
Subject: Re: [Dataperf] Re: DPSpool questions
Hi Tim,
Switching from DOS Text to WP format solved #2 but I still have a problem
with #1. I don't know how to put bolds within a report variable. Does the
Printer Control function work within a report variable? With DPprint I entered
the printer escape codes directly for my laser printer and it worked fine.
Thanks,
Robert Kendall
----- Original Message -----
From: Tim Rude
To: Robert I. Kendall
Cc: DP Mailing List
Sent: Sunday, March 16, 2008 11:47 PM
Subject: [Dataperf] Re: DPSpool questions
Hi Robert,
DPSpool questions are fine for the DP user group forum.
1. When you enter codes, you have to do so using the Printer Control
function of DP. You can't just enter them as ordinary text. Essentially,
you place the cursor in the report where you want the code, then press
Ctrl-F7, 1, B. This prompts you for a Printer Control String, which is
where you enter the DPSpool codes you want to use.
2. Make sure your report is configured to output in WordPerfect format,
not DOS Text. Since some of the line-drawing characters may do
double-duty as control codes, specifying WordPerfect format tells DP to
automatically handle these characters in the proper way when they are to
be interpreted as text rather than codes. Without this special handling,
DPSpool can get confused and treat the characters as control codes
rather than printing them.
Tim Rude
----- Original Message -----
From: Robert I. Kendall
To: Tim Rude
Sent: Sunday, March 16, 2008 2:59 PM
Hi Tim,
I have 2 DPSpool questions. I'm not sure they are appropriate for the DP
user group forum:
1. I am trying to use the bold on/off codes in a report but they just
print out as "<157>" and "<156>". Do they need to be bracketted by
another code?
2. I have a cat.c function containing text surrounded by ascii box/line
characters. The box and text prints fine with DPPrint but DPSpool won't
print the report variable. If I delete the line draw characters the text
prints fine. Any suggestions?
Thanks in advance,
Robert Kendall
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
------------------------------------------------------------------------------
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf