Results 1 to 2 of 2

Thread: Printing

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    2

    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

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    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.
    This world is not my home. I'm just passing through.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width