Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-10-02 Thread Tobias Krais
Hi together, in May we had a discussion on this topic. Meanwhile I solved my problem due to an other thread on this mailing list. Here is the code I use for getting the printers and its tray names from OOo: -%- import java.util.regex.Matcher; import java.util.regex.Pattern; import

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-21 Thread Cor Nouws
Andrew Douglas Pitonyak wrote (21-5-2008 7:06) Tobias Krais wrote: I thought that the tray names were set in the PPD file (for post script printers anyway). This means OOo seems to read it from the ppd. Won't be platform independent in case I want to do it this way... I do not know that

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-20 Thread Tobias Krais
Hi Andrew, I thought that the tray names were set in the PPD file (for post script printers anyway). For example, read page 101 of this document http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf This means OOo seems to read it from the ppd. Won't be platform

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-20 Thread Andrew Douglas Pitonyak
Tobias Krais wrote: Hi Andrew, I thought that the tray names were set in the PPD file (for post script printers anyway). For example, read page 101 of this document http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf This means OOo seems to read it from the ppd.

[api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Tobias Krais
Hi together, at the moment I encounter a serious problem on Windows OS. I wrote a little OOo dialogue allowing the user to print a document on a certain tray of a printer. Now my Problem: for OOo does not offer an API to get printer tray names, I use the API of Java. It returns me, for example

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Cor Nouws
Hi Tobias, Tobias Krais wrote (19-5-2008 11:01) at the moment I encounter a serious problem on Windows OS. I wrote a little OOo dialogue allowing the user to print a document on a certain tray of a printer. Now my Problem: for OOo does not offer an API to get printer tray names, I use the API

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Tobias Krais
Hi Cor, I have a Basic extension for the same job, but provide admins with a unhandy tool to copy/paste papertray names to an ini-file. I thought about it. But it was mere a nightmare... What I do know: related issues are 87883 and 87495 Interesting. This would solve the issue. But in

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Marc Santhoff
Am Montag, den 19.05.2008, 11:41 +0200 schrieb Tobias Krais: Hi Cor, I have a Basic extension for the same job, but provide admins with a unhandy tool to copy/paste papertray names to an ini-file. I thought about it. But it was mere a nightmare... What I do know: related issues are

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Tobias Krais
Hallo Marc, Did you have a look at: $(user)/user/psprint/psprint.conf This file does not exist here. $(inst)/share/psprint/psprint.conf There is no tray information inside. But thanks for the hint. Greetings, Tobias -

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Andrew Douglas Pitonyak
Tobias Krais wrote: Hi together, at the moment I encounter a serious problem on Windows OS. I wrote a little OOo dialogue allowing the user to print a document on a certain tray of a printer. Now my Problem: for OOo does not offer an API to get printer tray names, I use the API of Java. It