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

留言

熱門文章