Pass Format/Form to label printer
Anonymous
anonymous at easysw.com
Tue Apr 26 11:06:58 PDT 2005
I am using version Red Hat 3.4.3-9.EL4 with CUPS, any suggestions on how I can pass a form would be appreciated.
I am able to print with the command lp -dMonTest formatfile testfile, however I need to be able to send the formatfile to the printer to change the printer setting format. I have looked into trying to put the formatfile via /etc/printcap, but that does not work. Is there a way I can just print via lp -dMonTest testfile, where it will automatically pick up the formatfile?
Any help on this would be greatly appreciated.
Here is the formatfile example that needs passed to the printer with each print job -
{F,1,C,R| }
{F,5,C,R| }
{F,10,C,R| }
{F,20,C,R| }
{F,30,C,R| }
{
F,1,A,R,M,1524,1016,"MOSHPCTN"|
C,1450,100,0,1,1,1,B,L,0,0,"DATE"|
T,001,5,V,1450,240,0,1,1,1,B,L,0,0|
C,1450,400,0,1,1,1,B,L,0,0,"TIME"|
T,002,5,V,1450,530,0,1,1,1,B,L,0,0|
T,003,3,V,1450,700,0,1,1,1,B,L,0,0|
C,1450,800,0,1,1,1,B,L,0,0,"OF"|
T,004,3,V,1450,860,0,1,1,1,B,L,0,0|
T,005,7,V,1380,080,0,3,1,1,B,L,0,0|
C,1380,360,0,3,1,1,B,L,0,0,"LICENSE"|
T,006,8,V,1380,650,0,3,1,1,B,L,0,0|
C,1319,0955,0,2,2,2,B,L,0,3,"FROM:"|
T,007,25,V,1319,0924,0,1,1,1,B,L,0,3|
T,008,12,V,0720,0924,0,1,1,1,B,L,0,3|
T,009,25,V,1319,0885,0,1,1,1,B,L,0,3|
T,010,12,V,0720,0885,0,1,1,1,B,L,0,3|
T,011,25,V,1319,0848,0,1,1,1,B,L,0,3|
T,012,12,V,0720,0848,0,1,1,1,B,L,0,3|
T,013,12,V,0720,0810,0,1,1,1,B,L,0,3|
C,1319,0755,0,2,2,2,B,L,0,3,"SHIP TO:"|
T,014,25,V,1319,0710,0,1,1,1,B,L,0,3|
T,015,35,V,1319,0670,0,1,1,1,B,L,0,3|
T,016,35,V,1319,0630,0,1,1,1,B,L,0,3|
T,017,35,V,1319,0590,0,1,1,1,B,L,0,3|
T,018,35,V,1319,0550,0,1,1,1,B,L,0,3|
C,1319,0490,0,1,1,1,B,L,0,3,"COMPANY"|
C,1114,0490,0,1,1,1,B,L,0,3,"STORE"|
C,0800,0490,0,1,1,1,B,L,0,3,"DISTRICT"|
T,019,02,V,1319,0390,0,2,5,5,B,L,0,3|
T,020,04,V,1114,0390,0,2,5,5,B,L,0,3|
T,021,05,V,0800,0390,0,2,5,5,B,L,0,3|
C,1319,0344,0,1,1,1,B,L,0,3,"DIVERT"|
C,1114,0344,0,1,1,1,B,L,0,3,"LANE"|
C,0800,0344,0,1,1,1,B,L,0,3,"CARTON"|
T,022,02,V,1319,0240,0,2,5,5,B,L,0,3|
T,023,02,V,1114,0240,0,2,5,5,B,L,0,3|
T,024,06,V,0861,0240,0,2,5,5,B,L,0,3|
C,1319,0180,0,1,1,1,B,L,0,3,"CTN CLASS"|
T,025,07,V,0861,0150,0,3,1,1,B,L,0,3|
T,026,02,V,1300,0075,0,2,5,5,B,L,0,3|
T,027,08,V,1320,0030,0,2,2,2,B,L,0,3|
T,028,14,V,1024,0030,0,3,1,1,B,L,0,3|
B,029,14,V,0050,0140,3,5,0350,8,L,0|
}
Thanks in advance,
Dan
More information about the cups
mailing list