WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Print PDF Files
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1459967847

Message started by WD User on Apr 6th, 2016 at 8:37pm

Title: Print PDF Files
Post by WD User on Apr 6th, 2016 at 8:37pm
Greetings,

I am running 4.9.3 pro and I am trying to setup the "Print PDF Files". I keep getting the following:

... Failed to get printer
Plugin returned errorcode 1. Error Message=Not supported watchDirectory will continue...

I am trying to print to a printer share. Is this possible to print to networked / shared printers?

Thanks,
Chase

Title: Re: Print PDF Files
Post by Dirk on Apr 6th, 2016 at 8:54pm
Make sure the user who runs the task has the right to use the printer.
This error message indicates insufficent rights. If you run the task as windows service make sure the user under which the service is running has the right to use the printer.

Title: Re: Print PDF Files
Post by Gert on Apr 6th, 2016 at 9:13pm
Good point Dirk, see http://blog-en.gdpsoftware.com/2010/04/watchdirectory-tasks-as-windows-service.html
and http://blog-en.gdpsoftware.com/2010/02/print-pdf-files-automatically-with.html

Title: Re: Print PDF Files
Post by WD User on Apr 6th, 2016 at 10:26pm
Dirk -

I added explicit permissions to the printer share for the service account I was using, however this had no effect and I received the same error message.

Upon further troubleshooting I logged in as the service account on my Watch Directory server and installed the printer for that service user. The plugin seems to work fine after that. I am thinking that is a requirement if I am running it as a service. The service account would need that printer installed at some point.

Thank you both for the help!

Title: Re: Print PDF Files
Post by Dirk on Apr 7th, 2016 at 1:57pm
Thanks for the update.

You are right, I had forgotten to mention this.
The service user account needs to login once and configure a printer. When the task runs as Windows Service under that user the plugin now can find a printer and print.

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.