Click to See Complete Forum and Search --> : Calling a Word, Write Notepad from a dialog


dharnidhar
April 5th, 1999, 03:36 AM
Hi,
How do I call a Word or a Write or a Notepad using a COM interface. If it is a big lengthy what other way is it possible.
Thanks and Regards
Dharnidhar

April 6th, 1999, 08:27 AM
Hello,

Here are a couple ways:

1. If you want your program to have access to words member functions then, create a class using the msword8.olb file. Go to class wizard. Select Add class from type lib. Remove the underscore and click ok. This is called Automation.

2. Create a dispatch interface (More difficult) (need source just email)

3. If you just want a call to popup word or write, how about an old fashion call to winexec() ?? You can call that from an interface.

Later,
Jesus
santaje@pb.com
(using anonymous because registration is failing for some reason)