Xebia DocXAndExcel Export
Overview
Xebia DocXAndExcel Export empowers your Mendix application to generate professional Word (.docx) documents and export Excel (.xlsx) files seamlessly — all powered by efficient JavaScript functions. No heavy server-side logic, no external dependencies, and no template required — just fast, lightweight, and fully customizable document generation right in your app.
Whether it’s invoices, reports, certificates, or large data exports, this module lets you create and download files instantly, giving your users a smooth and modern experience.
Features:-
-
Generate Word (.docx) files directly in the browser
-
Export data to Excel (.xlsx) with one click
-
No templates required
-
100% client-side processing — no server load
-
Fully customizable content and styling
-
Works with any Mendix data source
-
Lightweight and fast — no external dependencies
Documentation
Typical usage scenario
-
Generate Invoices
-
Export Reports
-
Certificates & Letters
-
Bulk Data Exports
-
Contract Documents
Features and limitations
-
Generate Word (.docx) files directly in the browser
-
Export data to Excel (.xlsx) with one click
-
No templates required
-
100% client-side processing — no server load
-
Fully customizable content and styling
-
Works with any Mendix data source
-
Lightweight and fast — no external dependencies
Dependencies [optional]
npm install docx xlsx file-saver
Configuration
1. Install this required library first in your project app directory (npm install docx xlsx file-saver).
2. Replace the sample domain model with your actual project’s domain model.
3. Open both JavaScript actions in Mendix and change the list parameter type so it matches the entity from your own domain model.
4. Make sure to replace the attribute names with the exact attribute names from your entity inside both JavaScript actions.
5. Here, I have used only 3 attributes. If you want to include more, you will need to add them inside the JavaScript actions as well.
6. Open both nanoflows in Mendix and in the retreive activity update the entity so it matches the entity from your own domain model.