473,473 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to send a .txt file to a printer

115 New Member
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 5963
Frinavale
9,735 Recognized Expert Moderator Expert
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

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

Similar topics

1
by: free free | last post by:
Hi, i'am writing a python program and now i need to print some stuff. Before print i want to set the text to condensed text and to italic, so i have to send some esc commads to printer. my...
1
by: Richard Johnson | last post by:
I am a C++ newbie and am trying to send simple text data to my local printer. My printer is a USB printer and I have tried the following code using my USB port. This code executes but does not send...
1
by: Michael Kilpatrick | last post by:
I'm writing a command-line PHP script that gets executed by a virtual printer (a redirected port using the Redmon tool). The PHP modifies the Postscript data before forwarding it to the real...
3
by: RC | last post by:
I am using docmd.printout to send Reports (formatted as labels) to a barcode label printer. I need to collate the labels so that I print lable 1 twice, then label 2 twice, then label 3 twice, etc....
5
by: trint | last post by:
How can I send files straight to a printer from my c#.net app? I also must include the margin's, trays and the stapler. Thanks, Trint
13
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual...
1
by: Hector M Banda | last post by:
Hi all, Need advice on how to send output to a tiket printer using VB2005. I cannot figure out how to send scape sequences to change fonts, etc. I am using a generic printer driver but no luck....
0
by: ic3s | last post by:
I need help in completing my program that sends files using java. What I wanted, instead of putting the text in a string then send, I want to save it to file in my local drive and the program would...
0
by: dtnam | last post by:
Hi, I want to do something like that: void doc_PrintPage(object sender, PrintPageEventArgs e) { // draw a rectangle e.Graphics.DrawRectangle(Pens.Black, new Rectangle(10, 10, 100,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.