CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    Problem with OLE (Word)

    Hello,

    I get from one document the content with GetFormattedText and set it in an other with SetFormattedText.

    I use
    Code:
    LPDISPATCH dp = doc1.GetFormattedText(); ... doc2.SetFormattedText(dp);
    Is the use of LPDISPATCH correct? E.G. doc1.GetApplication() returns a LPDISPATCH, but it is a _Application. What is it for GetFormattedText?


    Michael

  2. #2
    Join Date
    Mar 2002
    Location
    Izhevsk, Udmurtia, Russia
    Posts
    930
    Why not? It's the Range interface which derives from IDispatch. Hence you are in your right.
    With best wishes,
    Vita
    -----------------------
    Russian Software Development Network -- http://www.rsdn.ru

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