Issue 87883 - pls add possibility to find available printers via API (as in File|PrintSetup)
Summary: pls add possibility to find available printers via API (as in File|PrintSetup)
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-04 15:48 UTC by cno
Modified: 2017-05-20 10:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch from Ariel Constenla-Haile from api mailing list (3.70 KB, text/plain)
2009-03-11 12:18 UTC, Mathias_Bauer
no flags Details
OOo Writer document with a macro testing the service (9.14 KB, application/vnd.oasis.opendocument.text)
2011-04-07 15:42 UTC, Ariel Constenla-Haile
no flags Details
new patch (old one was made in the CVS era) (5.93 KB, patch)
2011-04-07 16:07 UTC, Ariel Constenla-Haile
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description cno 2008-04-04 15:48:47 UTC
pls add possibility to find available printers via API (as in File|PrintSetup)
Comment 1 Mathias_Bauer 2008-11-19 14:23:17 UTC
taking over
Comment 2 Mathias_Bauer 2009-03-11 12:17:09 UTC
Just a question: would com.sun.star.awt.PrinterServer do the job? As it seems,
its implementation has a bug that prevents its usage from Basic, but that can be
fixed easily. Is there anything missing or wrong in this service?
Comment 3 Mathias_Bauer 2009-03-11 12:18:16 UTC
Created attachment 60880 [details]
patch from Ariel Constenla-Haile from api mailing list
Comment 4 tobiaskrais 2009-03-11 12:25:08 UTC
I use xPrinterServer.getPrinterNames() to get the printers in Java via API.
Comment 5 ronyf 2010-07-12 16:41:32 UTC
Just came here after researching possibilities to get at a list of available
printers using Java.

As of today the service "com.sun.star.awt.PrinterServer" is not documented and
it seems that the IDL of it is missing, as also reflection does not yield
information about this service. 

However it can be created, and the interface XPrinterServer is available,
judging from using its method "getPrinterNames" (cf.
<http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XPrinterServer.html>).

It would help people to save a lot of research time, if this "little
awkwardness" was removed, by documenting the "com.sun.star.awt.PrinterServer"
service and all of its available interfaces. Among other things this should
allow to find the "PrinterServer" service via the cross-reference of
"XPrinterServer".
Comment 6 Ariel Constenla-Haile 2011-04-07 15:38:51 UTC
ping mba
the issue is still present on DEV300_m104/* 
the patch still works.
If you are not working on this, I can apply it on cws contextmenu1.
The service should also be documented.
Comment 7 Ariel Constenla-Haile 2011-04-07 15:42:07 UTC
Created attachment 76311 [details]
OOo Writer document with a macro testing the service
Comment 8 Ariel Constenla-Haile 2011-04-07 16:07:17 UTC
Created attachment 76313 [details]
new patch (old one was made in the CVS era)

maybe the IDL service specification needs a better description
Comment 9 Marcus 2017-05-20 10:55:34 UTC
Reset assigne to the default "issues@openoffice.apache.org".