471,306 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

C# Excel file can't be opened normally

Hi,

My C# Windows Form application has a form frmExcel which will write data to
an Excel 2000 file MyExcel.xls.
But if the application is still runnig then the MyExcel.xls can not be
opened normally.
The MS Excel 2000 will be opened, but there's no WorkBook(or WorkSheet)
inside the Excel,
if I stop running the application, the the MyExcel.xls can open normally.
What do I need to fix this problem?
Also, if the MS Excel is running the MyExcel.xls, then the frmExcel can't
write data to MyExcel.xls, it will result in errors.
What do I need to fix this problem?
Any help will be appreciated.

Jason
Dec 14 '05 #1
1 1357
Jason Huang wrote:
Hi,

My C# Windows Form application has a form frmExcel which will write data to
an Excel 2000 file MyExcel.xls.
But if the application is still runnig then the MyExcel.xls can not be
opened normally.

<snip>

Several questions:
- are you using a third party library or have you written the code yourself?
- are you making sure to close any open files in your program?

--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2
Dec 14 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by S_K | last post: by

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.