[JAVA] How to retrieve the brands of label printer ?

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
cblin
Posts: 1
Joined: Wed Sep 12, 2012 4:46 pm

[JAVA] How to retrieve the brands of label printer ?

Post by cblin »

Hi all,

I'm currently working on a project where I need to print labels.
The first step is to create a java GUI so that user can choose label printer brand and type (cf New > File > Labels, the 2 dropdown lists).

My question is : how can I retrieve the content of these lists ?

So far, I've read the developper guide and other materials and so far I've understood how to use UNO to create my own listbox with my own values but I still do not understand how I can retrieve the content of a list already exiting in a screen of OOo.
I think this apply for whatever list in OOo but I did not find any pointer anywhere ! For example, I've searched how to retrieve the list of available fonts but I've found nothing.

could someone provide me some pointer to a code snippet or documentation ?
Thanks,
OpenOffice 3.3 on Windows XP
Post Reply