microsoft.office.interop.word reference? (C#)

R

Rob

I apologise in advance for what I'm sure should be a pretty basic question,
but does anyone know where I can find a complete reference for the syntax of
calls to the microsoft.office.interop.word assemblies in C#? I've been
looking through the MSDN libraries and Google for a couple of hours now for
how to use the XMLTransform argument to Documents.Open, and so far the best I
can do is:

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.documents.open(VS.80).aspx

Which describes XMLTransform as:

Optional Object. Specifies a transform to use.

Fantastic! But what _kind_ of object do I put in there? _How_ is it
supposed to specify a transform to use? I expect I can find the answer
myself if I can just find a complete reference somewhere...

Thanks for any help,

- rob.
 
C

Cindy M.

Hi Rob,
I apologise in advance for what I'm sure should be a pretty basic question,
but does anyone know where I can find a complete reference for the syntax of
calls to the microsoft.office.interop.word assemblies in C#? I've been
looking through the MSDN libraries and Google for a couple of hours now for
how to use the XMLTransform argument to Documents.Open, and so far the best I
can do is:

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.documents.open(VS.80).aspx
Mmmm. Can't say I think much of the information on that page. Unclear and misleading. The code
from MarcT in the Community content is what you need, as far as the actual syntax goes.

I believe the XMLTransform parameter should be a file path (in string form) to the XSL transform
you want to use to transform an XML file to Word 2003 XML file format (WordProcessingML).

As to why it has to be typed as an object, see the following and related links in the article:
http://msdn.microsoft.com/en-us/library/ms178843.aspx
Which describes XMLTransform as:

Optional Object. Specifies a transform to use.

Fantastic! But what _kind_ of object do I put in there? _How_ is it
supposed to specify a transform to use? I expect I can find the answer
myself if I can just find a complete reference somewhere...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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