XMLNameSpaces.Add

D

DJ Reynolds

The vba code only uses 1 parameter (path) to add a schema to the application.

In C# it is requiring all 4 parameters. (path, namespaceuri, alias, bool).
Any good example performing this in C#? I don't care to use all the
parameters, but I may be forced to. thanks for any input.

Dan
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?REogUmV5bm9sZHM=?=,
The vba code only uses 1 parameter (path) to add a schema to the application.

In C# it is requiring all 4 parameters. (path, namespaceuri, alias, bool).
Any good example performing this in C#? I don't care to use all the
parameters, but I may be forced to.
In C# you ALWAYS need to use ALL parameters, although you can usually get away
with

obj refMissing = Type.Missing

Then using this for any parameters you don't want to declare specifically. See

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_t
a/html/OffCSharp.asp

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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