By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,044 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,044 IT Pros & Developers. It's quick & easy.

Simple printing from VB.Net???

P: n/a
Can someone provide a simple example of how to print using VB.Net???
Basically just looking for a "HELLO WORLD" example to the printer.

I'll worry about formatting, etc. later on.

Right now I have a single string that could be a few thousand characters
long and I want to print it to the printer and eject the page.

Thx!
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Simple printing from VB.Net? Good luck! :^)

Hopefully things will be simpler in VB 2005.

http://msdn.microsoft.com/msdnmag/is...printinginnet/

Greg

"Noozer" <do*******@me.here> wrote in message
news:ee****************@tk2msftngp13.phx.gbl...
Can someone provide a simple example of how to print using VB.Net???
Basically just looking for a "HELLO WORLD" example to the printer.

I'll worry about formatting, etc. later on.

Right now I have a single string that could be a few thousand characters
long and I want to print it to the printer and eject the page.

Thx!

Nov 21 '05 #2

P: n/a
"Noozer" <do*******@me.here> schrieb:
Can someone provide a simple example of how to print using VB.Net???
Basically just looking for a "HELLO WORLD" example to the printer.

I'll worry about formatting, etc. later on.

Right now I have a single string that could be a few thousand characters
long and I want to print it to the printer and eject the page.


Sample:

PrintingDemo
<URL:http://dotnet.mvps.org/dotnet/samples/printing/PrintingDemo.zip>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

P: n/a
I found this example to be useful.
http://www.developer.com/net/net/article.php/3102381

It contains a class called textprint that can be added
easily to any project.
Good luck.

"Noozer" <do*******@me.here> wrote in message
news:ee****************@tk2msftngp13.phx.gbl...
Can someone provide a simple example of how to print using VB.Net???
Basically just looking for a "HELLO WORLD" example to the printer.

I'll worry about formatting, etc. later on.

Right now I have a single string that could be a few thousand characters
long and I want to print it to the printer and eject the page.

Thx!

Nov 21 '05 #4

P: n/a
Thanks! Quite helpful!

"Darious Snell" <nu**@sdlkfweu.org> wrote in message
news:41***********************@news.twtelecom.net. ..
I found this example to be useful.
http://www.developer.com/net/net/article.php/3102381

It contains a class called textprint that can be added
easily to any project.
Good luck.

"Noozer" <do*******@me.here> wrote in message
news:ee****************@tk2msftngp13.phx.gbl...
Can someone provide a simple example of how to print using VB.Net???
Basically just looking for a "HELLO WORLD" example to the printer.

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.