This might have been already answered, If so I apologize.
It maybe difficult to find the command - however, if you grab an old hp
laserjet 2 command, or an old epson manual, you can put the printer control
string for bold directly in the text.
If you are *really* sophisticated, you can do something like the following:
RV1 = Choose Printer to print to: 1= Laser Jet 2=Phaser, 3 ...
RV20: If rv1 = 1 then "Cmd for bold" else if2 then "Cmd2 for bold" ...
RV21: if rv1=1 then "Printer cmd for bold off" else if rv1=2 then "Printer
command for bold off"...
RV22: If rv1= 1 then "cmd for italicize" else if rv 1=2 then cmd2 for
italicize etc
.
.
.
Then you have to use substrings to insert the bold, and bold off commands where
you want it.
So, "This is a test" becomes... "This is"; RV20; "A"; RV21; "test".
When it gets to the printer of course it becomes "This is a test." I've done
this a few times to insert bolds, cr/lf's etc. But mostly its not worth it.
Date: Fri, 13 Mar 2009 10:27:59 +0000
From: [email protected]
To: [email protected]
Subject: Re: [Dataperf] DPSpool questions
Would a Printer Codes Panel help here? I received help in doing something
similar from you I think Tim some time ago.
Michael Iannantuoni
Tim Rude wrote:
Robert,
I'm redirecting this reply through the DP mailing list since others may helpful
info to weigh in with as well.
1) If you're entering data into a multiline text field on a panel, you can bold
selected words using the F6 key. If you then print that field in a report going
through DPSpool the words will be bolded as expected. However, I suspect that
you're actually wanting to know how to apply the bold attributes to certain
words via a formula, with a report variable. That's a horse of another color.
There isn't any easy way to do this, that I know of. If you try to use bold
text inside a formula definition you get things like a "Word Not Recognized"
error and other problems.
And with multiline fields, you can't even use the ;;V trick of embedding the ¥
and £ characters within the text. (;;V only works with regular text fields such
as A78, not A0A0 fields).
So if there's an easy way to apply bold to a word within a multiline text field
via a formula, I don't remember it.
2) It's my understanding that a WMF file is a vector-based drawing consisting
of directional instructions, as opposed to a bitmap drawing consisting of a
bunch of dots. It's possible that the text within your WMF image is actually
text - in other words the WMF instructions may call for printing an actual
character rather than a picture of a character. If that's the case it could be
that you simply don't have the right font installed on your workstation. Just a
guess here, since the WMF handling that DPSpool does (as with all of the other
graphic formats) is actually done by Visual Basic routines that are part of the
programming language - a black box as it were. I programatically send the
command to print the graphic and Visual Basic takes over from there. So how it
takes a specific image file and converts it to printable output is a mystery to
me too.
Tim Rude
----- Original Message -----
From: Robert I. Kendall
To: Tim Rude
Sent: Tuesday, March 10, 2009 11:58 AM
Hi Tim,
Thanks for bringing my attention to the dpspool designer help. I'm customizing
my pathology laboratory's reports in ways I never thought possible with DP.
I've got a couple more questions:
1. Is there any way to bold selected words within a multiline text field (AxA0)?
2. I am having problems printing a report with an image in .WMF format. The
image prints perfectly from all workstations but mine. My workstation prints
the image to a different font. Any suggestions?
Thanks for a great program and great support,
Robert Kendall
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf
_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/mailman/listinfo/dataperf