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

Joined: 21 Apr 2003 Posts: 6
|
Posted: Wed Jul 02, 2003 8:13 pm Post subject: how do I find out how to access an interface from BASIC? |
|
|
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 |
|
 |
HalVaughan General User

Joined: 21 Apr 2003 Posts: 6
|
Posted: Sat Jul 05, 2003 9:32 pm Post subject: |
|
|
| 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 |
|
 |
|