CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    6

    Calling a Word, Write Notepad from a dialog

    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


  2. #2
    Guest

    Re: Calling a Word, Write Notepad from a dialog

    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
    [email protected]
    (using anonymous because registration is failing for some reason)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured