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.

The multichoiceset question type is not a part of core Moodle, you need to install the plugin. The default plugin is not compatible with the WordTable plugin, so you should instead install my compatible forked version from https://github.com/ecampbell/moodle-qtype_multichoiceset
I'm having issues with not being able to import and export the All-or-Nothing format of questions. When I try to import, I get the "Error(s) found parsing the import file. " message. If I select "don't stop on error" then I get "Error importing question Question type multichoiceset is not supported by XML import". The other question types seem to work fine. Is there anything you can do to help me? Thanks!
Start Word and use File > Open to select and open the file. Double-clicking on the exported file might not work. Are you using a Windows or a Mac?
Hello! Though the export and download see to happen just fine, I have been unable to open the resulting Word documents. It tells me the final "cannot be opened because there are problems with the contents" and "Microsoft Office cannot open this file because some parts are missing or invalid". Any ideas what is going on? I'm using Moodle 3.3 and my questions are either multiple choice or short anwer.
Hello Eoin:
Okay, scratch the above, got this sorted. I had inadvertently downloaded the v3.4 template (Updated: 2016-08-23) rather than the one you had linked for me that was updated on 2015-12-09. I corrected my error and my files are now converting the images.
Thank you so much for your help!
Thanks for this Eoin. Unfortuneatley it hasn’t solved the issue. I went in and removed the v3.6 template and installed the v3.4 template as per the installer directions. I went a step further and ensured that Windows Defender was fully disabled by using the local group policy and enabling the “Turn off Windows Defender Antivirus” app rather than just using the Security Centre settings. I receive the same notifications as noted above.
Any other thoughts on what I could try?
Hi Dwayne,
If Windows Defender is switched off permanently, then you can use the older version of the Word template which still contains the code to convert image data back into images after exporting questions. To download the older template, you must register on the www.moodle2word.net website, and enrol in the "WordTable Conversion" course. Once enrolled, you can download and install "Moodle Question Word 2010 Template installer (v3.4) 250 KB Zip file (Updated: 2015-12-09)" (http://www.moodle2word.net/mod/resource/view.php?id=48). This might avoid the Error message.
Note that if you are using Google Chrome, it may warn you about the download too.
Good day Eoin:
I’m running in to an issue when attempting to convert images in an exported file. When I click on “Convert Images” I receive a dialogue box telling me that the “Image Conversion has been disabled to avoid Windows Defender issues”. Upon closing that box I receive another dialogue box telling me that
Error(idp2212255520): This is not a valid file name.
Try one or more of the following:
*Check the path to make sure it was typed correctly
*Select a file from the list of files and folders.
I’m running Windows 10 and Office 2016 however our IT people have set up a virtual desktop for me running Windows 7 and Office 2010, we have the issue in both environments. In an attempt to resolve this issue I have determined through our IT department that we don’t use Windows Defender, it’s turned off entirely. Additionally I have enabled all macros in the Trust Center settings for Word both locally and on the virtual desktop to no avail.
Have you see this issue before? Any thoughts on a work around?
There are 2 likely reasons why questions don't export. One is that the questions are not supported by the plugin, such as Numeric, or Calculated. The second is that there is some badly-formed HTML inside a question, that breaks the export process. This can happen if the question content was copied and pasted from Word a few years ago, before the Atto editor was created. The older TinyMCE editor didn't do a very good job of cleaning up content pasted from Word, so old questions often contain strange HTML markup. It only takes one bad question to break the export of the whole category.
One way to fix this is to simply open and save the questions one by one in the question editor, but it is a tedious job. A better approach is to try and identify the bad question. Try exporting to XML instead, open it in a text editor, and inspect it for possible bad markup.
Hi Eoin,
Thanks for the great plugin. I have been using it now and then to export questions from the question bank and it worked fine every time. Today, one of my colleagues mentioned that he was unable to export some of the categories in the question bank. The file comes out empty. When I tried some categories indeed create an empty file and some work fine. Can you provide more info on what the problem might be? Could it be the size of the categories?
The macros in the moodleQuizStartup.dotm won't work unless you enable your Word security settings to run digitally signed macros. Use File > Options > Trust Center to set this option.
The Word file containing questions contains hidden document properties required to support importing, so at a minimum you need to start with the file moodleQuestion.dotx, which you can download from http://www.moodle2word.net/mod/resource/view.php?id=46. The language is one of the properties that the import process must know, since the labels in the Word tables differ per language. An alternative way to get this information is to export some questions from your Moodle server, and use that exported Word file (saved as .docx) as your starting point.
Hi Eoin,
When I import the file, I get this error: 'No questions imported because the language of the labels in the Word file does not match your current Moodle interface language
I'm using an english version of Word (2016) and importing to an english Moodle server. The Macros don't work for me either on Windows or Mac, so I manually created the questions using your template. Do you know what could be causing the problem?
Hi Mark,
The Word templates already work with Microsoft Word 2016 on Windows. Note that you will need to configure Word to trust digitally signed macros. They don't work with the online Office 365 version of Word though.
Are there any plans to make the files work with Word 2016?