fp Print codes
Don Coleman
dcoleman at microserve.net
Mon Apr 12 08:07:15 PDT 2004
List: (top-posted to hopefully maintain clarity)
Using Bob Rasmussen's Print Wizard and Print Wizard .prt table I am attempting
to add conditional
print effects such as white letters on black background or gray shading to a
comments field at the botton of a shipping routing label (an fP form) printed
to a Datamax Thermal Transfer bar-code printer networked via a print server on
a Windows 2000 Advanced Server network with WIN 2000 clients.
If you read Bob's response below he noted that it appears fP is adding a hex
08 (backspace) after each character in the print code which is "confusing"
Print Wizard. My relevant processing plus the line from the print code table
is below and I am attaching the file if anyone has any suggestions. If anyone
has any suggestions or is confused by this post-Easter post please advise.
TYIA.
Apr 12, 2004 10:49 File Name: LABELREQ Page 1
Processing: Input
20 ------- - - - - - - - - - - - - - - - -
@KEYL If:
Then: PRINTER TYPE "PRINTWI2";PRINTER NAME "DMI4206"
21 ------- - - - - - - - - - - - - - - - -
If:
Then: putenv "PFPOSTPRINT","C:\PRINTWIZ\PRINTWIZ.EXE /P\"SHIPLAB\"
C:\PRI
NTWIZ\HARDCOPY.TXT"
22 ------- - - - - - - - - - - - - - - - -
If:
Then: INPUT POPUP CB(2,.0,g) "\r Enter # of labels: \r "
23 ------- - - - - - - - - - - - - - - - -
If: 13 co "UPS"
Then: AD(4,ALLUP)=1;AB(75,*)=chr("26")&"<font color=white
background=blac
k>"&13;goto shade
24 ------- - - - - - - - - - - - - - - - -
If:
Then: AD=1;AB=13
25 ------- - - - - - - - - - - - - - - - -
shade If: 22 eq ""
Then: AA(30,ALLUP)=2;AC(4,ALLUP)=1;goto post
26 ------- - - - - - - - - - - - - - - - -
If:
Then: AC=22
27 ------- - - - - - - - - - - - - - - - -
If:
Then: lookup req = labelreq k=AC i=A -nx
28 ------- - - - - - - - - - - - - - - - -
If: not req
Then: AA="UNKNOWN FACILITY";AB="";goto post
29 ------- - - - - - - - - - - - - - - - -
If:
Then: AA=req(2)
30 ------- - - - - - - - - - - - - - - - -
If: req(13) co "UPS"
Then: AB=chr("26")&"<font color=white background=black>"&req(13);goto
pos
t
31 ------- - - - - - - - - - - - - - - - -
If:
Then: AB=req(13)
32 ------- - - - - - - - - - - - - - - - -
post If:
Then: DIM ZER(3)(1,*):BA
33 ------- - - - - - - - - - - - - - - - -
If:
Then: BA=mid(1,"2","1");BB=mid(1,"3","1");BC=mid(1,"4","1")
34 ------- - - - - - - - - - - - - - - - -
If: BA eq ""
Then: AE(8,*)="0000000"{1;goto prtit
35 ------- - - - - - - - - - - - - - - - -
If: BB eq ""
Then: AE="000000"{1;goto prtit
36 ------- - - - - - - - - - - - - - - - -
If: BC eq ""
Then: AE="00000"{1
37 ------- - - - - - - - - - - - - - - - -
prtit If: CB gt "0"
Then: form "shipwh";CB=(CB-"1")
Apr 12, 2004 10:49 File Name: LABELREQ Page 2
Processing: Input
38 ------- - - - - - - - - - - - - - - - -
If: CB le "0"
Then: end
39 ------- - - - - - - - - - - - - - - - -
If:
Then: goto post
Relevant line from .prt table:
77::^Z<font\ color=white\ background=black>:White on black
Any suggestions appreciated. Happy Easter to all contributors and lurkers on
this list.
Donald G. Coleman, Consultant
2100 Birchwood Dr.
Indiana, PA 15701
dcoleman at microserve.net
(724) 349-6302
Bob Rasmussen wrote:
> On Thu, 8 Apr 2004, Don Coleman wrote:
>
> > Bob:
> >
> > As you suggested I added the following to my process table:
> >
> > AA=chr("26")&"<font color=white background=black>"
> >
> > It did not print white characters on black background but the additional
> > text caused it to use two labels instead of one. I know I could modify
> > the form length to compensate for that but will wait until I get the
> > desired test appearance. Am I missing something or can this not be done
> > in conjunction
> > with PW? File attached.
>
> If you look at that file in vi, for instance, you will see something odd.
> The text above is being printed with some sort of backspace bolding going
> on. The word "font" for instance is in there as
> f<backspace>f<backspace>f<backspace>f<backspace>f
> with the <backspace> being an actual control-H. This will confuse
> Printwiz. I don't know what in fP does this. Maybe this is the built-in
> response to the "bold" printcode (2 maybe?).
>
> Regards,
> ....Bob Rasmussen, President, Rasmussen Software, Inc.
>
> personal e-mail: ras at anzio.com
> company e-mail: rsi at anzio.com
> voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
> fax: (US) 503-624-0760
> web: http://www.anzio.com
-------------- next part --------------
<PWML><PAGESIZE Y=2in><BODY TOPMARGIN=0.05in LEFTMARGIN=.20in><LEGACY>
<B> <FONT FACE="ARIAL NARROW" SIZE=40pt>OF </B> <barcode style=code128 caption=off size=.60in> <barcode src=OF >
<FONT FACE="ARIAL NARROW" SIZE=14pt pitch=0 rotation=0>SSSSSTTTTTAAAAATTTTTEEEEE CCCCCOOOOORRRRRRRRRREEEEECCCCCTTTTTIIIIIOOOOONNNNNAAAAALLLLL CCCCCEEEEENNNNNTTTTTEEEEERRRRR
<barcode style=code128 caption=off size=.60in> <barcode src= 000000OF>
<FONT FACE="ARIAL NARROW" SIZE=14pt pitch=0 rotation=0><<<<<fffffooooonnnnnttttt cccccooooolllllooooorrrrr=====wwwwwhhhhhiiiiittttteeeee bbbbbaaaaaccccckkkkkgggggrrrrrooooouuuuunnnnnddddd=====bbbbblllllaaaaaccccckkkkk>>>>>UUUUUPS
,FRIDAY AIRBORNE,NIF,NSD,NFD
More information about the Filepro-list
mailing list