Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: COM/DCOM/COM+
Expertise: Beginner
Jun 15, 1999



Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js

OLE Commands for Powerbuilder to Word/Excel

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.

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.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date