Skip to Content
avatar image
Former Member

hello,how do I read and write the microsoft office word document with Powerbuilder?

hello sir/madam

       is there any library for Powerbuilder or C++ to read or write a microsoft office document?any suggestion?

regards

Ken

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 15, 2015 at 01:36 PM

    Hi Ken;

      You can ...

    1) Use FileReadEx ( ) etc commands to perform low-level data manipulations for an MS-Word file.

    2) Use the RichText feature of PB to import and export MS-Word documents & their revisions by converting a .DOC file to .RTF and then back again.

    3) Use a 3rd party ActiveX control to interface with an MS-Word file directly.

    4) Use MS-Word within a PB application directly using OLE.

    HTH

    regards ... Chris

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2015 at 02:01 PM

    Using OLE Automation to fill named bookmarks in the .doc is the most common way to interact with MS Word.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 23, 2015 at 03:31 PM

    https://msdn.microsoft.com/en-us/library/ee861527.aspx gives you a reference for the Word object model. The OLE target is "word.application".

    Add comment
    10|10000 characters needed characters exceeded