Click here to Skip to main content
15,891,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I am using VB exe to print the document. The document is printing on Network Printer when i start with my ASP.NET Application. When i Host it on IIS document is not priting.
I changed the application pool to Network Service, Local System(<identity impersonate="true">).
Please provide me any solution for my problem.
Posted

1 solution

VB code runs on the server, not the client.
So your code to print works in development because the server and the client are on the same LAN - and indeed are probably the same computer.

When you run it in production, it still runs on the server - but it's now on a different network and can't see the printer in your office.
 
Share this answer
 
Comments
sathish k.kumar 30-Aug-14 2:08am    
Okay... I got your point so what i can do this problem to be solved.
OriginalGriff 30-Aug-14 2:21am    
Pretty much the only thing you can do is rewrite it all so the printing is done in JavaScript.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900