Excel

G

Guest

Hi I have an application using Excel class, the application working well in
my PC and while debuging.
But when I copy the executable file including :
1- Interop.Excel.dll
2- Interop.Microsoft.Office.Core.dll
3- Interop.VBIDE.dll

and then run the application I got the following message :
"System.Runtime.InteropServices.COMException (0x80040154): COM object with
CLSID {00024500-0000-0000-c000-000000000046} is eithe not valid or not
registered."
The application work fine ' just when I go inside the function using Excel I
recive the exception.
How can I registered those API (COM)? How can I solve this problem ?
 
G

Guest

I recive the following message for all the dll :

for example the Interop.Excel.dll :
"Interop.Excel.dll was loaded, but the DllRegisterServer entrypoint was not
found.
This file can not be registerd."
 
C

Carlos J. Quintero [.NET MVP]

regsvr32 can be used only for ActiveX (COM) dlls, not for .NET Assemblies.
To register an assembly for COM interop you must use the regasm.exe utility
of the .NET Framework instead.

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
M

Maciej Pietruszka

you shudnt try register interop*.dll but "oryginal" dlls (without
"interop" prefix)
 
W

Willy Denoyette [MVP]

Do you have Excel (the right version) installed on this PC?

Willy.
 
G

Guest

this is the right question :
Can I make an Excel file without having Excel in my PC ?
I want to create Excel file , then open the file in another PC.
As we can open and read from Access files in C# application without having
Access in this PC .
Maybe I should install somthing like MDAC for Excel ? if yes where can I
download it ? what is the name of the file ?
 
P

Peter N Roth

Excel will read just about anything.

My experience is: write a *.txt or *.csv, but save it
with the *.xls extenstion. I suppose you could do the
same with *.xml, but i have not tried that.

--
Grace + Peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com
Home of Matrix.NET
 
G

Guest

What about color and all Excel stuff ?

Peter N Roth said:
Excel will read just about anything.

My experience is: write a *.txt or *.csv, but save it
with the *.xls extenstion. I suppose you could do the
same with *.xml, but i have not tried that.

--
Grace + Peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com
Home of Matrix.NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top