Text printing in 3 lines with .NET

I found this .Net class by Karl Moore on developer.com which promises that you can print in 3 lines of code. I tried it out and it works just great. Below are the only 3 lines you will need. See below for a link to the the downloable class source code.

Dim MyPrintObject As New TextPrint(“**Line 1**” & vbcrlf ) ‘Line 1
MyPrintObject.Font = New Font(“Tahoma”, 8)                       ‘Line 2
MyPrintObject.Print()                                                          ‘Line 3

 

input.JPG Click Here for the Cut Paste TextPrint Class

Leave a Reply