By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,582 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

Print via network

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.