Posts

FastReport Designer Community Edition

Image
Recently, the open source version of FastReport.Core - FastReport.OpenSource appeared. And here's a new one - FastReport.Community which is a free report designer for FastReport.Net. This is a desktop application for the Windows platform for creating and editing reports. FastReport.Net is also bundled with a desktop application with a report designer. What is the difference between a free report designer and a paid one? In this article we will compare them and find out the differences. 

FastReport Open Source 2021.1 Release

Image
  ➕ added support of .NET 5 ➕ added a new barcode - Deutsche Post Leitcode ➕ added a new barcode - SberBank QR ➕ added functions of converting numbers to letters ➕ added functions of converting numbers to words for Indian language ➕ added rupee symbol for Indian currency ➕ added functions of converting numbers to words for Persian language ➕ added functions of converting numbers to words for Ukranian language ➕ added the Report.Prepare (int pagesLimit) method, which allows to prepare a limited number of pages ➕ added correct view of script errors in ScriptSecurity mode 🐛 optimized work of VisibleExpression, PrintableExpression and ExportableExpression properties for bands 🐛 improved algorithm of converting RTF to report objects 🐛 fixed a bug with web response stream reader when connecting to remote JSON 🐛 fixed a bug while compiling the report with some expressions in the properties VisibleExpression, PrintableExpression and ExportableExpression 🐛 fixed a bug

FastReport Open Source now on SourceForge!

Image
We are pleased to announce that we now have a release mirror on SourceForge.net and we are happy to welcome you there.   The main resource we still have is GitHub . Please write your suggestions and comments on FastReport Open Source development.  

What is new in .NET 5?

Image
On November 10, 2020, just 5 minutes before the start of the annual online conference .NET Conf 2020, the .NET 5 download page was updated. What the .NET developers all over the world have been waiting for has come true. No surprise happened - all innovations and improvements were known long before that moment. We saw .NET 5 RC1 and RC2 earlier in September and October 2020. Many developers have already tried .NET 5 in their projects. However, the moment of release of .NET 5 summed up the huge work that Microsoft developers have done together with many authors of the open source community . Shortly after the official release of .NET 5, Visual Studio 2019 update 16.8 was released with full support for all features of the new framework. Docker images for .NET 5 and .NET 5 SDK have also been published. What did we get with the .NET 5 release? First of all it is the consolidation of frameworks - now instead of separate Core, Mono, Xamarin we have a single .net5.0 target. In fact, the .n

How-to rebuild the libgdiplus library

Image
Sometimes it can be incorrect to display Unicode texts when saved in images or in PDF when running FastReport Open Source on Linux. One of the most common problems is the error of hyphenation in a sentence and, as a result, the wrong interval between words. For example, when using the Thai language in Windows, we see this text: When running the same report in Linux Ubuntu you can see that the string is formatted incorrectly: There may also be problems with word wrap. Another example with the Thai language in the Windows operating system:   The same text in the Linux operating system Ubuntu does not look correct: Similar errors may occur in other languages. Fortunately, there is a solution to the problem described above - building the libgdiplus library from sources with the with-pango key. Before you begin, it is strongly recommended to back up the /usr/lib/libgdiplus*.* files, as they will be overwritten with new files in the process. In this case you can return the system to its ori

FastReport Open Source 2020.4 Release

Image
➕ added check of the report script for malicious code . This option is enabled by default for the Web. ➕ added new barcode ITF-14 ➕ added new barcode Deutsche Post Identcode ➕ added ability to align barcodes ➕ added property PictureObject.ImageSourceExpression that allows to set expression containing source of image ➕ added possibility to use expression in brackets in VisibleExpression, PrintableExpression and ExportableExpression properties ➕ added the PictureObject.ImageFormat property, which allows to select the image storage format 🐛 fixed a bug where the value of an expression was displayed by the text of this expression 🐛 fixed incorrect drawing of ITF-14 barcode 🐛 fixed a bug with transparency of RichObject 🐛 fixed figures absence on window print from browser 🐛 fixed incorrect calculation of page sizes in FastReport.Core.Web, if at least one page was in landscape orientation 🐛 fixed a bug where objects with Exportable = false were not visible in WebPreview 🐛 now you can

Report script security

Image
FastReport Open Source supports calculation of expressions for displaying values in the desired form, or any object visibility conditions. It is also possible to process events for each object of the report, e.g., before printing it. Event handlers are placed in a report script that supports C # and VB.NET languages. In addition to processing events, the script can contain almost any calculations or actions that can generate the necessary data or change the report behavior, as is required by the developer of the report template. Before building the program in the report script language, the report generator takes into account all expressions, functions, and calls to parameters in the report. Then the program is combined with the script that the report template developer had written. The resulting script is compiled and loaded as a library into the application that works with the report generator. When you run reports in web applications, you can edit them using the Online Designer . E

How to create PDF on Raspberry PI with .NET Core 3.1

Image
Raspberry PI is a miniature single-board computer with ARM processor. This microcomputer is often used as an educational platform or for development of embedded solutions. For our experiments we use the Raspberry PI 3B board with 1GB of RAM and the installed Linux Raspbian Buster with desktop operating system. I will omit the installation and configuration of the system - we will assume that everything is already installed and working for you. Despite the tiny size, we are using a computer with powerful  capabilities. Let's try to install the .NET Core framework on it and write a simple C # application that will generate a PDF document. Firstly, we need to connect to the Raspberry via SSH or open the terminal application on the desktop if you connected the board to the monitors and keyboard. Of course, the board must be connected to the Internet to install the components we need.   The Raspbian operating system supports the execution of .NET Core applications for the ARM32 architec

How to use FastReport Open Source in ASP.NET Core Web API application

Image
ASP.Net Core allows you to create Web API applications as well as the usual ASP.Net. Such Restful Web API applications are extremely popular right now. Therefore, it would be nice to learn how to use FastReport for distribution via the API reports. In this article, we will create a demo WebAPI application that allows you to download or view reports in two formats: html and png. 

How to use data source in FastReport Open Source reports

Image
When you create a web report for FastReport Open Source, you use a database to construct a template. You create an internal connection to the data source and add table fields to the report page. But, when the report is used in real conditions, the database specified in the internal connection may not be available. And then you will see such kind of error.

How to use FastReport.OpenSource in ASP.NET MVC application

Image
As we know, the FastReport.OpenSource libraries are “sharpened” for the .Net Core framework. However, it may be necessary to display reports in the ASP .Net MVC project. It would be nice to use free FROS for this purpose. In this article we will look at how this can be done. Create an ASP.Net MVC project. Add FastReport.OpenSource libraries via NuGet: Unfortunately, we cannot use the web report object, as it is designed for .Net Core. Therefore, we will use the available export of the report in HTML format. Multi-page report is exported to several html files. One file - one report page. Thus, you can organize a transition between report pages when viewing. In the Model folder, create a class: namespace FROS_ASPMVC.Models {     public static class Model     {         public static int PagesCount = 0;         public static int CurrentPage = 0;     } }       There are only two static variables: PagesCount - stores the number of pages of the exporte