Windows comes with a generic text printer driver that I have used for receipt printers before, I don't think that you would need to write your own.
What I am really after is a way of producing a text file when a document is printed with each piece of information (say for example customer reference when printing an invoice) enclosed by a pre & post field tags such as:
I realise that this can be achieved easily by modifying the invoice template used for printing and using the text printer driver to print to file. Unfortunately, I need to do this for other types of documents as well and I am not likely to know beforehand what templates are going to be used for printing.
Does the printer driver get to 'know' what information is being sent or is it simply the data that has needs printing ?
Also, I need to add some pre & post amble (header / footer) to each document that gets printed.
Lastly, any information you can provide that might help me in creating my own version of the generic printer driver would be greatly appreciated.
P.S. I'll be away for the next 2 weeks and appologise in advance for not being able to reply to your response.