OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[Solved] Introspection not working?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
VancouverMike
General User
General User


Joined: 26 Apr 2011
Posts: 12

PostPosted: Thu May 10, 2012 3:38 pm    Post subject: [Solved] Introspection not working? Reply with quote

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
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Fri May 11, 2012 7:23 am    Post subject: Reply with quote

Hi,
Same problem as here
_________________
Bernard

OpenOffice.org 1.1.5 fr / Apache OpenOffice 4.0.1 / LibreOffice 4.1.0
MS-Windows 7 Home SP1
This forum is spammed, use instead Apache OpenOffice forums
Back to top
View user's profile Send private message Visit poster's website
VancouverMike
General User
General User


Joined: 26 Apr 2011
Posts: 12

PostPosted: Fri May 11, 2012 10:42 am    Post subject: Reply with quote

B Marcelly wrote:
Hi,
Same problem as here


thank you for your reply. i had tried 3.4 but had not uninstalled 3.3. it works now. Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group