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