ActiveReport之事件篇

1.       只触发一次的事件:

ReportStart  在报表启动时触发。该事件在 DataInitialize 之前,在这里可以整个报表都要用到的对象或变量作初始化,也可以设置子报表。

DataInitialize :这个事件在前面的几篇随笔中经常出现,经常在这里取数据,绑定数据源,设置报表的Fileds 属性等。

ReportEnd  在报表加载完成后触发。

2.       多次触发的事件:

FetchData  在处理每一条数据时都会触发,如果是采用绑定数据源的方式,就不需要再作对 Fields 中每个Field  Value 赋值。如果是从自定义的对象集合中提取数据,就要在这里给 Fields 赋值。而且,使用自定义集合的时候要自己设置事件的 eArgs 参数的 EOF 属性,该属性用来判断是否显示到了最后一条记录,如果是,就设置为 true ,并且直接返回。具体的代码可以参看以前的随笔。

PageStart  在报表的每页生成的时候触发,在这里作针对每个页的处理,最常见的就是显示页码。

PageEnd  在报表的每也生成完成的时候触发。

3.       区域的事件:

每个区域( PageHeader  Detail  PageFooter )都有 Format  BeforePrint  AfterPrint 事件。最好不要在这几个事件中操作报表的 Fields 集合,而应该在 DataInitialize  FetchData 中进行。

Format  在数据加载并绑定后触发,只有在这里才可以设置某个区域的高度。

BeforePrint  在区域被生成前触发,在这里如果设置区域的高度是不会有效果的,而且不要在这里操作数据源。

    AfterPrint    在区域已经被生成并描画出后发生,可以在该事件里直接在画布上进行描画操作。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ActiveReports 7 2013 V1 4/4 共四个压缩文件,请全部下载后解压 Award-winning .NET reporting tool for Silverlight, Windows Forms, ASP.NET, and Windows Azure with an end-user Report Designer, Visual Studio integration, and more. Multi-platform Reporting Component with Pure Power The award-winning .NET reporting tool for Silverlight, Windows Forms, ASP.NET, and Windows Azure provides Microsoft .NET developers with familiar Visual Studio integrated designers and components, as well as an extensive API. Create reports ranging in functionality from form-based reports such as invoices and insurance documents, to transaction reports such as sales and accounting, to analytical reports such as sales and budget analysis and portfolio analysis. * ActiveReports joined the ComponentOne product line on July 1, 2012, when ComponentOne became a division of GrapeCity. See what's new in the ActiveReports 7 release! Why Choose ActiveReports 7? Multiple Report Types to Fit Your Reporting Needs Fixed Page Layout gives developers a new way of creating reports where layout is the primary focus. Great for creating invoices, prospectus reports, forms, or other highly structured reports. Continuous Page Layout makes it easy to create reports using tables, crosstabs, charts, and other data regions with flexible layouts. Section Reports follow the tradition of previous ActiveReports versions and are similar to Access reports. Using code-behind or scripts, you can respond to the various events that occur while the report generates to create extremely customized reports that are hard to produce with other products. Fast .NET Reporting Engine Fast .NET Reporting Engine ActiveReports 7 is optimized for speed. Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to pass through quickly from processing to rendering. Flexible .NET API The extensive ActiveReports 7 API allows Visual Basic and C# developers to completely control the report processing engine to fit their needs. Events and properties control: Data retrieval Data transformation Layout Rendering In addition, the API gives the developer complete control over the rendered document to allow selective printing or export, post-render drawing or stamping on pages, n-page, and booklet printing. For added control, ActiveReports 7 provides unmanaged access to the print job, allowing tray selection and duplex printer management as the document is rendered to the printer. Data Visualization and Layout Data Visualization and Layout Whether you need a simple listing or groups with keep-together control, master-detail reports, sub-reports, horizontal and vertical multi-column reports, address labels and badges, or richly formatted letters with mail merge support, ActiveReports is the solution. Simple and lightweight report controls allow you to easily create dazzling reports. With a selection including textbox, checkbox, line, shape, cross-section box, image, formatted text with mail merge, barcode (2D and 3D), chart, and other data visualization controls, they support a wide range of business reports. You can create reports of any size with nearly endless layout options. Rich Data Binding Rich Data Binding .NET data sources allow you to connect to any of the standard databases, plus .NET in-memory objects and collections. In addition, unbound data mode opens up the report to data from anywhere, in any form. If your application can access it, so can the report engine. Visual Studio Integrated Design Time Visual Studio Integrated Design Time The ActiveReports 7 report designer integrates with the Microsoft Visual Studio IDE allowing C# and Visual Basic developers to create reports and compile them into their Windows Forms, ASP.NET, and Silverlight applications. ActiveReports Professional Edition users can also use the royalty-free end-user report designer control to give similar report design functionality to end users within the business application. Cross-platform Support Cross-platform Support ActiveReports 7 offers versatile viewers to extend the reach of your reports to every platform. Built-in report viewers include Windows Forms, Adobe Flash, Microsoft Silverlight, and a rich HTML viewer, all with built-in search functions, hyperlink interaction, a table of contents, and multi-page zoom view support. ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over the exported documents and their properties. The ActiveReports reporting engine supports cloud computing on Microsoft's Windows Azure platform under partial trust as well as full trust. Support for Migration from Other Reporting Tools Support for Migration from Other Reporting Tools ActiveReports 7 helps you preserve your past investments with easy report conversion from Microsoft Access and SAP Crystal Reports, thus greatly reducing the effort involved in recreating old reports when you migrate. No need to start from scratch! Global Options and Localization Support Global Options and Localization Support Localize the ActiveReports user interface to meet the needs of all of your international users. (There are fully localized Chinese and Japanese versions for those specific markets.) Localization also extends to the reports themselves: the reporting engine can use locale-specific text and formatting without the need to create multiple reports. Deployment Deployment ActiveReports 7 uses XCOPY deployment, making installation of your applications incredibly simple. There are no special merge modules to include, no licensing servers to install alongside your application, and no onerous activation procedures to go through.
ActiveReports 7 2013 V1 1/4 共四个压缩文件,请全部下载后解压 Award-winning .NET reporting tool for Silverlight, Windows Forms, ASP.NET, and Windows Azure with an end-user Report Designer, Visual Studio integration, and more. Multi-platform Reporting Component with Pure Power The award-winning .NET reporting tool for Silverlight, Windows Forms, ASP.NET, and Windows Azure provides Microsoft .NET developers with familiar Visual Studio integrated designers and components, as well as an extensive API. Create reports ranging in functionality from form-based reports such as invoices and insurance documents, to transaction reports such as sales and accounting, to analytical reports such as sales and budget analysis and portfolio analysis. * ActiveReports joined the ComponentOne product line on July 1, 2012, when ComponentOne became a division of GrapeCity. See what's new in the ActiveReports 7 release! Why Choose ActiveReports 7? Multiple Report Types to Fit Your Reporting Needs Fixed Page Layout gives developers a new way of creating reports where layout is the primary focus. Great for creating invoices, prospectus reports, forms, or other highly structured reports. Continuous Page Layout makes it easy to create reports using tables, crosstabs, charts, and other data regions with flexible layouts. Section Reports follow the tradition of previous ActiveReports versions and are similar to Access reports. Using code-behind or scripts, you can respond to the various events that occur while the report generates to create extremely customized reports that are hard to produce with other products. Fast .NET Reporting Engine Fast .NET Reporting Engine ActiveReports 7 is optimized for speed. Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to pass through quickly from processing to rendering. Flexible .NET API The extensive ActiveReports 7 API allows Visual Basic and C# developers to completely control the report processing engine to fit their needs. Events and properties control: Data retrieval Data transformation Layout Rendering In addition, the API gives the developer complete control over the rendered document to allow selective printing or export, post-render drawing or stamping on pages, n-page, and booklet printing. For added control, ActiveReports 7 provides unmanaged access to the print job, allowing tray selection and duplex printer management as the document is rendered to the printer. Data Visualization and Layout Data Visualization and Layout Whether you need a simple listing or groups with keep-together control, master-detail reports, sub-reports, horizontal and vertical multi-column reports, address labels and badges, or richly formatted letters with mail merge support, ActiveReports is the solution. Simple and lightweight report controls allow you to easily create dazzling reports. With a selection including textbox, checkbox, line, shape, cross-section box, image, formatted text with mail merge, barcode (2D and 3D), chart, and other data visualization controls, they support a wide range of business reports. You can create reports of any size with nearly endless layout options. Rich Data Binding Rich Data Binding .NET data sources allow you to connect to any of the standard databases, plus .NET in-memory objects and collections. In addition, unbound data mode opens up the report to data from anywhere, in any form. If your application can access it, so can the report engine. Visual Studio Integrated Design Time Visual Studio Integrated Design Time The ActiveReports 7 report designer integrates with the Microsoft Visual Studio IDE allowing C# and Visual Basic developers to create reports and compile them into their Windows Forms, ASP.NET, and Silverlight applications. ActiveReports Professional Edition users can also use the royalty-free end-user report designer control to give similar report design functionality to end users within the business application. Cross-platform Support Cross-platform Support ActiveReports 7 offers versatile viewers to extend the reach of your reports to every platform. Built-in report viewers include Windows Forms, Adobe Flash, Microsoft Silverlight, and a rich HTML viewer, all with built-in search functions, hyperlink interaction, a table of contents, and multi-page zoom view support. ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over the exported documents and their properties. The ActiveReports reporting engine supports cloud computing on Microsoft's Windows Azure platform under partial trust as well as full trust. Support for Migration from Other Reporting Tools Support for Migration from Other Reporting Tools ActiveReports 7 helps you preserve your past investments with easy report conversion from Microsoft Access and SAP Crystal Reports, thus greatly reducing the effort involved in recreating old reports when you migrate. No need to start from scratch! Global Options and Localization Support Global Options and Localization Support Localize the ActiveReports user interface to meet the needs of all of your international users. (There are fully localized Chinese and Japanese versions for those specific markets.) Localization also extends to the reports themselves: the reporting engine can use locale-specific text and formatting without the need to create multiple reports. Deployment Deployment ActiveReports 7 uses XCOPY deployment, making installation of your applications incredibly simple. There are no special merge modules to include, no licensing servers to install alongside your application, and no onerous activation procedures to go through.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值