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.

I believe the most likely reason is that there is a character in the Word file which is not a Unicode character and therefore isn't converted into UTF8 format, so when Moodle tries to write it to the underlying database, the database rejects it because the fields are configured to accept only UTF-8 encoded characters. This seems to happen with some ranges of mathematical characters in Word. Your image indicates that the questions are maths-oriented. You could use the Microsoft Office Equation Editor, as these equations are converted into MathML in Moodle, which can be displayed well in a browser if you configure the MathJax filter correctly.
Go to Site administration > Plugins > Filters > MathJax, and the Additional equation delimiters field should contain "<math" to get the filter to recognise the equations.
Hi Eoin,
We had an issue come up recently when trying to import a document with questions. We imported some questions, but it just stopped at one and gave the error "error writing to database"
All our other imports have worked fine, but this document in particular seemed to cause us grief. We inspected the questions surrounding the error, but we couldn't find any reason for the ambiguous error occurring.
Any ideas why this would happen?
Cheers
James
Thanks Eoin. Yeah thought as much when I realized its a new feature. Hope to hear from you soon if this is a possibility in future.
News to me, as I’m still on 3.5. I’ll take a look
Hi Eoin
Thanks. I should've been more specific but I'm not talking about the MySQL "id" column.
I'm talking about the "idnumber" MySQL column/fields in this pic: https://ibb.co/rM70jG2
The "idnumber" field is part of the new features in Moodle 3.6 which will allow us to now have unique ID numbers for the questions and categories: https://ibb.co/xqrfP9T
Regards
Tariq
No there isn't. The question ID number is assigned sequentially by the MySQL database when a new question is created. It would be nice to set an ID number so that questions could be overwritten, but that isn't possible. The same issue arises regardless of which import format you use - you cannot overwrite existing questions. The only alternative is that you can set an identifier in the question Name field (using the Word Heading 2 style), but this is not going to be unique.
Hi Eoin,
Is there any way of adding a question "ID number" field to the plugin? So that one can import questions and assign an ID number as you do with the other question details.
Kind Regards
Tariq
Hi Eoin,
I want to create Hungarian language template. Is there any documentation to create template in a specific language?
Thanks:
Bálint
Has anyone used this with Microsoft 360 and SharePoint?
I think the following is happening. When Moodle is exporting questions into Word format, it includes some help text at the bottom of each question, usually pulled from the plugin summary description. This text must be well-formed XML. Typically, the standard question translations are well-formed. However, these standard translations can be overridden with custom text on a particular Moodle installation, and it is possible that the custom text is not well-formed XML. This causes the export operation to fail in that language, while working fine in a language where no custom translation has been done.
I suggest you check for custom Russian translations at Site administration > Language > Language customisation. Things to watch out for are the use of named character entities such as   (use numeric entities instead, e.g.  ) and empty elements
(use
instead).
UPD: The error disappears if the interface is switched from the national language to English.
What could be the problem?
Hi! Im running moodle 3.6.1 with worttable 3.5.23, and it does not seem to work any more - I get this error:
"Sorry, the requested file could not be found", when I try to download the export file.
Any other export format such as GIFT, Moodle XML, XHTML working correctly. And export-plugin Microsoft Word File Import/Export (Book) working correctly too.
thank you for this amazing plugin can you provide a template in arabic as soon as possible
The equations must use the new Microsoft Word Equation Editor (2007 and later), not the old Microsoft Equation 3.0.