Turbo Fredriksson wrote:
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?
I don't know of any way, but I'm no expert, I stopped investigate this, when I started to use the "java" way of doing things (most of my code was developed in java anyway)
but with OOo 2 betas (1.9.x) you might be able to use the above code with little rewriting as a bsh script (bsh is scripting with java) which I think you can include inside your document..
/Christian Andersson --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
