I need to send some images to print to a printer, following is the code that have written in an SSIS package Active X script task, it works when I deploy it on SSIS and execute manually, it pops printing screen and sends the print and closes automatically, but when schedule a Job to the package, it does not send the print, where as the job completes successfully without giving any error.
Further noticed that the Kodakprv.exe
process appears in the taskbar whenever I execute the Job, it seems like the job launches the exe via DTS but can't process the printing behavior.
Please suggest.
Function Main()
Dim oWshShell
set oWshShell = CreateObject("WScript.Shell")
'msgbox """c:\progra~1\imagin~1\kodakprv.Exe""" + " /pt " + """D:\SQLDev\Dlls\Testing.TIF""" + " " + """\\Galactica\C-Test1"""
oWshShell.Run("""c:\progra~1\imagin~1\kodakprv.Exe""" + " /pt " + """D:\SQLDev\Dlls\Testing.TIF""" + " " + """\\Galactica\C-Test1""")
End Function