Solved

SCHEDULE TASK

Posted on 1998-10-09
1
275 Views
Last Modified: 2010-08-05
The name of my executable file is "Auto PrintQueue.EXE"
(This program opens  MS Word Application and does Mailmerge for different documents & prints it to the printer and closes all the documents and ultimately closes Word application)
This program runs great if run it manually.
If I schedule the task to run in SQL server, the program execution starts but never closes MS word application and prints the results.
Any help is appreciated

Thanks
0
Comment
Question by:Sumana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
bamartino earned 50 total points
ID: 1090480
Open application with autoprintqueue.exe but inside Word create an autoexec macro to do the rest including closing Word.
You can run any application that supports autoexec macros/batches just using xp_cmdshell extended stored procedure.
0

Featured Post

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question