Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PowerBuilder vs VB syntax

Status
Not open for further replies.

kenroush

Programmer
Jan 16, 2002
26
US
Can anyone tell me how to come up with the PowerBuilder syntax to manipulate a Word document using ole. I can't find anything that makes any sense!
 
Here is an example for assigning text to bookmarks within a Word document.

In this example I have already created and established a connection to Word.

// opens the word doc

iole_word.Documents.open(ls_file_name)

iole_word.activedocument.bookmarks.item('buyertext').range.text = ls_buyernote
iole_word.activedocument.bookmarks.item('text').range.text = ls_data
iole_word.activedocument.bookmarks.item('legend').range.text = '* C - Cancel'

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top