| View previous topic :: View next topic |
| Author |
Message |
VancouverMike General User

Joined: 26 Apr 2011 Posts: 12
|
Posted: Thu May 10, 2012 3:38 pm Post subject: [Solved] Introspection not working? |
|
|
my delphi application supports Excel and OO.
i have installed OO 3.3 on windows 7 and was hoping to use XRAY to look for some things. BEWARE: although i have used XRAY before, it's long enough ago it's quite likely i have forgotten something.
my procedure to set this up has been something like this:
1. installed OO 3.3 (it works)
2. installed OO SDK 3.3
3. i installed XrayTool52.sxw (pressed the button, macros visible where they should be).
4. ran example application
ERROR: invalid variant type
var
insp, info1: Variant;
exists_getPropertyValue: Boolean;
begin { ------- TxrayForm1.extractProperties ------}
insp:= OOoIntrospection.inspect(thisObject);
exists_getPropertyValue:= insp.hasMethod('getPropertyValue', -1);
// vartype of "insp" is vt_dispatch
// ERROR: invalid variant type
info1:= insp.getProperties(-1);
procedure TxrayForm1.extractMethods;
var
insp, info1: Variant;
begin
insp:= OOoIntrospection.inspect(thisObject);
// vartype of "insp" is vt_dispatch
// ERROR: invalid variant type
info1:= insp.getMethods(-1);
can anyone suggest why this may be happening?
this all worked in windows XP a few years ago when i did this before...
thank you!
Last edited by VancouverMike on Fri May 11, 2012 10:45 am; edited 1 time in total |
|
| Back to top |
|
 |
B Marcelly Super User

Joined: 12 May 2004 Posts: 1414 Location: France
|
Posted: Fri May 11, 2012 7:23 am Post subject: |
|
|
Hi,
Same problem as here _________________ Bernard
OpenOffice.org 1.1.5 fr / OpenOffice.org 3.4.1 en-US + langpacks, MS-Windows XP Home SP3
This forum is unusable, use instead Apache OpenOffice forums |
|
| Back to top |
|
 |
VancouverMike General User

Joined: 26 Apr 2011 Posts: 12
|
Posted: Fri May 11, 2012 10:42 am Post subject: |
|
|
thank you for your reply. i had tried 3.4 but had not uninstalled 3.3. it works now. Thank you! |
|
| Back to top |
|
 |
|