Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Free resources | ActiveReports report control publishes multi-platform Demo code collections

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Recently, the partners of the ActiveReports product development team specially prepared a collection of Demo code for the report functions, FAQs, and classic implementations that everyone is concerned about, which involves multiple technical platforms such as WinFormss\ ASP.NET\ MVC, including export, print, WebViewer, HTML5Viewer, custom toolbar, custom search and other specific functions.

Using ActiveReports report Control under WinFormss platform

The functions of each Demo are described below.

WinForms loads four kinds of reports: how to load four unused reports of ActiveReports under the WinForms framework (RDL reports, page reports, regional reports based on XML, regional reports based on code).

WinForms adds export and print buttons: in the WinForms framework, the report display toolbar does not have export and print buttons, which requires us to add button trigger events through the background code.

WinForms to achieve silent printing: by clicking the print button, directly call the printer to print the report.

WinForms bind run-time data sources: under the WinForms framework, how four different reports bind run-time data sources.

Example: implementation of ActiveReports silent printing under WinForms

Using WebViewer & HTMLViewer to load and display report under ASP.NET

Under the HTMLViewer:Asp.net framework, use HTMLViewer to load four different reports (RDL reports, page reports, regional reports based on XML, regional reports based on code).

Under the FlashViewer:Asp.net framework, use FlashViewer to load four different reports (RDL reports, page reports, regional reports based on XML, regional reports based on code).

Under the AcrobatReader:Asp.net framework, use HTMLViewer to load four different reports (RDL reports, page reports, regional reports based on XML, regional reports based on code).

Use RawHTML: Asp.net framework, use HTMLViewer to load four different reports (RDL reports, page reports, regional reports based on XML, regional reports based on code).

HTMLViewer add print button: under the Asp.net framework, use HTMLViewer to load the report, the toolbar does not have a print button, you need to manually add a print button.

HTMLViewer added export button: under the Asp.net framework, use HTMLViewer to load the report, the toolbar does not have an export button, you need to manually add a print button.

FlashViewer added export button: under the Asp.net framework, use FlashViewer to load the report, the toolbar does not have an export button, you need to manually add an export button.

Define HTMLViewer parameters panel hiding: under the Asp.net framework, use HTMLViewer to load the report, and then customize the display and concealment of the toolbar buttons.

Add zoom in and out function in HTML5 Viewer: use Html5Viewer to load the report, and zoom in and out by adding buttons to zoom in and out.

Example: ActiveReports uses WebViewer to load and display pictures on the ASP.NET platform

Using HTML5Viewer to load and display report under ASP.NET VMC

Display reports in HTML5Viewer desktop mode: under the MVC framework, when you use Html5Viewer to display reports on PC, you should pay attention to:

UiType mode: desktop

HTML5Viewer mobile mode report display: under the MVC framework, when using Html5Viewer for mobile report display, you should pay attention to the following:

UiType mode: Mobile

HTML5Viewer continuous mode display report: under the MVC framework, using Html5Viewer to load the report continuous mode, you should pay attention to the following:

Setting: renderMode: 'Galley' (continuous mode)

HTML5Viewer freeze row header display: under the MVC framework, using Html5Viewer to display row headers, you should pay attention to the following:

1. Set: renderMode: 'Galley' (freezing row and column headers is valid only in continuous mode)

2. The displayed report needs to set the values of FrozenColumns and FrozenRows, and can only freeze headers and column headers.)

HTML5Viewer custom Toolbar button: under the MVC framework, use Html5Viewer to load the report, and customize the Toolbar button. Note:

UiType mode: Custom.

HTML5Viewer report parameters: under the MVC framework, use Html5viewer. When using parameter reports, sometimes the project needs to pass parameters at the front end, and it is important to note that:

The parameter naming passed by the front end should be consistent with the parameter naming of the report.

HTML5Viewer report multi-valued parameters: in the MVC framework, use Html5viewer. When using parameter reports, sometimes the project needs to pass parameters at the front end, and it is important to note that:

The parameter naming passed by the front end should be consistent with the parameter naming of the report.

HTML5Viewer binding dynamic data sources: under the MVC framework, use Html5viewer to dynamically bind data sources. Note:

1. Add a WebService service.

2. The method of service inheritance: GrapeCity.ActiveReports.Web.ReportService.

Using HTML5Viewer to achieve automatic report refresh: after the report is loaded, it is sometimes necessary to refresh the report regularly to dynamically display the data. This can be done through a timer and the refreshReport () function.

Custom query conditions: when developing a project, it is sometimes necessary for ActiveReports to do only one report display function, and then data filtering and other functions are realized through custom.

Bind a data source to a report

Multiple data source binding: this demo mainly describes how reports are bound to multiple data sources in the background.

Bind objects or collection objects through Object type data sources: this demo mainly introduces how reports dynamically bind object dynamic data sources.

Bind DataTable through DataSet type data sources: this demo mainly introduces how reports are dynamically bound to Dataset dynamic data sources.

Data source binding JSON data source: this demo mainly introduces how the report binds JSON data source dynamically. Note:

1. The path of JSONFilePath should be correct.

2. Source_url is a service address that you can access.

Example: under the MVC platform, ActiveReports uses HTML5Viewer to load and display reports

About the ActiveReports .NET report Control

ActiveReports is a report control focused on .NET platform, which fully meets the needs of report design and development on platforms such as HTML5 / WinForm / ASP.NET / ASP.NET MVC / WPF. As a professional report tool, it provides comprehensive report development services for more than 300000 developers around the world.

Using ActiveReports report designer, users can easily design common types of reports such as Excel tables, Word documents, and Dashboard large screens, and present the data to end users in a rich and flexible visual chart. At the same time, ActiveReports report control also provides powerful report interactive analysis capabilities such as data filtering, sorting, drilling, expression jumping and so on, which can meet the report needs of users in different scenarios without modifying the code, so as to improve development efficiency and accelerate project delivery.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report