When developing reporting systems, it is important to be able not only to collect data and create graphs, but also to correctly format the results in different formats. Many users create documents in Microsoft Word (OOXML), where they actively use images: logos, charts, illustrations.
Previously, exporting to Word saved images in fixed quality, which was not always convenient. In the latest version of FastReport .NET, we have added new image export functions. Now you can independently adjust the balance between the quality and size of the final document.
Â
Â
This mode saves the image in its original form, without changing the resolution or quality. It is necessary when any intervention can distort the data. Even a minimal loss of quality can degrade the information. Â Â Â
Advantages:
It is important to note that when selecting “Original Image,” other options are not available.
Without function
With function
Â
Â
This mode converts images to JPEG format, significantly reducing the file size. This is especially important when working with reports that contain many photographs, which make the document cumbersome without compression.
In this mode, you can adjust the JPEG quality. It determines how much the image will be compressed:
The screenshots below show the difference when exporting with different JPEG quality settings (the original images were left at standard quality).
Jpeg-quality: 25
Jpeg-quality: 100
Â
Â
Word now has export modes that help you adjust the quality of image saving. This tool is very convenient because it allows you to quickly manage the ratio of image quality and the size of the final document without extra settings.
Four options are available:
Low Quality—Minimum file size. Images become simpler and lose some detail.
Image at low quality
Â
Standard Quality — This is the basic image output mode in FastReport. It uses the standard image saving mechanism without additional transformations that was offered in FastReport.
Medium Quality — A balance between compactness and sharpness. It is useful where readability is important, but maximum detail is not required.
Image at medium quality
Â
High Quality — Maximum sharpness and detail. It is used when appearance is crucial.
Image at high quality
Â
These options are combined with other image export options (for example, JPEG compression or “For printing”) to get the optimal result for the task.
The exception is the “Original Image” mode, which always saves the image without changes and works separately from the other settings.
Â
Â
The added image export features in Word make FastReport .NET a more convenient tool for preparing reports and documents. Each user can choose the best option: save images in maximum quality, reduce the file size with compression, or adjust the balance. The same document can be prepared in different versions.