Click here to Skip to main content
15,904,339 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all,
I want to print word file from client printer how can I do that? It is an intranet application created in mvc c#.

Please provide me suggestion whether it can be done or not.

If possible or have a code then please share.

Thank you.

What I have tried:

did not find any suggestion to do.
Updated 2-Dec-22 2:40am

1 solution

Your C# code runs on the server. If you want to print from the server, then you'll need to have the printer connected to the server, and set up for the App Pool account you're using to run your application.

The only code that runs on the client is Javascript, and Javascript cannot control the hardware attached to the client.

If you need to print a document to the user's printer, you're going to need to let them download the document and print it themselves.
Share this answer

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