An easy way to create Word files is: - create a file in XML format - Change the file extension from xml to docx
Voila! AS long as your XML is well-formed and conforms to the Open XML standard, it works a treat. Seee https://en.wikipedia.org/wiki/Office_Open_XML On Fri, 5 Apr 2019 at 12:32, Epperlein, Lutz (agendo) via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Regarding the topic: MS Word on the server > > In the past we use the following approach to generate native .doc files: > - The application on the server generated reports as html files > - These files got an extension .doc > These files were able to open in MS Word. > But there were problems e.g. if you wanted to forward these generated .doc > files via e-mail. They lost the property to render as a MS Word document, > they > were plain .html files again. > So we did the following trick: > - We installed MS-Word on the server. > - And then we started a script (VBS in this case) ... > - .. to open the document in MS Word and to save it as a native MS > Word-document in format .doc > - (It could be possible to generate PDF documents as well this way.) > > Now we use another approach (see the thread "Creating Word docs in 4D"). > Installing and using MS Word on a server in a context of Windows services > is a > rather bad idea. This is anything else but reliable. > > The in the mentioned thread described process to generate .docx documents > works well and is reliable. Now we have the requirement to convert these > rather complex MS Word documents to PDFs. We didn't found a good solution > yet. > > Regards > Lutz > > > > > -----Original Message----- > > Subject: Re: Best scripting language to use with LEP (docx to PDF) > > > > Good questions Lutz :) > > I'd like to think that it will work when running as a service as long as > a) > > it runs silently and b) Word is installed on the server. But that is > > certainly something that will need to be tested. > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** -- ************************************************* CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky ************************************************* ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************