Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to send escape sequence to printer

how to send escape sequence to printer

Scheduled Pinned Locked Moved C#
tutorialquestioncareer
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    metinergoktas
    wrote on last edited by
    #1

    Hi all, I have to use EPSON LX 300+ for my printing job. So I want to send an escape sequences to printer to be able to format the text before printing, but I cant recognize how hould I do this ?? forexample I wrote this for Form Feed(corresponds 12 for decimal) (char)27+(char)12 but nothing effected. Is there anyone who shows me a some sample code, or give me a some hints are greatly appreciated.. thanx. :omg: metin.

    meTin.eRGoktas

    D 1 Reply Last reply
    0
    • M metinergoktas

      Hi all, I have to use EPSON LX 300+ for my printing job. So I want to send an escape sequences to printer to be able to format the text before printing, but I cant recognize how hould I do this ?? forexample I wrote this for Form Feed(corresponds 12 for decimal) (char)27+(char)12 but nothing effected. Is there anyone who shows me a some sample code, or give me a some hints are greatly appreciated.. thanx. :omg: metin.

      meTin.eRGoktas

      D Offline
      D Offline
      darkelv
      wrote on last edited by
      #2

      http://support.microsoft.com/?scid=kb%3BEN-US%3B322090 I just sent a 12 (without the esc).

      M 1 Reply Last reply
      0
      • D darkelv

        http://support.microsoft.com/?scid=kb%3BEN-US%3B322090 I just sent a 12 (without the esc).

        M Offline
        M Offline
        metinergoktas
        wrote on last edited by
        #3

        thanks, but still not clear, forexample document says below for horizontal/vertical skip. How my code should be if m = 1,n=100 according to documentation. Format ASCII ESC f m n Hex 1B 66 m n Decimal 27 102 m n Parameter range 0 £ n £ 127 m = 0, 1 Moves the print position depending on the value of m, as follows: m = 0 Prints n spaces in the current pitch. 1 Performs n line feeds, in the current line spacing Moves the horizontal print position to the left-margin position.

        meTin.eRGoktas

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups