(2011/05/17 7:48), MinhHoang To wrote:
    The javax.print.  package follows the Service Provider Interface
pattern. Hence, the real implementation of printer looking up service
depends on the underlying JRE. As his code did work on pure Mac JRE, i
suspect that OOo extension causes conflicts on native libraries.

Tụi nó cũng nói thế mà ↓↓↓
Lỗi này để nhóm a11y VN fix bác ạ :)

I'm using javax.print.PrintServiceLookup to look up the default printer
device. It works fine on Windows, but on Mac OS it causes OOo to crash.
Also, I'm sure the problem is OOo-related because the code runs fine
when it is not embedded in an OOo extension.

This is the code:

javax.print.PrintService[] printers =
javax.print.PrintServiceLookup.lookupDefaultPrintService();


--
**********************************************************************
Viet Nhat General Joint Stock Company (Vinicorp)

Addr:  3F, 92 Hoang Ngan - Trung Hoa - Cau Giay - Hanoi

Tel :(+84)-4-3556-3607 Fax :(+84)-4-3556-3608

Nguyen Vu Hung

Email: [email protected] Mobile: (+84)-167-252-5834
***********************************************************************
_______________________________________________
POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines
_______________________________________________
HanoiLUG mailing lists: http://lists.hanoilug.org/
HanoiLUG wiki: http://wiki.hanoilug.org/
HanoiLUG blog: http://blog.hanoilug.org/

Trả lời cho