473,396 Members | 1,707 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,396 software developers and data experts.

Excel export does not work on other computers

Hello everybody,

I have implemented a windows form in C# .NET to export data from a listbox
to Excel. I work on a Windows XP machine with Office 97 and .NET framework
1.1 SDK installed. I use Visual Studio .NET 2003, German version, Service
Pack 1. The Excel Export works fine on my developement machine, but I
cannot export data into Excel on other computers.
I tried to run the program on 2 other machines. One is a Windows XP and the
other a Windows 2000 system. Both computers have MS Office 97 (the same
version as on the development machine) and .NET framework 1.1 SDK installed
and I have administrator rights.

I found out that the command:

Excel.Application oXL;
oXL = new Excel.ApplicationClass();

is passed without errors, but when I try to set or change any attributes of
Excel object, f.e.

oXL.Visible = false;

I get an exception saying "Error HRESULT: 0x8007FA08. Line: Interop.Excel
at Excel.ApplicationClass.set_Visible(Boolean RHS)\r\n"

I already read many postings for similar issues, but none of the solutions
worked for me:
I checked the rights of the ASP.NET user on both machines, the permissions
are same as on my developement machine. I also checked if maybe the culture
settings are incorrect (there is a Microsoft support article about that),
but my Visual Studio version is in German, my MS Office 97 is in German and
the computer's region settings are also set to German.
I even installed Visual Studio .NET on the Win2000 computer and compiled
the source files again on this machine, but I still get the same error.

Does anybody have any idea what causes this error or what else I can try ?

Thanks in advance,

Robert
Nov 17 '05 #1
0 1438

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

Similar topics

4
by: Andre | last post by:
I'm not sure if this is the best place for this post or not, but I can't find many asp newsgroups anymore. I have an app that's 3-4 years old, and has been working just fine. One of the pages...
2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
6
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel...
2
by: Kenneth | last post by:
How do I remove the limitation in Access that deny me from exporting 24000 rows and 17 columns (in a query) into Excel? Kenneth
2
by: Regnab | last post by:
I've got my code working so that it'll count the number of columns in the table and move across (eg Range A-P and then range Q-W). Problem is when I get to the end of the single letters and get...
0
by: Max Mayer | last post by:
Hello everybody, I have implemented a windows form in C# .NET to export data from a listbox to Excel. I work on a Windows XP machine with Office 97 and .NET framework 1.1 SDK installed. I use...
3
by: David Reynolds | last post by:
Does anyone know how I could stream Excel to the browser for download without saving the file somewhere first. I wasn't sure how I would go about it.
0
by: dana lees | last post by:
Hello, I am developing a c# asp.net application. I am trying to export a datagrid to excel by using: Response.Clear(); Response.Buffer= true; Response.ContentType =...
1
by: smaczylo | last post by:
Hello, I've recently been asked to work with Microsoft Access, and while I feel quite comfortable with Excel, I'm at a complete loss with databases. If someone could help me with this issue I'm...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.