How to find object name and properties
Keywords: OLE Viewer object
Question:
I've got an application (GUS Display Builder provided by Honeywell) and I would like to manipulate its objects with OLE. The problem is that I don't know anything about the properties' name of the objects of this application.I've tried:
db=objectopen("GPB.Application.1")and it works! but now I need to create a sheet inside, how?
In the windows registry i've found this entries:
GPB.Application.1 GPB.Application.3 GPB.Document.1 GPB.Document.3I've tried:db.DocumentBut winbatch errored with "ole object doesn't exist"Is there a good way to find out all the properties names and methods for GPB.Application.1 for example?
Thank you very much.
Answer:
Ideally you would want the vendor documentation to do stuff like that.However if you cannot obtain that documentation you could try the following:
- If you have it, open MS Excel (blank workbook),
- hit alt-f11 and it'll take you to the VBA editor,
- go up to INSERT menu and insert a Module,
- go up to TOOLS menu and click REFERENCES,
- go down the list and see if the Honeywell app is listed (some may be cryptic), if it is check it.
- Now use the object browser, select the Honeywell app and then it should display all objects/methods provided.
- Look for an "application object" and then do searches on the ops you need to perform (like "add, file, save, create..."
It might be in there.
Article ID: W14907