473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

defautl printer

I have an Intranet application that I need to print documents from. With C#
is it possible to either create a component or web service that will get the
users default printer and print the documents to that printer without the
user seeing the print dialog box?

I will be passing the document name to the print process from an ASP page
not asp.net page.
I've created a dll in VB 6 and it only prints the document to the web
servers default printer, I need the users that access the app default
printer.
Nov 15 '05 #1
2 4397
No, this is not possible as it is a security breach. If you are running on
an intranet, then you might be able to write a client-side ActiveX control
to do it, but it is doubful. What you can do is display the document in the
browser and provide a javascript window.print() link.

HTH,

Bill P.
On Fri, 1 Aug 2003 14:25:17 -0400, Mike <cs*********@sbcglobal.net> wrote:
I have an Intranet application that I need to print documents from. With
C#
is it possible to either create a component or web service that will get
the
users default printer and print the documents to that printer without the
user seeing the print dialog box?

I will be passing the document name to the print process from an ASP page
not asp.net page.
I've created a dll in VB 6 and it only prints the document to the web
servers default printer, I need the users that access the app default
printer.


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #2
No, this is not possible as it is a security breach. If you are running on
an intranet, then you might be able to write a client-side ActiveX control
to do it, but it is doubful. What you can do is display the document in the
browser and provide a javascript window.print() link.

HTH,

Bill P.
On Fri, 1 Aug 2003 14:25:17 -0400, Mike <cs*********@sbcglobal.net> wrote:
I have an Intranet application that I need to print documents from. With
C#
is it possible to either create a component or web service that will get
the
users default printer and print the documents to that printer without the
user seeing the print dialog box?

I will be passing the document name to the print process from an ASP page
not asp.net page.
I've created a dll in VB 6 and it only prints the document to the web
servers default printer, I need the users that access the app default
printer.


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #3

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

Similar topics

2
by: Patrick Herb | last post by:
Hello, I'm trying to print the content of a RichTextBox from my VB 6 app. What I want is that the CommonDialog shows up, the user selects a printer and the content of the RichTextBox prints to...
2
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set...
7
by: Steve M | last post by:
Hello, I'm having problems sending information from a python script to a printer. I was wondering if someone might send me in the right direction. I wasn't able to find much by Google TIA...
0
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing...
0
by: Mike | last post by:
I have an Intranet application that I need to print documents from. With C# is it possible to either create a component or web service that will get the users default printer and print the...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
2
by: cjreynolds | last post by:
Please excuse my cluelessness on the subject - this is the first time I've worked with printing in VB (and it may be the last) and the more I work with it, the more confused I become... First, I'm...
4
ADezii
by: ADezii | last post by:
Recently, there seems to be several questions specifically related to Printers and changing Printing characteristics for Forms and Reports. For this reason alone, I decided to dedicate this week's...
9
by: id10t error | last post by:
Hello, I am going to be using a Symbol WT4090 to scan items. I need to printer a tag from the Zebra ql320 plus. I am trying to do this is Visual basic 2005. Does anyone know and good site to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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...
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...

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.