ole-object-example
Code Examples
For all following examples the PowerBuilder OleObject is assumed to have already been create dynamically with:
OLEObject ole_object
ole_object = CREATE OLEObject
If you use the PowerBuilder OLE control (ole_1) you must remember to include the "object" constant before accessing Microsoft Word objects, properties, and functions.
i.e.
myinteger = ole_1.object.application.Activedocument.kind
or
ole_1.object.application.Selection.Font.Italic = TRUE
For all following examples the PowerBuilder OleObject is assumed to have already been create dynamically with:
OLEObject ole_object
ole_object = CREATE OLEObject
If you use the PowerBuilder OLE control (ole_1) you must remember to include the "object" constant before accessing Microsoft Word objects, properties, and functions.
i.e.
myinteger = ole_1.object.application.Activedocument.kind
or
ole_1.object.application.Selection.Font.Italic = TRUE
留言
張貼留言
您好:
歡迎到訪我的Blog,這裡有我的生活經驗、美好的回憶和程式開發經驗分享~
目前努力學習Swift中,希望你會喜歡Swift!
如果可以也請你留言給我一個鼓勵喔!
謝謝