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. Visual Basic
  4. printing text straight to the printer

printing text straight to the printer

Scheduled Pinned Locked Moved Visual Basic
helpquestion
7 Posts 3 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.
  • U Offline
    U Offline
    User 1649112
    wrote on last edited by
    #1

    hello... can anybody help? is there a way to print what a textbox contains straight to the printer? i can't seem to figure it out... thanks!!

    D J 2 Replies Last reply
    0
    • U User 1649112

      hello... can anybody help? is there a way to print what a textbox contains straight to the printer? i can't seem to figure it out... thanks!!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Search the Comments next time. This has been covered here dozens of times. HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      J 1 Reply Last reply
      0
      • U User 1649112

        hello... can anybody help? is there a way to print what a textbox contains straight to the printer? i can't seem to figure it out... thanks!!

        J Offline
        J Offline
        Just Greeky Creek
        wrote on last edited by
        #3

        if u need i can send an example, Send email for demand

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          Search the Comments next time. This has been covered here dozens of times. HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          J Offline
          J Offline
          Just Greeky Creek
          wrote on last edited by
          #4

          please offer next time Both :D How The Raw Data is Printed[^] and HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET[^].[^] Noww I m Bronze Member of code project yuppiiiiiiiii

          D 1 Reply Last reply
          0
          • J Just Greeky Creek

            please offer next time Both :D How The Raw Data is Printed[^] and HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET[^].[^] Noww I m Bronze Member of code project yuppiiiiiiiii

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Tooting your own horn are you? That article didn't exist at the time. And after seeing it, I wouldn't recommend it to anyone, yet. You've got a lot of work to do to clean up that code so it's readable, let alone orgainized into logical blocks. On top of that, I hate it when people just post code with some comments in it but don't actually write an article explaining the code and theory behind it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            U 1 Reply Last reply
            0
            • D Dave Kreskowiak

              Tooting your own horn are you? That article didn't exist at the time. And after seeing it, I wouldn't recommend it to anyone, yet. You've got a lot of work to do to clean up that code so it's readable, let alone orgainized into logical blocks. On top of that, I hate it when people just post code with some comments in it but don't actually write an article explaining the code and theory behind it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              U Offline
              U Offline
              User 1649112
              wrote on last edited by
              #6

              hi! is there some sort of printer settings that i need to follow prior to the code? it doesn't seem to be working. if i use the "print a string" method, it justs prints the first letter. if i use the "print a file" methond, it prints only the first word.

              D 1 Reply Last reply
              0
              • U User 1649112

                hi! is there some sort of printer settings that i need to follow prior to the code? it doesn't seem to be working. if i use the "print a string" method, it justs prints the first letter. if i use the "print a file" methond, it prints only the first word.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                On most printers today, you have to send a Form Feed character (ASCII 12) to the pritner to get it to form feed and print the contents of the buffer. If it still does not print, then there is some setting or flush commadn you hvae to send to the printer. But, only the documentation on the printer will tell you what that is. You might even have to go to the manufacturer to get that information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                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