all groups > dotnet interop > october 2004 >
You're in the

dotnet interop

group:

tlbimp on Excel9.olb


tlbimp on Excel9.olb Tim Marsden
10/27/2004 4:31:28 PM
dotnet interop:
Hi,

I hoping am using Tlbimp Excel9.olb to generate the office.dll and excel.dll
so i can then use ilasm to created the ils to modify.
However I get the message "Tlbimp error: System.IO.FileNotFoundException -
File or assembly name Microsoft.Vbe.Interop, or one of its dependencis, was
not found."

Any suggestions.

Tim

RE: tlbimp on Excel9.olb v-phuang NO[at]SPAM online.microsoft.com (
10/28/2004 3:10:06 AM
Hi Tim,

Have you tied to use the IDE to generate the interop assembly?
i.e. in the IDE/add reference dialog, add a COM reference to the microsoft
excel 9 library to generate the assembly.

Also if you wants to generate the office.dll, we need to add a COM referece
to the mso.dll while not the excel 9 library dll.
Usually it is found at the folder below.
C:\Program Files\Common Files\Microsoft Shared\Office9

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Re: tlbimp on Excel9.olb Tim Marsden
10/28/2004 10:03:33 AM
Thanks,

Its all because I want to generate a Interop.excel.dll with a strong name.
The instruction given to me where to use Tlbimp excel.olb to generate the
two assemblies, Excel.dll and Office.dll.
I will try the ones generated by IDE,

thanks
Tim

[quoted text, click to view]

Re: tlbimp on Excel9.olb v-phuang NO[at]SPAM online.microsoft.com (
10/29/2004 7:59:37 AM
Hi

I look forward to hearing from you.
Also I think you may try to take a look at the tool below which will help
us to strongname an assembly.
Assembly Linker (Al.exe)
/keyf[ile]:filename
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpgrfassemblygenerationutilityalexe.asp

Strong name assemblies can keep you out of DLL Hell
http://builder.com.com/5100-6373-5054496-3.html

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Re: tlbimp on Excel9.olb Tim Marsden
10/29/2004 10:14:20 AM
Many thanks

Success.
To stong name Interop.Excel.dll :
First create an Interop.Offices.dll with a strong name using ilasm.
Find the public key token used with sn -T
Change the Excel.il to insert the office public key token refernece.
Create Interop.Ecel.dll using ilasm.

Regards Tim



[quoted text, click to view]

Re: tlbimp on Excel9.olb v-phuang NO[at]SPAM online.microsoft.com (
11/1/2004 1:45:41 AM
Hi

Cheers! :)

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button