Creating MS Word or PDF from a WebApp on Windows Server 2012

Besides using OLE, is there a way to create either a PDF or (preferably) an MS Word document from the data filled in on my web application?

With MBS Plugins I can offer Excel and PDF files.

if web app has mac as server, we can also offer Word, OpenOffice and RTF.

[quote=174084:@Christian Schmitz]With MBS Plugins I can offer Excel and PDF files.

if web app has mac as server, we can also offer Word, OpenOffice and RTF.[/quote]

Sounds good. Can I purchase the PDF plugin by itself? If so, where do I go to do so?

maybe go on the website?
http://www.monkeybreadsoftware.de/xojo/plugin-dynapdf.shtml

download plugin, try examples and see if you can do what you need to do.
Some web examples are included.

Ah excel … I have some ancient free code for writing excel if thats ok for what you want
Not as fancy as the MBS plugins but for some its enough
http://great-white-software.com/rblibrary/index.php?main_page=index&cPath=34

[quote=174084:@Christian Schmitz]With MBS Plugins I can offer Excel and PDF files.

if web app has mac as server, we can also offer Word, OpenOffice and RTF.[/quote]
What do you have for word on Mac? I must have missed that until now.

NSAttributedStringMBS has functions like docFormatFromRange which give a Word document.

http://www.monkeybreadsoftware.net/class-nsattributedstringmbs.shtml

You also can easily write a valid HTML-File with all style-Options and save it as “.doc”. MS Word will interpret the document and open it.

and all other apps complain about your html file.

The HTML file saved with “.doc” extension works good with MS Word but Libre Office shows you the html source.

You can try to use the command line with LibreOffice.

soffice.exe --headless --convert-to doc --outdir pathtosave originalhtml.html

“doc” is the format you want to use.

You can also try to use wkhtmltopdf to convert the same html in pdf format.

On OS X textutil is your friend :slight_smile:

It works great, unfortunately it does not keep pictures in Word format.