Late Binding Excel: Exception when use FreezePanes to format a she

B

BeatH

Hi

I implemented c# application which writes an excel sheet and formats the
sheets with late binding. Everything works fine.
So I distributed the application. But on another system the following snippet

aParameterList = new Object[1];
aParameterList[0] = "true";
aActiveWindow.GetType().InvokeMember("FreezePanes",
BindingFlags.SetProperty,
null, aActiveWindow, aParameterList);

throws an exception
"Unable to set the FreezePanes property of the Window class"

I compared the involved dll's and PIA but didn't find a difference.
What do I need to check to locate the problem?

Any hint is appreciated. Thanks
Beat
 

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