Hello all,
I am trying to print a PDF from inside UV/Windows. Here is what I've got:
CMD = 'DOS /c "C:\PROGRAM FILES (X86)\ADOBE\READER 11.0\READER\ACRORD32.EXE" /T /N /S '
CMD := 'P:\xxxxx\yyyyy.pdf \\servername\TOSHIBA4540'
PRINT CMD
EXECUTE CMD
When I run this from the DOS command prompt (minus the DOS /c part) it works fine. When I execute it from a UV BASIC program the session just hangs, and as an added insult seems to kill the UVTELNET service as well, requiring a system reboot (not cool!).
Perhaps I need another set of quotes around the C:\PROGRAM FILES... part? However, because I have instigated two system reboots testing this so far, I am hesitant to keep trying various permutations- perhaps I will arrange to stop by the site some evening so that I can reboot as necessary without further pain.
I could utilize Accuterm to run down the path to Adobe Reader on the user's PC and then print from there, but then since I can't be sure of the printer name as installed on said PC I will probably need to use the /P switch (which brings up the Adobe Print dialog) instead of /T (which just prints to the specified printer without prompting) and I was hoping to make it more automated then that. (There does not seem to be a way to tell Adobe to just print using the default printer.)
Suggestions welcome,
/Scott Ballinger
Pareto Corpration
Edmonds WA USA
206 713 6006[Cross-posted to
u2ug.org]