dbTalk Databases Forums  

Running Excel .dll

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Running Excel .dll in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
javathehutt
 
Posts: n/a

Default Running Excel .dll - 07-12-2006 , 07:13 PM






Hi Folks

I will be running my DTS program and calling Excel Macro functions and
performing Excel Cell Value checking on a server that does not have
Excel installed.

1. Is it possible to just install the Excel dll.
2. What is the name of the Excel dll I should install.
3. Which directory and location should I copy this Excel dll to.
4. Do I run my programs any differently?
5. Are there any other potential problems I should be aware of?

Here is a sample of my code:

Function Main()

'References to Excel
dim xl_app
dim xl_Spreadsheet
dim wkb
dim wks
Set xl_app = CreateObject("Excel.Application")
Set xl_spreadsheet =
xl_app.Workbooks.Open("\\archive\Daily\Report.xls" )


xl_app.DisplayAlerts = False


'Run the macro
If IsEmpty (
xl_app.Workbooks(1).Worksheets("Results").Range("A 2").value
) then
xl_app.Run("transform_macro")
End If
xl_spreadsheet.Save
xl_spreadsheet.Close
xl_app.DisplayAlerts = True
xl_app.Quit
set xl_app = Nothing
Main = DTSTaskExecResult_Success
End function


Please help! Thanks


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.