Is it possible using a Xojo web app to create a Word (or for that matter Pages and/or pdf) document from information stored on a server, and then have that document downloaded to the user. So for example some material could be entered by the user using a form on the web app, and then when the “Download Doco” button is clicked there would be some basic formatting done in the background before downloading the document in .doc or .docx (or .pages or .pdf) format. Any pointers or sample code gratefully received. I have the full set of XojoMBS plugins if that provides additional options.
If you have libreOffice / OpenOffice installed you can use the python script “unoconv” invoked from a RS/xojo shell
Command: unoconv -f pdf Document_to_convert
Not only that, you can also convert reports made by RS/Xojo to PDF automatically. Just make sure the RS/Xojo reports are saved in bmp format. Print output from RS/Xojo or reports is graphic so the pdf file will just represent an embedded image. Not very useful for text search in pdf document.
The unoconv can also convert word documents or openoffice/Libreoffice documents to pdf. And much more.
Depends on what it is you want to do but you can write an XML document that matches Words XML spec & then send that to the user & it will open as either
I wrote a set of classes that let you do this with Excel so it’s certainly possible - it’s just not trivial as Word has such a large amount of functionality.
The other option may be to write an RTF file which does what you need.