Discussion:
Attempted to write protected memory error when doing Excel automation
(too old to reply)
robin
2007-03-30 02:54:37 UTC
Permalink
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
robin
2007-03-30 03:24:04 UTC
Permalink
Post by 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
I am sorry, the other PC installed office 2000, which maybe a problem
for my program.

Loading...