This is the first article of a series of articles about M2Doc as a new technology to generate Word reports out of medini models. You can find additional extensions (beta status) for 2022 R1 and 2022 R2 in our extension area on the online support page. An official release is planned for 2023 R1. All samples posted here are for 2022 R2. Main intention is to make you aware of the new technology but also to get any kind of feedback.
The first sample is about image generation. There is API to generate images out of diagrams or out of external image documents, either as vector or raster image, scaled, ... The required m2doc expression is very simple. Just take any diagram or external document as input variable and use:
{ m:anyDiagram.asImage() }
In the sample you will find other variants of the same for example, with format parameter. Open the sample project, select the report configuration and use "Report | Generate M2Doc Report" from the context menu:

Or use the new "Auto-Generate" tool from within the configuration editor:

Happy Reporting
Jan