473,396 Members | 1,996 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,396 software developers and data experts.

Print via network

Hi,

We have a little problem in 1 of our ASP page :(
on this page, we can add new printers (local or network) and to print a
report on a selected (by default) printer.

We we do the test on a local printer, it works perfectly.
Unfotunately, when we try to print the same report on one of our network
printers, it fails.

We suppose that problem is on 2 places :
- define default printer
- path of network printer.

does anybody have some tutorial or examples how to do both of these things
via ASP ?
thanks a lot,
Maileen
Nov 18 '05 #1
1 1902
I can see 2 problems

1. Security. Account under which ASP.NET runs does not have access to that network printer. I guess you will have to impersonate (web.config) account that has all permissions.
2. The printers are added per User. So if you login on a server, install printer that printer will not exist under other account (i.e. ASP.NET account) Look for an article in KB "How to print from NT service".

Also it's always good to analyze the error you getting when it fails. Usually it says in English where problem is.

George
My Site - Body Jewelry
"Maileen" <no*****@email.com> wrote in message news:OH****************@TK2MSFTNGP10.phx.gbl...
Hi,

We have a little problem in 1 of our ASP page :(
on this page, we can add new printers (local or network) and to print a
report on a selected (by default) printer.

We we do the test on a local printer, it works perfectly.
Unfotunately, when we try to print the same report on one of our network
printers, it fails.

We suppose that problem is on 2 places :
- define default printer
- path of network printer.

does anybody have some tutorial or examples how to do both of these things
via ASP ?
thanks a lot,
Maileen
Nov 18 '05 #2

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

Similar topics

0
by: KohlerTommy | last post by:
In my application I need to give the user the ability to print duplex if the selected printer supports duplex printing. Many of the printer options do not make much sense in my application, and...
0
by: Tessa | last post by:
Is there any security reason why you cannot print to a network printer from ASP.NET under IIS6 on Windows 2003 server? I'm using ASP.NET code to print to a server print queue using...
0
by: Broadica | last post by:
hi, i wanted to know how can we read and intercep printing job queue in our system which will be forward to a print server? senario: assume there is a network of computer. 10 pc. 1 of the...
56
by: peng | last post by:
Hi, I am development a project using C#.Net. Inside application, it needs to print labels on different Zebra label printers on the network. I used a shell script, but it only worked on the...
0
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the...
0
by: neeraj | last post by:
Hi all I have developed on desktop application in Visual Basic for Hotel Management and my client requires multiple printing options here I have multiple printers first default printer which...
1
by: sangith | last post by:
Hi, I tried the packet capture module program. I did a file transfer using ftp from this host to another server. But when I ran the program, it was just hanging off and it did not print the...
0
by: jigsmshah | last post by:
i am working on a project (windows service using VB.Net and C#) which gets the check details and check images from the database and prints the check to a printer. Printer name is configured in a...
1
by: =?Utf-8?B?SmJhcmJlcg==?= | last post by:
All users in my XP Professional PC were able to print to a network printer until now. Now, the only account that can print to the network printer is the admin account. I have an HP PSC 2200 series...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.