Exporting Text Entries to a Word document

Oct 27, 2014

Hi folks.

I want to create an interaction where the learner can type their answer into a Text Entry field, and then be able to click a button at the bottom of the screen that will export their answer to a Word document (rtf, text or pdf would also work, though client would prefer a doc file).

I've had a read through the Storyline tutorials and looked for the solution on the discussion boards. I assume it will be related to the use of Variables and possibly some JavaScript. Could anyone give me some guidance on how to do this please?

Thanks,

Gemz

P.S. I'm using Articulate Storyline 1.

10 Replies
Gemma Nunn

I'm still trying to figure out how to create a JavaScript that will allow users to download their notes to an editable Word document.

I've figured out how to export to PDF, thanks to the awesome tutorial by Josh Stoner. I've also tried the excellent print and email solutions offered by Stephanie Harnett. Alas, the client wants text entered into the eLearning module to download to Word.

I have some ideas, and have been playing around with this script without success. (I haven't used JavaScript in a long time and it's taking me a while to get to grips with it.) 

Has anyone accomplished this, or have any suggestions on what I could try next?

Muhammod Alaa
Phil Mayor

For word it will require a little extra work, you will have to first build the page as a HTML page and then export to Word.

This should help https://phppot.com/javascript/how-to-export-html-to-word-document-with-javascript/

Thanks Phil for sharing such a brilliant solution! but how it should be embedded in the storyline? "by iframe?"