The release of version 2022.3 in FastReport Desktop took place. We prepared a lot of new features for you: validator to check the report template and get the list of errors, FRX format editor, report converter from StimulSoft, dialog page copying and much more.
A "Validation" tab has been added to the report designer (on the right, next to the "Data" and "Report Tree" tabs). Here you can check the report template and get a list of errors and warnings.
All this is displayed in a table with the object name (if there is one) and error description. If you select a row in the table, the corresponding object will be highlighted in the designer.
Errors and warnings can be of the following types: unnamed objects, objects with the same name, overlapping objects, objects with zero height or width, and objects that are partially or completely outside the parent object.
Objects without names and objects with the same name are critical errors. They can lead to various errors and even crash the application while preparing a report. Besides, without a validator, these errors are very hard to find.
Intersecting objects is not a serious error. In some cases, they can be useful and used purposefully (e.g., lines or rectangles). Intersecting text objects, in most cases, can lead to incorrect exports. Especially in table exports, such as Excel. The export will result in a lot of extra cells, etc. It is necessary to be careful with such objects.
Objects partially exceeding parent object boundaries (e.g. band or page) can also be useful in rare situations. But in most cases, it causes errors in the preparation and export of the report.
Objects that are completely outside the parent one is a serious error. Finding such objects without a validator is also very hard.
Intersecting objects and objects outside the parent can now be highlighted in color (which you can choose) if the corresponding setting in menu File -> Options is enabled.
It is not necessary to use report validation. But it can be useful when your report doesn't work or look the way you want it to.
Read more about the report validator in the next article.
Sometimes it is necessary to edit the contents of the FRX file using third-party text editors. Now you can do this more conveniently, directly in the report designer. The FRX editor is added for this purpose. By default, it is disabled. You can enable it in the menu «File -> Options».
In the report designer, the FRX tab will appear to the left of the Code tab.
The changes made here, will be immediately applied to the report and displayed on its pages.
Read more about the FRX editor in the following article.
Added the ability to convert report templates from StimulSoft to FastReport .NET templates.
StimulSoft reports may contain implementation objects that are not supported by the FastReport designer. These objects will not be exported or will be replaced by others in such a way that the generated report is as similar as possible to the one created in StimulSoft. It is important to note that the import of cross-bands is implemented by moving their contents to the parent band.
Read more about converting reports in the article at the following link.
Added the ability to copy dialog pages. Both using the context menu of the dialog page and using the «Report -> Copy Report Page» button.
Copying creates a copy of the dialog page with a unique name. All child objects will also have unique names. However, the event handlers of the objects will be the same as those of the original page. If necessary, you must create new handlers.
Also now dialog pages can be deleted not only with the «Report -> Delete Page» button, but also via the context menu in the form editor and report tree.
When creating an object in the designer, its settings will be applied to the next created object of the same type.
For example, if you create a text object, set its font size, borders, fill color, the next text object will be created with the same settings.
This is useful when you need to create several objects with the same or similar settings.
In situations when you don't need this designer behavior you can disable it in «File -> Options».
This will create objects with default settings.
When viewing interactive reports, you can open detailed reports in new tabs.
You can see three open tabs here. Previously, only the active tab was exported. Now you can export all tabs to one file using the new "Export all tabs" option.
Now when you hover your mouse over a dll in the plugins list (File -> Options -> Plugins) and in the list of links to builds- (Report -> Options -> Script), detailed information with description, version, size, creation date, etc. is displayed.
You can now select the language of the document in these exports. By default the language selected in the designer is used.
Also added option "Show Gridlines" when exporting to Excel 2007.
[Engine]
+ implemented converter reports of StimulSoft;
+ added changing name of JSON data source in expressions when it's renamed;
+ added converting of PaperSize property when converting reports from StimulSoft;
+ added checking existence of referenced assembly when converting reports from StimulSoft;
+ added PrintOnParent property to Table and Matrix objects;
+ added loading of report parameters when converting reports from RDL;
+ added loading of subreports when converting reports from RDL;
+ added the feature to store JSON connection data using the StoreData property;
+ optimized speed in reports containing large amount of objects;
* changed exception text when calculating and formatting expression if e.InnerException is null;
* when loading RDL report, page width will be equal section width in case when there is no page width;
- fixed length calculation encoding DataMatrix C40 and text;
- handled System.ComponentModel.Win32Exception when printing with disabled Print Spooler;
- fixed hide border of picture when printing with auto size;
- fixed stack overflow error when prepare report with child band of page footer and then start new page option enabled for it;
- fixed a bug with not passing path of base report to current one in Unix OS;
- fixed a bug with creating subreport and page with the same name when converting reports from StimulSoft;
- fixed a bug with invalid names when converting reports from StimulSoft;
- fixed a bug with TotalPages in Page.VisibleExpression that causes an exception when double pass is disabled;
- fixed a bug when band can grow out of page;
- fixed a bug when objects can grow out of band or ContainerObject;
- fixed "back indent" feature in RTF translator;
- fixed RichText line spacing when RTF translated to report objects;
- fixed an error with ConnectionString property in JsonDataSourceConnectionStringBuilder class when value was without a request headers;
[Designer]
+ added the report validator that helps to find invalid objects (duplicate names, negative sizes, etc.);
+ added editor for RichObject.Text property;
+ added FRX editor in report designer;
+ added detailed description of referenced assemblies and installed plugins;
+ added the ability to copy dialog pages;
+ added the ability to delete dialog pages using the context menu;
+ added ability to disable using of last formatting options when creating objects;
+ added integration with FastReport.Id;
+ added call to online-documentation in the report designer;
+ added wizard for visualization of control identification signs;
+ add tooltip about right and bottom indents for guides and objects in designer;
+ added ability to select color of backlight intersecting objects in designer;
* changed the look of ElasticSearch connection editor form;
* changed the text fields in CISWizardForm with units to text fields that only support numbers;
- fixed a bug leading to System.NullRefereceException when creating calculated column for subtable JSON;
- fixed a bug leading to System.FormatException when drawing labels of maps;
- fixed a bug leading to the System.NullReferenceException when clicking the "Paste" button in the context menu of dialog pages;
- fixed a bug with scaling zoom controls of designer in HiDPI mode when run from old demo application;
- fixed opening form of save changes after save all report;
- fixed unscalable items in welcome window;
- fixed backlighting intersected charts;
- fixed exception on rename JSON table;
- fixed UpdateStatusBar in DialogWorkspace;
- fixed a bug with localization of "Account..." button in menu "File";
- fixed canceling selection of object if its properties are changed;
- fixed a bug when switching to the "Code" page did not occur after adding an event handler;
[Preview]
+ implemented export of all open tabs;
- fixed a bug leading to System.NullReferenceExteption when preparing report with RichObject on system without printers;
- fixed a bug in the MSChart object in HiDPI mode;
[Exports]
+ added export of locale in Word, PowerPoint, Rich Text, OpenOffice Write and OpenOffice Calc exports;
+ added encryption of the password of the digital signature certificate in PDF-export when it is saved;
+ added option "Show gridlines" when exporting to Excel 2007;
+ added data types export to DBF;
+ added a new property to the SVG export PrefixStyle, which allows you to set a prefix for all styles inside the SVG export;
+ added option "Use locale formatting of data" when exporting to Excel 2007;
* set UTF-8 as default encoding in DBF export;
- fixed incorrect scaling pictures in layered HTML-export when enabled high quality SVG and zoom more than 1;
- fixed a bug leading to System.IndexOutOfRangeException when exporting font without kerning to PDF;
- fixed a bug with scaling picture in layered HTML-export;
- fixed a bug leading to System.NullReferenceException when exporting report with empty page to Word 2007;
- fixed memory leak in PDF export with some CJK fonts;
- fixed a bug when SVG picture was not rotated to needed angle in HTML export;
- fixed repeated rendering of table cell in SVG export;
- fixed incorrect pageStyle when printing from browser for table HTML export;
- fixed exception when export object with negative size in HTML export;
- fixed export to pdf if Compressed = false;
- fixed incorrect record of border-collapse property in table HTML-export;
- fixed a bug in Excel-export, when the fill in the output file did not change the first time;
- fixed export of watermark to PostScript;
- fixed error of font scale when export to PDF;
- fixed a bug where a text object with HtmlTags exported to RTF was not modified by the <br>, <sup>, <sub> tags.