|
Post by charlie on Apr 29, 2021 7:46:06 GMT 1
Hi,
We now have vdos working printing all reports/ invoices etc. An area we are struggling with is printing of labels. These are created for each box of product we produce. However, our program sends raw code to a serial label printer through no driver.
If i print to a normal printer it just comes out like the below. I can see our data within that.
I presume the code in front of the data is spacing and positioning instructions? Would the only way to alter this be to alter the code of our program itself or is there another way to interpret this?
f260
L
D11
R0005
1Y2200002800050LOGO
1X1100001300020B370250002002
1X1100000000020B370125002002
1X1100002700022L366002
141100003500180Currie & Warner Ltd.
131100003300180Powell Street,
131100003150180Birmingham. B1 3DH
131100003000180England.
121100002850180TEL: +44(0)121 2368986
131100002400045C&W Box Ref.
14110000218004556656901
111100002050045566568
111100002050075
111100002050105
1A620450205018056656901
121100001800045C&W Part No.:
131100001800135MA5659
121100001800245C&W Iss:
131100001800295B
121100001650045C&W Insp.No.:
13110000165013529768-1-143-P
121100001500045Finish : SELF-COLOUR
121100001350045Packed By : 1366
121100001350170Date:12/ 3/19
121100001350265Net : 5.16 Kgs
1A620400065007594975006
121100000480045Part No. :
13110000048013594975006
121100000480265Iss:
121100000480295Q -25/ 6/12
121100000300045Description :
131100000300135PART 1234
121100000120045Quantity :
1311000001201353000
Q0001
E
An
Kind Regards,
Charlie
|
|
|
Post by Jos on Apr 29, 2021 8:49:10 GMT 1
Those code sequences are indeed only meaningful to the label printer, controlling its printout.
You have two options to get the programs output to the printer as-is: Add: COMx = "COMy": To config.txt, COMx being the DOS port, COMy the Windows port. The trailing colon is mandatory. Eventually COMy has to be setup before vDos starts, see Printing.pdf.
Better: Add a Windows printer ("Label printer", assign it to COMy, printer driver: Generic Text Only. Then in config.txt: COMx = SEL:"Label printer" RAW This way vDos and Windows will recognize the output as a print job.
Jos
|
|