473,804 Members | 3,278 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send a file straight to printer?

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

Nov 16 '05 #1
5 10197
Trint,

I don't think it is that simple. Based on the type of file it is, you
would have to find out how that file is rendered to the printer. There is
no universal print mechanism for any type of file.

Is this for one type of file in particular, or any type?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"trint" <tr***********@ gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
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

Nov 16 '05 #2
This will be a .tiff file. And needs the margin, tray selection and
staple commands sent with it.
thanks,
trint
Nicholas Paldino [.NET/C# MVP] wrote:
Trint,

I don't think it is that simple. Based on the type of file it is, you would have to find out how that file is rendered to the printer. There is no universal print mechanism for any type of file.

Is this for one type of file in particular, or any type?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"trint" <tr***********@ gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
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


Nov 16 '05 #3
Trint,

You should probably get a component that will handle all of this
yourself, as I don't think there is antything native (managed or unmanaged)
which can do this. Of course, if you already have an application that can
do this which can be automated, then I suggest you use that.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"trint" <tr***********@ gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
This will be a .tiff file. And needs the margin, tray selection and
staple commands sent with it.
thanks,
trint
Nicholas Paldino [.NET/C# MVP] wrote:
Trint,

I don't think it is that simple. Based on the type of file it

is, you
would have to find out how that file is rendered to the printer.

There is
no universal print mechanism for any type of file.

Is this for one type of file in particular, or any type?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"trint" <tr***********@ gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
> 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
>

Nov 16 '05 #4
I don't have the code in place yet...I do need a component within
c#.net (vs.net 2003) that will do this...where to look is how i need
help.
thanks,
trint

Nov 16 '05 #5
If all else fails, you could google something like "C# printing component
tiff"
You s/b able to find a couple components that offer free evaluation
versions.
You s/b able to explain to pre-sales staff exactly what you need it to do,
and
ask them how their product can do that. If you get a prompt helpful
response,
that's a very good sign.

-Rachel

"trint" <tr***********@ gmail.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
I don't have the code in place yet...I do need a component within
c#.net (vs.net 2003) that will do this...where to look is how i need
help.
thanks,
trint

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2377
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 code pp=open("/dev/lpr","w") pp.write(chr(27)+chr(15))
1
2187
by: Paul | last post by:
I have a series of hyperlinks on my page which open up documents. Mainly pdfs. Can anyone tell me if it is possible to send these straight to the users printer or is this just asking too much ? Thanks in Advance
1
4413
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 anything to the printer. I have checked my printer ports and the name I have in the code is the same as is listed on the printer port.The code is as follows: file.open("USB-Compaq_A3000"); file << "Hello World" << std::endl; file.close;
1
6951
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 printer. In this case the real printer is an HP LaserJet 5100 with a JetDirect wireless server. My machine runs Windows XP. The printer, as well as being accessible through the usual print methods within applications, is available through its server...
13
21715
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 data in the string being sent to the printer. However, if I prompt the user for data or if I insert data from a particular record/field in a form Access crashes/closes on its own. I have included the code below, if anyone has any suggestions,...
3
3415
by: Bell, Kevin | last post by:
Does anyone have any suggestions on printing pdf's? These pdf's don't change much, so if it be more straight forward to convert them to jpgs, or another format, then that'd be fine too. Thanks in advanced, Kevin
1
1811
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. -hb
1
6011
by: remya1000 | last post by:
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. ...
0
2579
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, 100)); // Send a text to printer PrinterSettings ps = new PrinterSettings();
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5522
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4300
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 we have to send another system

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.