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 make DOS Printing in C# using VS 2005

How to make DOS Printing in C# using VS 2005

Scheduled Pinned Locked Moved C#
tutorialcsharpcssdatabasevisual-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
    rowdykuttan
    wrote on last edited by
    #1

    Hi there Can someone guide me how to do Dos printing, with paper eject and margin set. I am having a C# application with SQL 2000 i have data loaded into developer express grid. when the user selects print. it must go for dos based printing. Right now i am writing it to a text file then tried printing i am facing alignment problem like if a line has 130 letters everything goes to a mess. here is what i have to print ----------------------------------------------- Company Name Address Line1 Address Line2 ----------------------------------------------- Bill No :- 12345 Bill Date:- DD/MM/YYYY ----------------------------------------------- Customer Name :- John Travolta ----------------------------------------------- ----------------------------------------------- Waiting for a reply Thanks

    D 1 Reply Last reply
    0
    • R rowdykuttan

      Hi there Can someone guide me how to do Dos printing, with paper eject and margin set. I am having a C# application with SQL 2000 i have data loaded into developer express grid. when the user selects print. it must go for dos based printing. Right now i am writing it to a text file then tried printing i am facing alignment problem like if a line has 130 letters everything goes to a mess. here is what i have to print ----------------------------------------------- Company Name Address Line1 Address Line2 ----------------------------------------------- Bill No :- 12345 Bill Date:- DD/MM/YYYY ----------------------------------------------- Customer Name :- John Travolta ----------------------------------------------- ----------------------------------------------- Waiting for a reply Thanks

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

      A quick Google for "http://www.google.com/search?hl=en&q=c%23+print+directly+to+lpt1[^]" reveals this[^] as an example.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      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