Peter Benson
Peter Benson

Reputation: 15

How to print from a console application in visual basic.net?

I was wondering if someone could tell me how to print text from a console application to the default printer. Any help would be much appreciated.

Upvotes: 1

Views: 4797

Answers (1)

tcables
tcables

Reputation: 1307

PrintDocument Class http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx Example is near bottom. Make sure you click the VB Tab-button near the code.

Also Printing in Visual Basic .NET http://visualbasic.about.com/od/usingvbnet/a/printvb2005.htm

Upvotes: 1

Related Questions