Some users prefer to create tables by adjusting the tab width, or they want to create a table in a format that does not support them.
In previous versions of FastReport .NET, RichObject offered the function to modify the width of a tab in a line, but all their sizes after the first tab were the same. This has been fixed in the current version and now you can set the size for each tab character.
New property for TextObject TabPositions allows you to set the width of a tab. It is used when converting RichObject. Now you can control the width of tab characters in two ways:
– to set from the code the width of individual tab characters for each line of the TextObject;
– by uploading the finished document into RichObject.
The function to edit this property in the designer is temporarily unavailable. If there are more tab characters than widths, the tab size will be normal, and if there will be more values than tabs, the excess values of width will not be applied.
An example of a text with different tab widths
Original RTF document:
How it looked in the previous version:
In the current version:
Customizing tab width from the code:
Thus, you can turn RichObject and TextObject into an alternative to the Table object with the help of new improvements.