Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ktao
  •  ktao
  • No customer Topic Starter
2010-05-20T00:48:02Z
I am trying to get a command executed in a task.

The command goes like this:
C:\Program Files (x86)\ClassExec\classexec

with arguments:
--action Print

for printing a word 2k7 document on Windows 7 (final destination Server 2003).

A working Run command looks like this:
C:\Program Files (x86)\ClassExec\classexec "C:\test\docxtest\Printer1 - Printer Test 12A.docx" --action print

As I cannot figure out how to see the command that VisualCron is executing, I am unable to determine if VisualCron is putting the filename in the command. The filename must go before the parameter or else Classexec throws a "file not found error."

Anyone have any suggestions as to how I go about doing that?

I have tried adding in "{TRIGGER(Active,LastTrigger,File.Result.FullPath)}" before the parameter, but I am seeing a "[Result not set for: TRIGGER(Active,LastTrigger,File.Result.Fullpath)]" (Classexec is reporting that as the filename and throwing an incorrect filename error).

I have also tried setting the task to "print document". Allowing autodetect prints gibberish and selecting word says "Job completed succesfully", but prints nothing.


Thanks
- Kane
Sponsor
Forum information
Support
2010-05-20T09:21:12Z
Command should be: C:\Program Files (x86)\ClassExec\classexec
Argument: "C:\test\docxtest\Printer1" - Printer Test 12A.docx" --action print

I am not 100% about your argument because you have a starting " but no ending ".

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ktao
  •  ktao
  • No customer Topic Starter
2010-05-20T16:14:03Z
Thanks Henrick. I, however, need the filename to be dynamic, passing in the file(s) that triggered the cron. Is there any way I can see the command being issued or understand why the [TRIGGER()] is failing?

Support
2010-05-20T19:29:56Z
The Variable should be OK - are you sure you are not running the Job manually instead of use a real world example (copying a file to that location)?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ktao
  •  ktao
  • No customer Topic Starter
2010-05-20T21:53:48Z
Our test uses a file dropped into the folder to trigger the job. The job is executing, just calling classexec correctly. I was able to change the mehodology to copy/delete to a temp folder, urnt classexec with a wildcard and print that way, but realized that wihout the "print" action of VisualCron, I have no way to specify a printer. Have you guys successfully tested VisualCron print in Windows 7 with Word 2007?
Support
2010-05-25T15:18:39Z
Why do you not use the Print Task?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ktao
  •  ktao
  • No customer Topic Starter
2010-05-25T17:01:18Z
The print functionality of VisualCron is dumping the docx directly to the printer without kicking off Word when set to auto detect. When set to Word, VisualCron is touching the file, but no job is submitted to the queue, outputted on the printer and we never see Word pop up. We could not get the print functionality to work properly so we tried other options.
Support
2010-05-25T23:40:39Z
We just tested to print .docx-file (Word 2007) from Windows 7. It was indeed a problem with automatic detection however when specifying Word it did print correctly. We have fixed the auto detect for the next version.

You should not see a Word popup. That is the whole reason of running it in the background.

If you want some foreground functionality you need to use the Execute Task in Foreground mode.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top