about Importing Microsoft.Office.Interop

  • HI,

    I hava a problem about adding library to Script Task.

    I wanna use "Microsoft.Office.Interop." to handle Excel file, so I tried to add

    "Microsoft Excel 11.0 Object Library."

    But I couldnt fine it. Im using SQL Server 2005 Standard Edition.

    is this because Im using a wrong version or version doesnt matter?

    Could someone tell me how to add this Library please?

    thank you.

    tomoko

  • I believe you will need to install the pffice primary interop assemblies (which puts them into the GAC) and then copy the relevant DLLs you want to apprear in the Add Reference dialog to the .NET Framework folder on your box - e.g. %windir\Microsoft.NET\Framework\v2.0.50727.

  • hi, Paul_J.

    thank you for replying.

    I understand that I need to install the office primary interop assemblies.

    To get those, do I have to install Excel on SSIS Server since I havent installed it yet.

    or is it possible to just downlord interop assemblies from website?

    thank you.

    tomoko

  • I think you will need Excel installed on the server where the ssis package will run.

  • hi, Paul_J.

    thanks.

    Yeah, I did installed Excel and I could use it.

    But I end up not using Excel library,,,

    Because, when I use Excel library in Script task, proccessing time was

    very slow. I was going to use it for deleting unused Excel sheets after inserting Data or for creating sheets.

    I decided to put Macro in Excel.

    anyway, thank you.

    tomoko

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply