Dependent on PIA's

N

Nick

Hi there,

I have an Office Addin that I would like to change so that it is not
dependent on .NET programability support. I'm just after finding out the
quickest way of achieving this, should I remove all .NET references to
office and just use late binding. But this way how do I get a reference to
the Office namespace? Is there a specific COM library that I need to
include? Cheers!
 
N

Nick

Hi again,

The reason I need a reference to the Office namespace is so that I can
use the type references

"MsoControlType.msoControlButton" and
"MsoButtonStyle.msoButtonIconAndCaption"

I'm presuming I can get the style type from the buttons Style property,
i.e.

<buttonobj>.Style.MsoButtonStyle.msoButtonIconAndCaption ? Although I'm
not positive until I have got the type refrence to msoControlButton.

Any ideas? Thanks loads in advance.

Nick.
 
N

Nick

Hi again..again,

I'm now reading
http://www.codeproject.com/csharp/ZetaLateBindingComEvents.asp for
reference.

Nick.

Nick said:
Hi again,

The reason I need a reference to the Office namespace is so that I can
use the type references

"MsoControlType.msoControlButton" and
"MsoButtonStyle.msoButtonIconAndCaption"

I'm presuming I can get the style type from the buttons Style property,
i.e.

<buttonobj>.Style.MsoButtonStyle.msoButtonIconAndCaption ? Although
I'm not positive until I have got the type refrence to msoControlButton.

Any ideas? Thanks loads in advance.

Nick.
 
N

Nick

Hi there,

After reading the article I am still slightly confused as to what I need
to reference in order to use the COM equivilent of the Microsoft.Office.Core
namespace rather than the .NET assembly that's registered in the GAK. This
article although it doesnt require any PIA's it doesnt actually need the
core office types in order to create a toolbar button etc.

Does anyone have an example of an office add-in that uses types from the
core office namespace yet doesnt require the office PIA's? Thanks loads in
advance.

Nick.

Nick said:
Hi again..again,

I'm now reading
http://www.codeproject.com/csharp/ZetaLateBindingComEvents.asp for
reference.

Nick.
 

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