OpenOffice / LibreOffice / Word

Contains tips for configurators working with Aware IM
Post Reply
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

OpenOffice / LibreOffice / Word

Post by RLJB »

We use Linux servers. We would like to use Word (or .doc fiel type) templates.

Has anyone done anything with either OpenOffice or LibreOffice or tried running Word under wine on a Linux box or writtena plug in etc etc and could report any learnings?

Thanks
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Post by RLJB »

Sorry this was actually a stupid post. We have since mucked around with this a bit using suggestions from other posts on the forum and you can get a Linux based server to use Word templates using .rtf file format.

You don't need OpenOffice or LibreOffice or Word under wine on the Linux server to get this to work. We did the following:

On the client, open Word, create a template (use your <<xxx.yyy>> tags), put in pictures, have fonts etc, make it a pretty as you like. Save it as a .rtf file using Save As...

Then on the Config Tool create a new Doc (say it's called Letter1), have it as a txt doc, and use your .rtf file as the template.

Create a process something like:

EXPORT DOCUMENT Letter1 TO FILE ‘/AwareIM5/Letter1.rtf’
IMPORT DOCUMENT Communications.Letter1 FROM ‘/AwareIM5/ Letter1.rtf’

Then create a nice looking form to VIEW the field Communications.Letter1 and you can download it. When a user downloads it, it will recognize the .rtf and if they have Word on their machine it will open it in Word - with all the pictures and fonts and merged tags.

Don't try using DISPLAY DOCUMENT since it will open it in .txt format and it will be a mess to read.
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
hpl123
Posts: 2599
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Workaround Windows?

Post by hpl123 »

RLJB wrote:Sorry this was actually a stupid post. We have since mucked around with this a bit using suggestions from other posts on the forum and you can get a Linux based server to use Word templates using .rtf file format.

You don't need OpenOffice or LibreOffice or Word under wine on the Linux server to get this to work. We did the following:

On the client, open Word, create a template (use your <<xxx.yyy>> tags), put in pictures, have fonts etc, make it a pretty as you like. Save it as a .rtf file using Save As...

Then on the Config Tool create a new Doc (say it's called Letter1), have it as a txt doc, and use your .rtf file as the template.

Create a process something like:

EXPORT DOCUMENT Letter1 TO FILE ‘/AwareIM5/Letter1.rtf’
IMPORT DOCUMENT Communications.Letter1 FROM ‘/AwareIM5/ Letter1.rtf’

Then create a nice looking form to VIEW the field Communications.Letter1 and you can download it. When a user downloads it, it will recognize the .rtf and if they have Word on their machine it will open it in Word - with all the pictures and fonts and merged tags.

Don't try using DISPLAY DOCUMENT since it will open it in .txt format and it will be a mess to read.
I am still experiencing the problems with Word merge (Aware IM + WINWORD.EXE freeze). Can this workaround be used on a Windows server where Office is not installed to avoid these problems? Has anyone done this successfully?

Thanks
Henrik (V8 Developer Ed. - Windows)
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Post by RLJB »

Hi Henrik

I have never done it on a windows server, but there is no reason it shouldn't work. Give it a try.
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

I am still experiencing the problems with Word merge (Aware IM + WINWORD.EXE freeze
I have had zero issues with freezing since I removed Office 2010 from the server and installed Office 2007.
Tom - V8.8 build 3137 - MySql / PostGres
hpl123
Posts: 2599
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

2007

Post by hpl123 »

Thanks Tom, this will probably be how i handle this as well. I wanted to run Aware IM as a service and therefore thinking about other options.
Henrik (V8 Developer Ed. - Windows)
Post Reply