469,572 Members | 1,171 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

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 1697
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.

Similar topics

reply views Thread by KohlerTommy | last post: by
reply views Thread by Broadica | last post: by
1 post views Thread by =?Utf-8?B?SmJhcmJlcg==?= | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.