cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

hello sir/madam

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

regards

Ken

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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