Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
After searching for information and researching the implementation methods of other web pages, I think the principles and solutions of web page reports, as well as their advantages and disadvantages.
I. General principle
1. Use the Activex report Control to directly read the page content, generate a report using the control in some ways, and then use the control to preview and print the report.
2. Execute related operations using components, generate a report file, and call the control to preview and print the report file.
3. Call the built-in IE method for printing. This method is not suitable for commercial applications.
1. Implementation of ActiveReports
You can only preview and print existing report files. In this case, you can print multiple pages, but the web page cannot generate report files. If you can generate reports instantly as in principle 1, you cannot print multiple pages.
2. Implementation of most materials
This is basically done according to principle 1, so their output is not processed by page. Such reports can be paged, but it is not very desirable for webpages.
3. Implementation of Crystal Reports
The method of Principle 2 is to generate a report file to a specified directory through its own components based on different operations, and then call the preview control of the Crystal Report to preview and print the file.
1. The preview and print controls of ActiveReports are more elegant and easy to operate than those of Crystal Reports and third-party preview and print controls.
2. it is difficult for Crystal Reports to generate report files based on user operations. This should also be the reason why other software did not do so. For example, too many reports may impose a certain load on the server, it is not a program-designed report, so it is relatively simple and not beautiful.
3. In addition to directly calling the print function of IE, all other methods require ActiveX control support, and the client must register the preview print control.
By searching for information and viewing instance research, we can come up with the following points:
There is no perfect solution to achieve printing functions like software while operating the database. It is also a common problem for network applications. Before there is no better technology, it should only be Mr. Cheng. After that, it is shown that the implementation method of the crystal report is not satisfactory, but it is cumbersome to teach. At the same time, the component documentation of the crystal report is not comprehensive, and it should be explored for use, but it is the only good solution in known software and can be used in practical applications.
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to email@example.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.