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

how do I find out how to access an interface from BASIC?

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


Joined: 21 Apr 2003
Posts: 6

PostPosted: Wed Jul 02, 2003 8:13 pm    Post subject: how do I find out how to access an interface from BASIC? Reply with quote

I want to be able to get a list of printers from a OOo BASIC program.
I've found examples for similar actions in Java, but no examples in
BASIC and not enough background for me to see how it's done (I'm sure
object ortiented programmers would find this much easier to
understand).

I've found an interface called xPrinterServer. It's listed in the SDK
(in the IDL guide for the API) under com::sun::star::awt and it is
supposed to be provided by xInterface. The problem is I cannot figure
out what object or service to create so I can actually use any methods
in xPrinterServer.

If anyone has done this in BASIC and has an example of getting a list of
printer objects, that would help.

If not, it would help (and probably help me more in the long run) if
someone could tell me what object or service provides xPrinterServer
and how I would have gone about finding that information on my own.

Thanks for any suggestions!

Hal


(BTW, the Java examples I've found access xInterface, but don't seem to give me access to XPrinterServer.)
Back to top
View user's profile Send private message
HalVaughan
General User
General User


Joined: 21 Apr 2003
Posts: 6

PostPosted: Sat Jul 05, 2003 9:32 pm    Post subject: Reply with quote

Just FYI, for anyone searching and finding this topic, I found out from a Sun programmer that the xPrinterServer interface is NOT available to any objects that can be created under OOo BASIC.
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