Color Printing problem
Jean-Pierre Radley
appl at jpr.com
Fri Feb 17 13:01:55 PST 2017
Richard Kreiss averred (on Wed, Feb 15, 2017 at 10:25:12PM +0000):
| Purchased an HP 7740 OfficeJet Multifunction Printer.
|
| The Print drive seemed to indicate that this was PCL-3 compatible - Drive Name HP OfficeJet 7740 series PCL-3
|
| filePro could not print to this printer even though the print job went to the spooler and disappeared from the listing.
|
| I printed out the Printer Test page which indicated it was using the above print driver
| Data Format: RAW
| Print Processor: winprint (seems to indicate this driver might as well be PCL-6)
| Drive type: Type 4 - user mode
|
| I then tried using the universal PCL5 print driver and that didn't work at all. The test page printed out "junk"
|
| I then installed the HP OfficeJet 7400 print driver. This worked and filePro could print to the printer.
| Print Processor: hpzppwn7
| Drive Type: Type3 - user mode
|
| Where my problem is, I have a report where I would like credit balances(negative numbers) to print in red.
|
|
| 1. I am not sure which of the print tables to use for this printer. I have tried HP-8XX and HP-2500 tables.
|
| 2. I am using the following programming to change the color from black to red but it doesn't work. The field is either blanked or still prints black.
|
| ::Ec(1,*,g)=chr("27")
| ::Am(len(5),edit(5))=5
| : 5 lt ".00":qq(8,rj)=ec{"*r-3u"<ec{"v6S{am{ec{"r1u"{ec"*v1S" (using the HP-2500 print table
| : 5 lt ".00":qq(8,rj)=ec{*v12S{am{ec{"v1S" (using the HP-8xx print table
|
| In both cases I don't get the negative number in red.
|
| What am I doing wrong?
|
| Richard Kreiss
As has twice been pointed out, qq is MUCH too small.
The 8XX color codes take up 7 (black) or 8 (red) characters, and the
color codes in the 2500 table each use 11 characters. Do NOT include a
space after the ESCape, i.e. use '{' where you have '<'. Then, I dare
say, your dollar variable, field 5, takes up more than zero characters.
Simplify the code, don't bother with field am, just use field 5.
I don't think you need to give qq a specific length at all.
You must NOT change the case of PCL commands. If the table has the
sequence "3U", do NOT change it to "3u". PCL3 commamnds know they're at
the end of their sequence when they hit a capital letter.
I print color from filePro using thc shorter sequences. I don't see
what the <esc>*r-3U command does for you. It's described in PCL3
reference guides as "simple color (3 plane)", and I have no idea what
that mens.
--
JP
More information about the Filepro-list
mailing list