Microsoft Word File Import/Export (Question Format) icon

Microsoft Word File Import/Export (Question Format)

Maintained by Eoin Campbell
Import questions (including images and equations) from structured tables in a Word file (.docx format) into a course question bank, and also export questions to a Word file, allowing for round-trip editing.
Price option: Free

Supports Moodle 1.9-5.0 See all versions
Latest release: 1 year ago
Installations: 4468
Downloads (last 90 days): 1044

Frankenstyle name: qformat_wordtable
Question formats

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi! Is it possible to add Swedish language? Now our "å ä ö" gets converted to underscore.
Images in answers which appeared without any text were ignored. This is fixed in version 2.10.1
the images who go include into the question import very good but images who go into the posible answer dont appear. help!!
Does this plugin work with the MS Word for Mac 2011?
This problem is caused by badly-formed HTML inside question components, and has now been fixed in version 2.8 of the plugin.
We just downloaded the plugin and tried it. All we get is a blank document. In the error log we see numerous errors like these:
PHP Warning: DOMDocument::load(): Opening and ending tag mismatch: td line 11 and font in file:///D:/moodle2/data/temp/wt26E31.tmp, line: 11 in D:\moodle2\www\question\format\wordtable\xsl_emulate_xslt.inc on line 46
PHP Warning: DOMDocument::load(): Opening and ending tag mismatch: tr line 11 and span in file:///D:/moodle2/data/temp/wt26E31.tmp, line: 11 in D:\moodle2\www\question\format\wordtable\xsl_emulate_xslt.inc on line 46
PHP Warning: DOMDocument::load(): Opening and ending tag mismatch: tbody line 10 and p in file:///D:/moodle2/data/temp/wt26E31.tmp, line: 11 in D:\moodle2\www\question\format\wordtable\xsl_emulate_xslt.inc on line 46
PHP Warning: DOMDocument::load(): Opening and ending tag mismatch: font line 11 and td in file:///D:/moodle2/data/temp/wt26E31.tmp, line: 11 in D:\moodle2\www\question\format\wordtable\xsl_emulate_xslt.inc on line 46
Any ideas on how we can fix it?
Hi Giancarlo, the "Site administration > Plugins > Add-on installer" facility in Moodle doesn't quite work. Instead of clicking on the "Install add-ons from the Moodle plugins directory" button, use the updated installation instructions above.
I am trying to install the plugin on 2.6, but I am getting this error message:
Validation failed!Help with Validation failed!
Status Message Info
OK Name of the add-on to be installedHelp with Name of the add-on to be installed
wordtable
Error Add-on does not declare its version
Any hints?
Thanks, Giancarlo
Hi,
i install plugin in my server but After exporting quiz it shows only blank word file.
Hi Erjon, I have now fixed this problem. I had forgotten to allow enrolments on the course, which I have now enabled. You can convert unlimited numbers of questions once you enrol in the course.
Hi,
I cannot seem to be able to import or export from the moodlequiz course in www.moodle2word.net. I get the error below:
Sorry, but you do not currently have permissions to do that (access question edit tab import)
More information about this error
Debug info:
Error code: nopermissions
Stack trace:
line 463 of /lib/setuplib.php: moodle_exception thrown
line 1697 of /lib/questionlib.php: call to print_error()
line 1674 of /question/editlib.php: call to question_edit_contexts->require_one_edit_tab_cap()
line 33 of /question/import.php: call to question_edit_setup()
Do you have the option to import and export from that course for free removed?
Thank you
Hi Daniel, you have identified 3 different issues, so I'll address each one:
1. Exported Word file format
When you export questions to Word format, the file has a '.doc' suffix, but inside, it's really HTML, with some extra Word-specific content that helps Word format it nicely. However, the plugin cannot re-import this format directly, you must first save it in true Word 2003 (.doc) format, which is a non-text binary format.
If you save the file using the "File > Save" command, or using +S, Word automatically saves it in the original HTML format. You must manually override this by saving the file using the "File > Save As..." command instead. Word detects that it is really HTML, and so it sets the "Save as type" field to HTML by default. You must manually override this setting and choose "Word 97-2003 Document" instead. Ideally, I should write some VBA code to do this automatically, but it isn't that easy.
2. Question import limited to 5 questions
When you install the plugin on your own server, there is a default limit of 5 questions that can be imported in a single Word file. To remove this limit, you must purchase an annual subscription which costs €200 for your whole site. To avoid this subscription, you could use the public www.moodle2word.net Moodle server instead.
The question import facility relies on a commercial web-based Word to XML conversion service, so cannot be made free.
3. Question import errors
The error messages are caused by the fact that you are using a "Heading 3" style inside the table cell intended for the question stem. The "Heading 3" style is reserved for the question name. If you set the "Stop on error" flag to "No" when importing the questions, then they will all import correctly.
I'm running into this error when attempting to immediately re-import the exported .doc file into a new category:
Incorrect Word format: please use File>Save As... to save questions-EXP001-Default for 6530Spr11-20140212-1713.doc in native Word (.doc) format and import again
The only way I am able to import it properly is if I open it in word and save it as a .doc file. When I do a save as on the document in word it initially shows it as a .htm file.
When I do change it to a .doc and try to import it I am running into problems with it properly importing all of the questions. In multiple tests on a set of 10 questions it only imported 5 of the questions during both tests.
In another tests I ran into this error:
Error importing question Question type {$a} is not supported by XML import
Error importing question Question type {$a} is not supported by XML import
Error importing question Question type {$a} is not supported by XML import
The only types of questions on the exam were essay and description questions which are both default Moodle question types. There were 3 of the description question types so I imagine it has a hard time with these.
I can't imagine what I am doing wrong with the plugin. I am using it according to the documentation. I am using it on a 2.4.6+ portal (Build: 20131018)
I just wanted to offer my feedback on here to see if anyone else was experiencing the same issues or if I was alone on this one.
I'm getting the following error when trying to export (using Moodle 2.4): "Word-compatible XHTML template is not available". I'm fairly sure this isn't a permissions issue. Any ideas? Thanks.
Hi Eoin,
Could you please update the link for 'More documentation on this plugin' to point to http://docs.moodle.org/25/en/Word_table_format ?
Thanks in advance.