Feb 22, 2006 #1 kramers Programmer May 10, 2004 26 US Is it possible to use a stored procedure to launch another program? Specifically I'm trying to use a stored procedure to open/print a Crystal Reports report.
Is it possible to use a stored procedure to launch another program? Specifically I'm trying to use a stored procedure to open/print a Crystal Reports report.
Feb 23, 2006 #2 Pikkunero Programmer Aug 18, 2004 76 FI Here might be something that you need although you need to register to download the source code for this. http://www.codeproject.com/database/xyprocedure.asp Upvote 0 Downvote
Here might be something that you need although you need to register to download the source code for this. http://www.codeproject.com/database/xyprocedure.asp
Feb 23, 2006 Thread starter #3 kramers Programmer May 10, 2004 26 US This is what I did in the event anyone should care. CREATE PROCEDURE [Print Report] (@filename VARCHAR(400)) AS Begin Declare @command varchar(400) set @command = 'master..xp_cmdshell ''"c:\Program Files\Adobe\Acrobat 7.0\Reader\acrord32.exe" /p /h ' + @filename + '''' exec (@command) end Upvote 0 Downvote
This is what I did in the event anyone should care. CREATE PROCEDURE [Print Report] (@filename VARCHAR(400)) AS Begin Declare @command varchar(400) set @command = 'master..xp_cmdshell ''"c:\Program Files\Adobe\Acrobat 7.0\Reader\acrord32.exe" /p /h ' + @filename + '''' exec (@command) end