
FastReport.NET官方版下载
我们在 JasperReports 添加了一个新的导入功能,如果要使用它,需要到 FastReport .NET 设计器中的“文件”菜单并选择“打开...”。在出现的窗口中,选择过滤器“JasperReports 文件 (*.jrxml)”。所选文件将自动转换为 FastReport .NET 报表并在设计器中打开。
生成的导入报告可能会有所不同,而且很可能您必须对其进行最终确定——更改对象的属性并添加连接。
JasperReports的“表格”对象会被转换成具有类似功能的子报表。JasperReports 报告还可能包含自定义不可导入的元素。用户需要自己用类似物替换这些对象。
对于其余部分,具有某些属性的对象的位置、大小和类型将与 JasperReports 报告中的相同。
JasperReports与FastReport .NET报表对比表:
| 功能 | FastReport .NET | JasperReports |
| Report objects | ||
| Text | + | + |
| Figure | + | + |
| Image | + | + |
| SVG | + | + |
| Subreport | + | + |
| Service text | + | — |
| Diagram | + | + |
| Barcode | + | + |
| 2D barcode | + | + |
| Map | + | + |
| ZIP code | + | — |
| Text in cells | + | — |
| Rich Text | + | + |
| Gradient | + | — |
| Cross-tab (Matrix) | + | + |
| Advanced Matrix (AdvMatrix) | + | — |
| Table | + | + |
| Container | + | + |
| Indicator | + | + |
| Checkbox | + | — |
| Spark graph | + | — |
| HTML | + | + |
| Digital signature | + | — |
| Reporting functions | ||
| Reporting functions | + | — |
| Dialogue Forms | + | — |
| Report Inheritance | + | + |
| Master-detail-subdetail | + | + |
| Drill-downs | + | — |
| Grouping | + | + |
| Sorting | + | + |
| Headers and footers | + | + |
| URLs and hrefs | + | + |
| HTML tags in text objects | + | + |
| Dimensionless pages | + | — |
| Preview component | + | + |
| Report designer in the development environment | + | + |
| Report designer in the executable program | + | + |
| High DPI support | — | + |
| Visual SQL Query Builder | + | — |
| Interface languages | ||
从 JasperReports 导入到 FastReport .NET 时的报告示例
这是在 JasperReports 试用版中构建的原始版本:

导入结果略有改进:

这些示例中有一个明显的区别:表格占用的页面部分在行数相同的情况下是不同的——这是由于文本行之间的空间不同。
我们来看另一份报告,其中包含 Code 128、Codabar、2/5 Interleaved、2/5 Industrial 条码。

您可以在以下屏幕截图中看到转换为 FastReport 设计器的结果:

这种导入允许 FastReport 用户准确、快速地从 JasperReports 转换他们的报告,可以在我们的设计器中迁移和构建熟悉的报告减少所需的工作量。
关于将报告从 JasperReports 导入到 FastReport .NET就到这里了,点击查看FastReport .Net使用教程。
FastReport .Net | 下载试用
FastReport技术QQ群:536197826 欢迎进群一起讨论
上一篇:进程与信号(三)