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.
>