devxlogo

OLE Commands for Powerbuilder to Word/Excel

OLE Commands for Powerbuilder to Word/Excel

Question:
I was wondering if there is a list available somewhere of all the commands with their syntax for OLE? I want to manipulate Word and Excel from inside Powerbuilder without using the standard plug-ins.

Answer:
There are two places to look for the commands and their syntax. The first place is the Browser window in PowerBuilder. Click on the OLE tab and search for the OLE object you want to manipulate and all the commands and properties will be there.

While that works fine for simple controls, Word and Excel are a different kettle of fish. The best way to automate these tools is to use the macro recorder facility.

Fire up Word and switch on the macro recorder, then do the step you want to automate. Switch off the recorder and take a look at the macro that was recorded. This will give you all the commands you need to perform the taks.

Then its just a simple matter of converting them over to PowerBuilder, which after a few times is relatively simple.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist