Group:  Microsoft Excel ยป microsoft.public.excel.interopoledde
Thread: Attempted to write protected memory error when doing Excel automation

Attempted to write protected memory error when doing Excel automation
"robin" <binhualu[ at ]gmail.com> 3/30/2007 2:54:37 AM
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

Re: Attempted to write protected memory error when doing Excel automation
"robin" <binhualu[ at ]gmail.com> 3/30/2007 3:24:04 AM
On Mar 30, 10:54 am, "robin" <binhu...[ at ]gmail.com> wrote:
[Quoted Text]
> 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.

Home | Search | Terms | Imprint
Newsgroups Reader