Generally, the key requirements of reporting applications are that report building and document generation should be simple, fast, and accurate. ComponentOne Studio introduces FlexReport, a completely revamped and a newer C1Report, empowering .NET developers to solve complex problems for their application’s business needs. With FlexReport, you can:
FlexReport aims to be the industry's lightest and fastest reporting tool, in particular for small reports.
FlexReport's modern rendering uses DirectWrite/Direct2D technology to draw/generate report content that does not depend on measurement context like Printer, Screen, etc. This makes rendering of text, shapes and borders much sharper than before. Comparison of rendering times in FlexReport vs. C1Report
FlexReport introduces Paragraph Field, which has the power to combine static text, database fields, expressions, scripts in a single field. Moreover, you can choose any word and set it in a different format. You can even choose an expression and edit it separately in the Expression editor. Editing expressions in FlexReport
Up to now, you've been using multiple preview controls for every Document type like C1PDF, C1Report, SSRS, C1Document types, etc. With the introduction of FlexViewer, it's easier to load such documents in a single viewer, starting with the support for C1Report, C1FlexReport, SSRS and C1Document types in 2015v3. FlexViewer will be more interactive, giving you the ability to:
FlexReport's designing and previewing tools provide a ribbon-based UI interface, offering a rich user experience with easy-to-access, well-placed designer and viewer options.
Reports created with FlexReport are saved with .flxr extension. The advantage is that you can open a .flxr report directly in FlexReport Designer App by a simple double-click.
The FlexReport Designer App has additional features to improve your report design experience:
FlexReport supports more features that improves its compatibility with Crystal Reports. Expect more accurate migration for following features in 2015v3:
Hierarchy for Field Types with common base: C1FlexReport uses different class types (with a common base) to represent different types of report fields:
Support for multiple data sources: C1FlexReport definition can include several data sources, accessible via the new C1FlexReport.DataSources collection. In 2015v3, the data sources can be used as main data source in the report, as a source of valid values for report parameters and as a data source for chart field.
Improved data sorting: New property SortExpressionCollection DataSource.Sorting allows to define several sort expressions (of the type SortExpression). Each SortExpression contains an expression used for sorting, and the sort direction (ascending or descending). These expressions can easily be added in FlexReport Designer app's data tab, using VBScript Editor.
Improved data filtering: In C1FlexReport, filter can be specified in regular VBScript as all other expressions in C1Report/C1FlexReport. The syntax to use is specified by the FilterSyntax property of Data Source, possible values are DataView (compatible with C1Report) and VBScript.
Calculated fields for each Data source: Data sources in FlexReport allow to define calculated fields in the DataSource.CalculatedFields collection. These calculated fields can be directly used on report.
New Report Parameters Collection: In C1Report, parameters could be specified either in DataSource.RecordSource, or in DataSource SQL Query, e.g.:
C1Report.DataSource.RecordSource = “PARAMETERS param1 int 0; select * from Customers where id < param1”.
In FlexReport, parameters are defined in the C1FlexReport.Parameters collection, where each element is an instance of the ReportParameter class, with the following properties:
AllowedValuesDefinition
[](//gccontent.blob.core.windows.net/gccontent/blogs/legacy/c1/2015/11/ParametersNew.jpg)
It's easy to add parameters through FlexReport Designer App through the data tab. FlexReport supports use of parameters in the following scenarios:
These parameters are also accessible in VBScript Editor for calculated fields and sort expressions. You can also access the parameter properties in the VBScript Editor.
New Sub-sections: Each section of FlexReport can contain one or more sub-sections, which in turn can contain the report fields. Sub-sections present a number of uses: for instance, when you want to conditionally show or hide some parts of a section, or format some parts of the section in a different way.
New visual properties
New and extensive set of Charts and related API: FlexReport now has an exhaustive list of charts for you to choose from. About 70+ charts in Regular, Stacked and Percentage forms will make you meet any needs of your business application. Check out the experience of adding charts to FlexReport Designer app with introduction of chart editors giving you an intuitive way of binding data and drawing multiple series. You will no longer have to struggle your way out to add a chart to your reporting application. The extensive API will make you use native properties of different chart types.
Since the architecture of FlexReport is different than C1Report, there are some breaking changes in the API. Please refer to documentation for more details.
If you have both ComponentOne Studio for WinForms and ASP.NET Web Forms studios installed on the same machine, then please change reference path to following DLLs manually in all WinForms Product Samples, Control Explorer that reference: