471,338 Members | 1,319 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

how to send a .txt file to a printer

115 100+
how to send a .txt file to a printer.
after creating a .txt file i need to send that .txt file to a printer.using vb.net
and while sending that file to printer i need to tell, which printer i need to send.
and i can't used printdialog, to select to which printer i need to send and number of pages and all.
everything i need to hardcode. after creating a .txt file, hardcode to which printer i need to send the data and just send to printer.
anyidea how to do this. if you have anyidea, please let me know.
and if you can send an example, that will be great helpfull to me.
thanks in advance.
Jun 18 '07 #1
1 5778
Frinavale
9,735 Expert Mod 8TB
how to send a .txt file to a printer.
after creating a .txt file i need to send that .txt file to a printer.using vb.net
and while sending that file to printer i need to tell, which printer i need to send.
and i can't used printdialog, to select to which printer i need to send and number of pages and all.
everything i need to hardcode. after creating a .txt file, hardcode to which printer i need to send the data and just send to printer.
anyidea how to do this. if you have anyidea, please let me know.
and if you can send an example, that will be great helpfull to me.
thanks in advance.
Hi Remya!

You're going to have to use the Win32 Spooler API.
Please check out this article supplied by MSDN.

Good luck!

-Frinny
Jun 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by free free | last post: by
1 post views Thread by Richard Johnson | last post: by
1 post views Thread by Michael Kilpatrick | last post: by
5 posts views Thread by trint | last post: by
1 post views Thread by Hector M Banda | last post: by
reply views Thread by ic3s | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.