Giter VIP home page Giter VIP logo

Comments (7)

svishnevsky avatar svishnevsky commented on June 12, 2024

Hi Peter,

Thanks for your feedback. Could you please tell what package version do you use?

These 20 instances are running after printing is finished and don't exit at all? The wrapper runs new PDFtoPrinter instance per every Print call. So if you use it in parallel code, it's possible to have a number of processes at the same time but them should exit after document is added to the printing queue. If it isn't, could you please send me a source code example?

Also, based on your feedback, I've release a new version of package with concurrency settings. So you can use wrapper as Singleton to control process instance count.

Thanks,
Sergey

from pdftoprinter.

buda56 avatar buda56 commented on June 12, 2024

from pdftoprinter.

buda56 avatar buda56 commented on June 12, 2024

Sergey,
We have found another issue as well, it would appear that when mulitiple print jobs are called not all jobs are printing, so if the loop count is > 1 then the print issues appear.

Regards
Peter

from pdftoprinter.

svishnevsky avatar svishnevsky commented on June 12, 2024

Hi Peter,

Thanks for detailed information, this really helped.
the "Print" is asynchronous and you uses it in synchronous code. Could you try to change the method's call like this:
printWrapper.Print(filePath, networkPrinter, printTimeOut).Wait();
to be ensure that printing has started?

from pdftoprinter.

buda56 avatar buda56 commented on June 12, 2024

from pdftoprinter.

buda56 avatar buda56 commented on June 12, 2024

from pdftoprinter.

svishnevsky avatar svishnevsky commented on June 12, 2024

Hi,

That great! Feel free to contact me with any issues.

from pdftoprinter.

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.