Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.