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

How to use ASP.NET to make Crystal report

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "how to use ASP.NET to do crystal report", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "how to use ASP.NET to do crystal report"!

Brief introduction

Crystal reports can be obtained in many ways, one of which is to create using VS.Net, which provides a very rich model so that we can manipulate properties and methods at run time. If you are using VS.Net to develop .net programs, then you do not need to install other software, because it is already embedded in VS.Net.

Advantages: the VS.Net Crystal report has the following main advantages:

Rapid report Development of ◆

◆ can be exported into complex interactive diagrams

◆ can be used in WebForm with other controls

◆ can dynamically export the report into. Pdf, . Doc,xls,html,rtf and other formats

Structure: some components make up the two-tier structure of Crystal report, and the required Web applications are:

Client: the client only needs a browser that can access reports on embedded aspx pages.

Server: Crystal report engine (Crystal Report Engine (CREngine.dll))

Through it, you can accomplish some tasks, such as merging data in report files, converting reports to other formats, and so on. It is precisely because of the function of the report engine that the ASP.NET crystal report can be converted into a normal HTML format.

Crystal report designer (Crystal Report Designer (CRDesigner.dll))

ASP.NET Crystal reports are created in the designer, where you can design titles, insert data, formulas, charts, subreports, etc.

.rpt report file

The step in executing the report is to create the report in the Crystal report designer interface, and Microsoft has provided some off-the-shelf .rpt examples in the default installation.

Data Source

The way the .rpt file gets the database depends on your choice of method. You can choose to let the Crystal report choose the data without using any code, or you can choose to manually assemble the DataSet and then transfer it to the report file.

Crystal report View Control (Crystal Report Viewer web form Control (CRWebFormViewer.dll))

Crystal report View Control is a WebForm control that can be thought of as a container for storing reports in .aspx pages. Note: in some complex operations, the report server may not be on the same physical host as the Web server, and the Web server sends HTTP requests to the report server. Crystal reports can also be executed as WebService.

Execution mode

ASP.NET Crystal report data can be obtained by using the following methods:

Pull mode:

When requested, the Crystal report connects to the database directly according to the specified driver and assembles the data.

Push mode:

At this point, the publisher has to write his own code to connect the data and assemble the DataSet, and send it to the report at the same time. In some cases, report performance can be used by using connection sharing and limiting the size of the record collection.

Report type:

Crystal report designer can include reports directly to projects or use separate report objects.

Strongly-typed report:

When you add a report file to a project, it becomes a "strongly-typed" report. In these cases, you will have the right to create report objects directly, which will reduce some code and provide some performance.

Un-Typed report:

The report here is not directly included in the project, so it is called the 'un-typed' report. In this case, you have to create an instance using the Crystal report's "ReportDocuemt" object, and use the report "manually".

Thank you for your reading, the above is the content of "how to use ASP.NET to do Crystal report". After the study of this article, I believe you have a deeper understanding of how to use ASP.NET to do Crystal report, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Development

Wechat

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

12
Report