Have a customer with a bespoke label printing utility written in Foxpro 2.6 DOS.
They are changing their label printer and the programme needs to be updated to include the new printers control codes.
The old code went along the lines of
SET CONSOLE OFF
SET PRINTER TO "LPT2"
??? "2"+"911002"+"0168"+"0384"+"TEXT TO SEND"+CHR(13) &&Where "TEXT TO SEND" is the text to print, all other are control codes
SET MEMOWIDTH TO 25
SET CONSOLE ON
The new printer is a Zebra LP-2844-Z. Not sure if I have got the controls codes but have obtained a manual called "ZPLII Programming Guide" where example to send text to printer is "^FO20,10^AFN,56,30^FDTEXT TO PRINT^FS". I have tried to include this in my code (for example ??? "^FO20,10^AFN,56,30^FDTEXT TO PRINT^FS" + CHR(13)) but it just seems to output the whole string rather just "TEXT TO PRINT".
Does anyone have any suggestions what to do and where to look?
Thanks in advance
They are changing their label printer and the programme needs to be updated to include the new printers control codes.
The old code went along the lines of
SET CONSOLE OFF
SET PRINTER TO "LPT2"
??? "2"+"911002"+"0168"+"0384"+"TEXT TO SEND"+CHR(13) &&Where "TEXT TO SEND" is the text to print, all other are control codes
SET MEMOWIDTH TO 25
SET CONSOLE ON
The new printer is a Zebra LP-2844-Z. Not sure if I have got the controls codes but have obtained a manual called "ZPLII Programming Guide" where example to send text to printer is "^FO20,10^AFN,56,30^FDTEXT TO PRINT^FS". I have tried to include this in my code (for example ??? "^FO20,10^AFN,56,30^FDTEXT TO PRINT^FS" + CHR(13)) but it just seems to output the whole string rather just "TEXT TO PRINT".
Does anyone have any suggestions what to do and where to look?
Thanks in advance