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. Simple printing from a text file

Simple printing from a text file

Scheduled Pinned Locked Moved Visual Basic
questioncsharpvisual-studio
2 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.
  • R Offline
    R Offline
    rudemusik
    wrote on last edited by
    #1

    Hello All! Seems pretty simple, but this is my first attempt at printing. There are alot of options when it comes to printing. All I need to do is click on a button, and have that event print a pre-selected text file. Just a file created in notepad, 4 lines of text. I don't need to preview it, and just use the default printer. I don't need the user to set up any settings, just hit the print button, and that text file will get printed. What is the easiest way to accomplish this? I'm working in VS 2003, vb.net. Thanks! Rudy

    A 1 Reply Last reply
    0
    • R rudemusik

      Hello All! Seems pretty simple, but this is my first attempt at printing. There are alot of options when it comes to printing. All I need to do is click on a button, and have that event print a pre-selected text file. Just a file created in notepad, 4 lines of text. I don't need to preview it, and just use the default printer. I don't need the user to set up any settings, just hit the print button, and that text file will get printed. What is the easiest way to accomplish this? I'm working in VS 2003, vb.net. Thanks! Rudy

      A Offline
      A Offline
      Agus Budianto
      wrote on last edited by
      #2

      you can use 'print document' component from the toolbox and handle the printing event for that component. something like using grapics.drawstring function

      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