I have a web application. I want to generate a word document base on the web’s field values. I can not install MS Office on AIX. So i can’t call createobject(“word.application”). right?
Any work around to do it well?
Thanks in advance
I have a web application. I want to generate a word document base on the web’s field values. I can not install MS Office on AIX. So i can’t call createobject(“word.application”). right?
Any work around to do it well?
Thanks in advance
Subject: Is it possible to generate MS word on AIX platform?
Hi,
one workaround which i once used is to create a simple text file and write your data into it.
Then rename it simply to the file extension of MS Office.
Usually MS-Office does not show any errors and opens such a file without any problems.
I did this for MS-Excel(where I exported values to a semicolon separated text file and renamed it to .xls), however I remeber that i tried it with Word as well and I think that it worked only with the extension ".rtf" and not “*.doc”.
Of course you won’t be able to do any “formatting” with this solution.
Maybe this helps.
Bye
Hynek
Subject: RE: Is it possible to generate MS word on AIX platform?
You should be able to create fully formatted files if you write WordML, but that’ll only work if your users are reasonably up-to-date.
Subject: Apache to the rescue!
To get the document opened in Word you would tweak the content-type. To generate a proper word document you would use Java. There is an Apache project that allows you to create Office files.Apache POI™ - the Java API for Microsoft Documents
This allows you to server Word sind 97. Of course you can open a can of worms and try to write wordML.
Hth
stw
Subject: Is it possible to generate MS word on AIX platform?
MS Word is an excellent consumer of HTML, so simply write a file in HTML with a .doc extension and Word will open it without complaint.