473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problem with interop.excel.dll

Hi

I have a problem with a dll mentioned in subject.

When I developed my app everything was OK but when I copied it to another
comp program crashed while trying to create an excel object.

I developed it on comp with w2k and office 2k3 and tried it out on w98 and
office 97.

Unfortunatly I don't gave the hole exception message.

Any guesses what may be wrong? Do I have to register this dll? Like I said I
just copied it. I tried to register it with regsrv32 but it came out with an
error message saying that the dll file is incorrect. :-(
samos
Nov 17 '05 #1
3 6772
Exactly. Your project has a reference to the office 2003 version of Excel.
Your application won't run properly on machines without office 2003. You
may need to adjust your application to support 97 by reference it instead.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net

"samos" <sa***@op.pl> wrote in message
news:d5**********@sunflower.man.poznan.pl...
Hi

I have a problem with a dll mentioned in subject.

When I developed my app everything was OK but when I copied it to another
comp program crashed while trying to create an excel object.

I developed it on comp with w2k and office 2k3 and tried it out on w98 and
office 97.

Unfortunatly I don't gave the hole exception message.

Any guesses what may be wrong? Do I have to register this dll? Like I said
I
just copied it. I tried to register it with regsrv32 but it came out with
an
error message saying that the dll file is incorrect. :-(
samos

Nov 17 '05 #2
Hi,

i also had same problem when i was using Outlook, but when i copied my old
dlls in bin directory it was working fine. you also could do the same. take
your dlls (2k3) and put into client's system (din dir).

Thanks
Ritesh

"samos" wrote:
Hi

I have a problem with a dll mentioned in subject.

When I developed my app everything was OK but when I copied it to another
comp program crashed while trying to create an excel object.

I developed it on comp with w2k and office 2k3 and tried it out on w98 and
office 97.

Unfortunatly I don't gave the hole exception message.

Any guesses what may be wrong? Do I have to register this dll? Like I said I
just copied it. I tried to register it with regsrv32 but it came out with an
error message saying that the dll file is incorrect. :-(
samos

Nov 17 '05 #3
You may need to make an Interop assembly that will work across all versions of
Excel. See http://www.devcity.net/Articles/163/1/article.aspx

--scott

--
"samos" wrote:
Hi

I have a problem with a dll mentioned in subject.

When I developed my app everything was OK but when I copied it to another
comp program crashed while trying to create an excel object.

I developed it on comp with w2k and office 2k3 and tried it out on w98 and
office 97.

Unfortunatly I don't gave the hole exception message.

Any guesses what may be wrong? Do I have to register this dll? Like I said I
just copied it. I tried to register it with regsrv32 but it came out with an
error message saying that the dll file is incorrect. :-(
samos

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve B. | last post by:
Why does Office create a compile error when doing a Release compile but not when doing a Debug complie. Release compile is compiled to the network share drive - Excel Interop is added as a...
4
by: Robert | last post by:
I have created a .dll in C# which has a reference to Excel. When I add a strong name to the .dll in the AssemblyInfo.cs and try to rebuild, I get the following error: Assembly generation failed...
2
by: Alex D. | last post by:
Hi .I cant seem to find a way to authorize asp.net user to create an Excel application using this: Microsoft.Office.Interop.Excel.ApplicationClass excel = new...
4
by: goonsquad | last post by:
I'm writing an Excel Automation app and I'm running to a problem early on with what should be a basic step. Dim oExcel As Object Dim oBook As Object Dim oSheet As Object Dim oRng As...
2
by: jereviscious | last post by:
Hi all - Last resort time. I'm importing data from a spreadsheet that I receive from one of my vendor using interop.excel. The date field in excel is entered as 4/7/2006, but when I retrieve...
5
by: srinivas | last post by:
Hi, I have a ASP.net application which takes excel sheet as input.It retrieves the data from the excel sheet and using that data it generates reports. On my PC everything is working fine.But if...
1
by: No_Spam | last post by:
I'm using Microsoft Excel Object 11.0 (Microsoft.Office.Interop.Excel) to open excel from my web application and set few cells values before displaying it to users. When I deployed the website to...
2
by: Nicholas Dreyer | last post by:
The following error Run-time exception thrown : System.Runtime.InteropServices.COMException - Error loading type library/DLL. happens while running the code listed at the bottom of this...
0
by: Bill Fallon | last post by:
I am developing a VB.Net application with VS 2005 that opens an Excel workbook and populates the worksheet with data. I started developing the application with Office 2007 installed on my Vista...
2
by: GS | last post by:
I have installed the ms PIA for ofc XP, and followed the article http://support.microsoft.com/kb/247412/ trying to paste into a worksheet However I got late binding not allowed errors .......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.