List Info

Thread: Selecting Printer always uses default Printer (BUG?)




Selecting Printer always uses default Printer (BUG?)
user name
2006-03-14 14:10:48
Tobias Krais wrote:
> 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.
It seems to be a bug for me. The behaviour should be the
same on all 
platforms. The implementation have to take care of the name
mapping if 
you use cups.

Please submit an issue.

Juergen


> 
> Greetings, Tobias
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
> For additional commands, e-mail: dev-helpapi.openoffice.org
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )