Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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?

click to hide/show revision 2
retagged

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

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?