
A customer in the healthcare sector needed to create and print structured medical reports within a FileMaker application. Doctors entered data for individual patients and needed a convenient way to work with text — formatting it and inserting dynamic information. The challenge was to combine the capabilities of a modern HTML editor with the FileMaker environment, including precise layout control for printing.
We created a solution based on the TinyMCE JavaScript library, which provides an advanced WYSIWYG (What You See Is What You Get) editor integrated into FileMaker via a Web Viewer. When the application launches, the required HTML, CSS, and JavaScript files are extracted from a ZIP archive stored in a container field into a temporary folder using our Toolbox tool.
Doctors can use predefined templates that include placeholders (wildcards), for example for the patient’s name, date of birth, or other information. Once loaded, these placeholders are automatically replaced with real data, allowing the doctor to focus solely on entering the examination details.
The solution also includes PDF export. The HTML content is rendered page by page in the Web Viewer according to the exact A4 dimensions, and JavaScript handles automatic text splitting to prevent unwanted breaks in the middle of paragraphs.
