Hi,
Issue 117765 is good news.
But this service com.sun.star.awt.PrinterServer is not documented in the IDL !
Only its interface. I hate using undocumented API. Can it be also corrected ?
Regards
Bernard
Message de Frank Schönheit date 2011-04-08 09:28 :
Hi Andrew,
I had hoped it would be as easy as
CreateUnoService("com.sun.star.awt.PrinterServer")
Unfortunately, the returned object is not usable.
"Usable" is a relative term. You can always do something like this:
oServer = CreateUnoService("com.sun.star.awt.PrinterServer")
oCore = CreateUnoService("com.sun.star.reflection.CoreReflection")
oClass = oCore.forName("com.sun.star.awt.XPrinterServer")
oMethod = oClass.getMethod("getPrinterNames")
aNames = oMethod.invoke(oServer, Array())
Niklas
Wow, thanks..... Thanks to Ariel, I have a few links, one of which
brings me here:
http://openoffice.org/projects/api/lists/dev/archive/2008-08/message/66
So this means the problem with this absolutely unusable (despite the
CoreReflection hoops) service is known for more than 2.5 years already,
and nobody of us developers ever cared? Shame on us!
Known as http://openoffice.org/bugzilla/show_bug.cgi?id=117765 now,
fixed in CWS fs35a.
Ciao
Frank
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help