How to auto print documents for LibreOffice or OpenOffice?

Modified on Mon, 16 Nov, 2020 at 11:46 AM

You can force Automatic Email Manager to print specific file type with a specific application. For example, if you installed LibreOffice (https://www.libreoffice.org/) or OpenOffice (https://www.openoffice.org/), you can tell to Automatic Email Manager to use these programs to print your attachments.



1. Click on menu 'File', then 'Options', then section 'Email Attachment':

Now click on button 'File types management'.


Management to auto print OpenOffice attachment



2. Add or Edit the extension you want to use, here the .ODT file:

Search for the file extension ODT, if it is not present just click on 'Add', if present click on 'Settings' right of the extension. 


Parameters for auto printing .ods file



3. Set the program to use to print ODT file

You can now define the program to execute when an ODT or ODS file is present in your email, in LibreOffice you also need to specify a command line, each program has it's own command line, here it is: -pt "%PRINTER%" "%FILE%".

That's mean it will send the command pt (for print) with the printer name (variable %PRINTER%) and the path to the file ODT (variable %FILE%) .


Command line for printing with LibreOffice



Conclusion on adding your own specific application:

It is easy to use external program to print your specific file, just add new file extension without the dot (example: ghi), then select the program file and finally the command line if your program needs one.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article