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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Printing in C# on Thermal Printer

Printing in C# on Thermal Printer

Scheduled Pinned Locked Moved C#
csharphelpasp-netvisual-studiotutorial
5 Posts 2 Posters 1 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.
  • V Offline
    V Offline
    vijay victory
    wrote on last edited by
    #1

    Hi, I am brand new to printing to a thermal printer using c# asp.net, and i need your help guys to give me where can i find tutorial how can i connect and print to thermal printer using c#. i am using VS 2008 PRO .NET 3.5 please help me to get started with thermal printing using c# I am stuck here.

    I have never failed,I just found 1000 ways that never works. Regards, Victory.

    D 1 Reply Last reply
    0
    • V vijay victory

      Hi, I am brand new to printing to a thermal printer using c# asp.net, and i need your help guys to give me where can i find tutorial how can i connect and print to thermal printer using c#. i am using VS 2008 PRO .NET 3.5 please help me to get started with thermal printing using c# I am stuck here.

      I have never failed,I just found 1000 ways that never works. Regards, Victory.

      D Offline
      D Offline
      Dan Mos
      wrote on last edited by
      #2

      If the printer supports IP/network(and it should) then I don't see the problem. Simply send the byte[] to the printer's IP.(yeah a static IP is needed for this). Usually the industrial/thermal printers come with a predefined header/logo file. All you need to do is send it plus the other label info. I/we can't possibly know how to help you on a specific printer label type. :)

      All the best, Dan

      V 1 Reply Last reply
      0
      • D Dan Mos

        If the printer supports IP/network(and it should) then I don't see the problem. Simply send the byte[] to the printer's IP.(yeah a static IP is needed for this). Usually the industrial/thermal printers come with a predefined header/logo file. All you need to do is send it plus the other label info. I/we can't possibly know how to help you on a specific printer label type. :)

        All the best, Dan

        V Offline
        V Offline
        vijay victory
        wrote on last edited by
        #3

        thnx dan, i already tried that way.but of no use. I want to print in the Bill/Invoice format. Can you help me about this?

        I have never failed,I just found 1000 ways that never works. Regards, Victory.

        D 1 Reply Last reply
        0
        • V vijay victory

          thnx dan, i already tried that way.but of no use. I want to print in the Bill/Invoice format. Can you help me about this?

          I have never failed,I just found 1000 ways that never works. Regards, Victory.

          D Offline
          D Offline
          Dan Mos
          wrote on last edited by
          #4

          Sorry but I don't think I can help because:

          • I don't know the format of the label
          • I don't know the type and protocol of the printer

          Here's how I did/do it(regardless of winapp/webapp):

          1. Read the printer label format in a byte[] from a stream.
          2. Add the actual label(s) info such as PN, Qty, Batch ... according to the label specs
          3. Send the resulting byte[] to the printer IP

          Even when using serial Connection from windows app I use the same technique(send the file/byte to the serial port). Other possiblities:

          • Use a printServer and add the thermal printer to the print server.(never did it)
          • Connect the printer to USB.(only did it on win app)

          All the best, Dan

          V 1 Reply Last reply
          0
          • D Dan Mos

            Sorry but I don't think I can help because:

            • I don't know the format of the label
            • I don't know the type and protocol of the printer

            Here's how I did/do it(regardless of winapp/webapp):

            1. Read the printer label format in a byte[] from a stream.
            2. Add the actual label(s) info such as PN, Qty, Batch ... according to the label specs
            3. Send the resulting byte[] to the printer IP

            Even when using serial Connection from windows app I use the same technique(send the file/byte to the serial port). Other possiblities:

            • Use a printServer and add the thermal printer to the print server.(never did it)
            • Connect the printer to USB.(only did it on win app)

            All the best, Dan

            V Offline
            V Offline
            vijay victory
            wrote on last edited by
            #5

            Thanx Don, It will definitely help me.. :-)

            I have never failed,I just found 1000 ways that never works. Regards, Victory.

            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