Jul 25, 2002 #1 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!
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!
Jul 26, 2002 #2 mbalent Programmer Sep 20, 2001 853 US 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. Upvote 0 Downvote
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.