openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Fischer>
Subject Re: odt2braille on the Mac
Date Fri, 28 Oct 2011 13:30:14 GMT
Hi Bert,

would it be an option to use the UNO API just to figure out the 
(default) printer name and do the actual printing directly in Java?  Of 
course, when the printer enumeration/selection via Java API crashes then 
printing might also crash.  But maybe not?


On 28.10.2011 12:42, Bert Frees wrote:
> Hello Jürgen and Ariel,
> Thanks for your help. I appreciate you want to solve this MacOS issue when
> there is more time.
> Ariel, the suggested code works :) I am now trying to find a way to send a
> byte stream to a printer. Could XPrinterPropertySet.setBinarySetup be used
> for this purpose maybe? The service only seems to
> support graphical data, am I right?
> Thanks,
> /BErt
> 2011/10/27 Jürgen Schmidt<>
>> On 10/27/11 6:12 PM, Ariel Constenla-Haile wrote:
>>> Hi Jürgen,
>>> On Thu, Oct 27, 2011 at 12:01:09PM +0200, Jürgen Schmidt wrote:
>>>> Hi Bert,
>>>> i assume it is again a threading issue on MacOS and the used Java
>>>> API requires the main thread as well. I don't have a solution yet
>>>> for you and i am not aware of any existing solution but we have to
>>>> solve this issue anyway. But at the moment we have many other thinks
>>>> to do with our ongoing IP clearance.
>>>> But your extensions is quite interesting and of course very useful
>>>> for probably many users.
>>>> We can also think about a further UNO API to ask for the system
>>>> default printer because the code should be available somewhere.
>>> it is already available in
>>> awt/XPrinterServer.html#**getPrinterNames<>
>> you are right, sometimes i got lost in our APIs especially when i haven't
>> used it for some time ;-) Hopefully it helps Bert for the moment.
>> Juergen

View raw message