Attempted to write protected memory error when doing Excel automat

R

Robin

Hello Guys,

It's very strange to have such problem when i want to write an excel using C#.

The program is developed in XP sp2 (english), .NET framework 2.0, Office
2003(english). It just works fine.

But when i put it to XP sp2 (traditional chinese), Office 2003 (traditional
chinese). NetFramework2.0, the program just gives this error, without writing
anything to the excel file.

I am suspecting the different language version of OS & Office cause this
problem. Does anyone has any idea?

P.S. I copied all the dlls into the computer. They are like below,

Interop.Excel.dll
Interop.Microsoft.Office.Core.dll
Interop.Office.dll

Thanks!
BR,
Robin
 

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