Hi Tom,

>>I have one more question. I use following code for printing (I have it
>>from the Dev-Guide):
>>
>>-----%<-----
>>        XPrintable xPrintable = (XPrintable)
>>                UnoRuntime.queryInterface(XPrintable.class, xDoc);
>>        PropertyValue[] printerDesc = new PropertyValue[1];
>>        printerDesc[0] = new PropertyValue();
>>        printerDesc[0].Name = "Name";
>>        printerDesc[0].Value = "FS1800";
> 
> 
> I think at least in OO1.x this line had to look like this:
> ------------8<------------
> printerDesc[0].Value = "<FS1800>";
> ------------8<------------

uhh. I forgot to answer your mail! Sorry. I tried it as you suggested
and it does not work. I did some further testing and I am not sure
whether I found a bug.

Case Windows: on Windows systems I have to set the Value to the printer
name that is displayed by OpenOffice' printer dialog. Then it works
perfectly as it should and the printer I specified is going to print.

Case Debian Linux with CUPS: if I set the Value to the printer name that
is displayed by OpenOffice' printer dialog the printer is directed to
"Generic Printer".

Case Debian Linux with spadmin: if I create my own printer with the
spadmin tool (I call it "myPrinter") an set this as the printer value,
the printout is done by the printer I choose.

Please tell me, is this a feature or a bug? Do you have the same
problem? In case you want to test it I can send you an sample application.

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to