|
|
Question : Problem: How to modify the Generic Text only printer driver...
|
|
I am currently working on a kiosk that uses an outdated receipt printer. The company no longer supports the product and doesn't offer drivers for it anymore. Their tech support guy told me that I could modify the generic text only driver to include the printer's commands. I have a technical manual that specifies all the control codes and escape sequences, but I've never modified a hardware driver before. The printer will print with the current driver, but I need to include a command to make it cut and spool the receipt after it is finished printing.
My commands and escape sequences can be found on page 7 of the technical manual at this link: http://www.swecoinus.com/techsupport/product_manuals/TTP101/381201.pdf
Any help would be greatly appreciated. Thanks, Matt
note: this is my first question, so I don't really have any points to give. I am giving all I got, so hopefully someone can help out.
|
Answer : Problem: How to modify the Generic Text only printer driver...
|
|
I'm afraid that the link to your manual doesn't seem to work so I can't look at the manual. However I would need to look at the complete sequence in your software to give you accurate advice. Some while ago I wrote a printer driver for a Brother 24pin wide carriage dot matrix printer so I can't imagine your problem is too different. In the absence of further information I suggest you find the position of a printer function that you will not be using in your application and then substitute the escape sequence that is already there with the cut and spool escape sequence. So for example if you are not going to be using the 'underline' escape sequence, substitute that sequence with the cut and spool escape sequence. The escape sequences are usually of the format \xxx where the xxx is the hex code for the activity you want carried out.
Hope this helps.
|
|
|
|