Coder Social home page Coder Social logo

Comments (5)

huysentruitw avatar huysentruitw commented on August 25, 2024

Does it work when you run it from the console (start the exe with the flag --console) ?

If it runs as a service, the user the service runs under must have printers installed (Windows links printers to users IIRC). It can help to use a service account instead of Network Service or Local System.

from print-it.

Vasanthvivi avatar Vasanthvivi commented on August 25, 2024

Does it work when you run it from the console (start the exe with the flag --console) ?

If it runs as a service, the user the service runs under must have printers installed (Windows links printers to users IIRC). It can help to use a service account instead of Network Service or Local System.

Yes it works when running as console application but it is not working while running as a service ,,, according to the microsoft docs the PrintDocument is based on WinForms and i think windows service dont have the rights to print documents

from print-it.

yiwan74 avatar yiwan74 commented on August 25, 2024

Is any solution found about this issue?
Printing from service is not possible. Any workaround for this problem?

Yes it works when running as console application but it is not working while running as a service ,,, according to the microsoft docs the PrintDocument is based on WinForms and i think windows service dont have the rights to print documents

from print-it.

SaadYasir avatar SaadYasir commented on August 25, 2024

from print-it.

yiwan74 avatar yiwan74 commented on August 25, 2024

Yes. You are right. It can print from service.
I was trying to print from service on printer that was redirected through remote desktop.
In that case it prints only when started with Visual Studio.
But when I used local network printer it prints well from service too.

from print-it.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.