.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Print through DotMatrix printer

Posted By:Deepika Haridas       Posted Date: September 30, 2009    Points: 10    Category: Visual Studio    URL: http://www.dotnetspark.com  

Easy way to do :-

To print your Text through DotMatrix printer either DOS based/Window based
1) Save whatever you need to print in a .txt file using either a StreamWriter.
2) On Print button Click event write.

System.Diagnostics.Process.Start("PRINT", "C:\\[your filename]");

This will print the contents of your .txt file on a dotmatrix printer.


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend