概述

如果你正在使用ComponentOne Enterprise 的Reports for WinForm 报表控件(C1Report),你一定会喜欢更为强大的FlexReport!

FlexReport是一个改进的C1Report,使.NET开发人员能够根据应用程序的业务需求解决复杂问题。 借助ComponentOne的2018v2版本,FlexReport提供了创建复杂报表的能力。 FlexReport的架构建立在C1Report之上,因此您将快速掌握C1Report以及其他一些用法。 FlexReport代码是从头开始编写的; 因此,在从C1Report迁移到FlexReport时,您会发现API中的以下重大更改。

ComponentOne技术团队现在鼓励C1Report用户将他们的报表迁移到FlexReport,这样就可以获得更快的数据处理能力和更轻量的产品架构。

从C1Report迁移到FlexReport的五大理由

  1. FlexReport比C1Report快两倍。
  2. FlexReport的新架构和后续更新架构有助于支持常见的布局功能,例如并排分页两个子报表等。
  3. FlexReport对象模型类似于C1Report,因此针对C1Report的大多数简单代码都可以在FlexReport中使用。
  4. FlexReport提供了段落字段、排序、计算字段和添加多个数据源等新功能。 参数更容易添加和编辑。 使用捕捉线、标题、部分轻松添加字段和设计报表 - 这些都在设计器中,因此您无需对其进行任何编码。
  5. FlexReport是一种跨平台解决方案。 它不依赖于WinForms / GDI +。 相反,新引擎的渲染基于DirectX / DirectWrite,并且应该相对容易移植到XAML / UWP平台并在这些平台上呈现更好。 FlexReport可在Winform,WPF和UWP平台中使用。

FlexReport性能改进

我们在许多标准用例上测试了FlexReport和C1Report,以证明性能的提升。 了解有关FlexReport的更多信息,并将其性能与C1Report进行比较。

此表提供FlexReport和C1Report功能比较:

S.No Feature C1Report C1FlexReport
1 Data Binding
1.1 OLEDB Y Y
1.2 SQL Y Y
1.3 XML Y Y
1.4 Unbound Y Y
1.5 CSV Y Y
1.6 Oracle Y Y
1.7 PostgreSQL Y Y
1.8 Stored Procedures Y Y
2 Data Manipulation
2.1 Add Parameter Dialog in Designer N Y
2.2 Sub Reports Y Y
2.3 Side-by-side Subreports N Y
2.4 Calculated Fields Y Y
2.5 Columnar Reports Y Y
2.6 Summary Fields N Y (Calculated Fields)
2.7 Localization Y Y
2.8 Report Events Y Y
2.9 Custom Controls Y Y
3 Designer Features
3.1 Designer Layout buttons
3.11 Snap Lines N Y
3.12 Snap To Grid Y Y
3.13 HideGrid Y Y
3.14 Zoom Slider Y Y
3.2 Designer Toolbar
3.21 Text Formatting options Y Y
3.3 Report Settings
3.31 Page Setup (Design time) Y Y
4 Report Controls
4.1 ReportInfo Y Y
4.2 Label Y(via standardunbound field) Y
4.3 Line Y Y
4.4 PageBreak Y Y
4.6 Subreport Y Y
4.7 Shape Y (throughproperties) Y
4.8 Picture Y Y
4.9 RichTextBox Y Y
4.10 ChartControl Y Y
4.11 Textbox Y Y
4.12 Barcodes Y Y
4.13 Checkbox Y (throughproperty) Y
4.14 Map Y Y
4.15 Gradient Field Y Y
4.16 Paragraph Field N Y
5 Scripting - C#, VB, JScript VBScript VBScript
6 Interactivity
6.1 Jump within report N Y
6.2 Sorting (runtime) N Y
6.3 Sorting settings through designer Y Y
6.4 Filtering settings through designer N Y
6.5 Hyperlink N Y
6.6 Document Map N Y
6.7 Document Map settings through Designer N Y
7 Expressions
7.1 Aggregates Y Y
7.2 Functions Y Y
7.3 Global Collections Y Y

准备从C1Report迁移到FlexReport?

按照这个步骤将基于C1Report的报表迁移到FlexReport吧!