Send codes to a Printer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JC

    Send codes to a Printer

    How do I send escape codes to the printer

    I used to be able to do Printer.Print chr$(27) & chr$(71) & "20" and get it
    to send. Of course this was vb but there should be some method of talking to
    a printer.

    thanks,
    jc


  • Markus Stoeger

    #2
    Re: Send codes to a Printer

    JC wrote:
    [color=blue]
    > How do I send escape codes to the printer
    >
    > I used to be able to do Printer.Print chr$(27) & chr$(71) & "20" and get
    > it to send. Of course this was vb but there should be some method of
    > talking to a printer.[/color]

    I'm not sure if it can actually be used for sending escape codes to a
    printer, but if you want to print take a look at the
    System.Drawing. Printing namespace. Got to love it! The interface is great.

    Max

    Comment

    • Ron Allen

      #3
      Re: Send codes to a Printer

      JC,
      Look for topics on printing directly to a printer in either
      codeproject.com or C# Corner www.c-sharpcorner.com.
      An example would be the article in
      http://www.c-sharpcorner.com/Code/20...rintDirect.asp.

      Ron Allen
      "JC" <striderguy56@h otmail.com> wrote in message
      news:ulnCDZuYFH A.1092@tk2msftn gp13.phx.gbl...[color=blue]
      > How do I send escape codes to the printer
      >
      > I used to be able to do Printer.Print chr$(27) & chr$(71) & "20" and get
      > it to send. Of course this was vb but there should be some method of
      > talking to a printer.
      >
      > thanks,
      > jc
      >[/color]


      Comment

      Working...