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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s