How do I detect the names of all available printertrays of the chosen printer? [closed]

asked 2013-09-22 22:00:12 +0100

zenlord gravatar image

updated 2014-01-07 00:33:09 +0100

oweng gravatar image

Hi,

I have written a rather complex LO Basic macro that makes printing a lot easier if you have two types of pre-printed stationary and the obligatory 'plain white paper' in three printertrays.

The set of macro's uses a dialog to let the user choose the printer he/she wished to print on, and that's all fine and dandy as long as all printers have the same names for their printertrays.

Libreoffice lets you choose the exact printertray you wish to print to, but as far as I can see, this cannot be scripted in LO Basic, and thus I would need to hardcode a list of printers and their respective available printertrays.

Can anyone point me in the right direction before I delve into using arrays?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-10-04 23:05:58.355325