We are trying to unit test our class that implements
ISmartDocument, and need to know how to get a references
to the ISmartDocument interface in the unit test method.

We can get a reference to the Word.Document interface
after creating the word app and opening a smart document
(file path hard coded for now). We are looking for a way
to get to the ISmartDocument interface to unit test the
methods.

Re: Reference to ISmartDocument by Lars-Eric

Lars-Eric
Wed Jan 07 13:02:09 CST 2004

Derek,

Can you elaborate a little bit more on what you are doing. You are actually
providing the Inteface in your SmartDoc Class. The ISmartDocument is just a
set of definitions that your Class must implement at code level so Word
doesn't try to call methods and properties that are not available in the
Class.

At runtime Word is frequently bombarding many of the methods, in certain
orders, with events.

--
Regards,
Lars-Eric Gisslén

"Derek Sanderson" <derek.sanderson@impact-tech.com> skrev i meddelandet
news:091e01c3d465$ead0be40$a601280a@phx.gbl...
> We are trying to unit test our class that implements
> ISmartDocument, and need to know how to get a references
> to the ISmartDocument interface in the unit test method.
>
> We can get a reference to the Word.Document interface
> after creating the word app and opening a smart document
> (file path hard coded for now). We are looking for a way
> to get to the ISmartDocument interface to unit test the
> methods.
>



Re: Reference to ISmartDocument by Lars-Eric

Lars-Eric
Wed Jan 07 13:04:56 CST 2004

Thomas,

If I remember correctly you use it to get values in the controls in the Task
Pane from the component. I don't have any code here so I can't check

--
Regards,
Lars-Eric Gisslén

"Thomas Winter" <Tom@NoSpam.AmosFiveSix.com> skrev i meddelandet
news:%23eY4cvU1DHA.1760@TK2MSFTNGP10.phx.gbl...
> "Derek Sanderson" <derek.sanderson@impact-tech.com> wrote in message
> news:091e01c3d465$ead0be40$a601280a@phx.gbl...
> > We are trying to unit test our class that implements
> > ISmartDocument, and need to know how to get a references
> > to the ISmartDocument interface in the unit test method.
> >
> > We can get a reference to the Word.Document interface
> > after creating the word app and opening a smart document
> > (file path hard coded for now). We are looking for a way
> > to get to the ISmartDocument interface to unit test the
> > methods.
>
> In Word 2003, the Document object appears to have a SmartDocument
property.
> Not sure what that really is though!
>
> -Tom
>
>



Re: Reference to ISmartDocument by Thomas

Thomas
Wed Jan 07 12:33:33 CST 2004

"Derek Sanderson" <derek.sanderson@impact-tech.com> wrote in message
news:091e01c3d465$ead0be40$a601280a@phx.gbl...
> We are trying to unit test our class that implements
> ISmartDocument, and need to know how to get a references
> to the ISmartDocument interface in the unit test method.
>
> We can get a reference to the Word.Document interface
> after creating the word app and opening a smart document
> (file path hard coded for now). We are looking for a way
> to get to the ISmartDocument interface to unit test the
> methods.

In Word 2003, the Document object appears to have a SmartDocument property.
Not sure what that really is though!

-Tom



Re: Reference to ISmartDocument by Thomas

Thomas
Wed Jan 07 12:30:49 CST 2004

"Derek Sanderson" <derek.sanderson@impact-tech.com> wrote in message
news:091e01c3d465$ead0be40$a601280a@phx.gbl...
> We are trying to unit test our class that implements
> ISmartDocument, and need to know how to get a references
> to the ISmartDocument interface in the unit test method.
>
> We can get a reference to the Word.Document interface
> after creating the word app and opening a smart document
> (file path hard coded for now). We are looking for a way
> to get to the ISmartDocument interface to unit test the
> methods.
>

microsoft.public.office.developer.smarttags might be a good group to ask
that question in. Just a thought!

-Tom