[this mail was previously sent to the user list. Sending it here
instead/as well becuse of more on-topic here]
Quoting Christian Andersson <[EMAIL PROTECTED]>:
> when I asked about this a long time ago, I was told that ther is no
> such thing in openoffice and I should use the api of the language to
> do this.
> for example if you are using java, use the java-api for finding the printers
> the code below might help you if you are using java
> public String[] getDefinedPrintersOnServer(){
> PrintService[] printers =
> printServiceLookup.lookupPrintServices(null,null);
> String[] data = new String[printers.length];
> for(int i=0; i<printers.length; i++){
> data[i] = printers[i].getName();
> }
> return data;
> }
>
> to be able to use these printers in openoffice (in va 1.1.x atleast,
> hav enot checked with the 1.9 series) you might have to add < and >
> around the name... so if you get "Hp color jet" from the system call,
> to be able to use it in openoffice you might have to supply the name
> "<Hp color jet>"
Is there any way to do this in OOo BASIC?
--
Cocaine South Africa Nazi Semtex cracking iodine jihad Serbian 767 KGB
Ortega Kennedy terrorist Ft. Meade fissionable
[See http://www.aclu.org/echelonwatch/index.html for more about this]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]