Ask Your Question

zenlord's profile - activity

2017-07-06 10:54:31 +0200 received badge  Taxonomist
2015-10-04 23:05:44 +0200 received badge  Famous Question (source)
2015-03-30 20:02:00 +0200 received badge  Popular Question (source)
2015-03-30 20:02:00 +0200 received badge  Notable Question (source)
2013-09-23 15:23:10 +0200 answered a question Dynamic Contact Information in a Letterhead

I tackled a similar problem the other way around: I added a function to my web application (written in PHP) that relies on TBS and the plugin OpenTBS, which is an open source object oriented PHP templating app to make (Libre/Open/MS)Office documents from a template.

I still use basic macro's for printing the document to different printertrays, but I rely on an outside script to fill in all the dynamic content into the new document, coming from both PostgreSQL and OpenLDAP.

2013-09-22 22:00:12 +0200 asked a question How do I detect the names of all available printertrays of the chosen printer?


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?