-
Printing
Hi,
I am trying to send a text file to a label printer.
I have my text file which i would like to send to the label printer. It looks like this.
L
D11
H12
PA
SA
Q0001
391100400290353line 1 of text
E
In another topic i think it says it may be possible to do this through dos. I would then need to edit the text file text via an sql statement, is this correct?
Or is it possible to send the text within my code.
Is there no com port ingot available with .net to send text to a printer from application.
Confused on this subject, not to sure what i need to do.
has anyone advice
thanks
adam
-
Get yourself a copy of ".NET Graphics and Printing" by Peter G. Aitken from Optimax Publishing (ISBN 1-931097-04-6)
www.optimaxpublishing.com
Chapter 9 tells you all about how to use the PrintDocument object which I think is the best way to produce your labels.
There is also a PrintDialog class which allows you to select your printer by name and specify (through the printer's properties) what size and format paper/labels to use.
Hope that helps.