Initial Experience of Crystal Reports (Visual Studio 2010)

Source: Internet
Author: User
Tags visual studio 2010

Use the following statement after installing the crystal report;

Configure the rpt file,

 

Foreground (Asp.net page ):
 <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"    Namespace="CrystalDecisions.Web" TagPrefix="CR" %><CR:CrystalReportViewer ID="ReTransport" runat="server" AutoDataBind="true" />

 

Background:
Public void getlist () {reportdocument Doc = new reportdocument (); // rpt file path Doc. load (server. mappath ("/cry/crystalinschoolinfo. RPT "); retransport. toolpanelview = toolpanelviewtype. none; maticsoft. bll. list. lists pro = new maticsoft. bll. list. lists (); If (session ["crystaldata"]! = NULL) {// configure the data source dataset Doc. setdatasource (datatable) session ["crystaldata"]); this. retransport. reportsource = Doc; this. retransport. databind ();} else {httpcontext. current. response. write ("<SCRIPT> alert ('Connection timed out, Please Refresh! '); Window. Location. href = Document. referrer; </SCRIPT> ");}}

Note: During the rpt file configuration process, the page length represents a column. If it is pulled too long, it will be added to the next page by default, leading to false positives as the illusion that data cannot be traversed.

I have never used more advanced embedded reports. I will learn from them later.

Finally paste the Visual Studio 2010 crystal report installation package: http://yunpan.cn/QC9fWzZdj64ER (extraction code: a7b9)
Related Article

Contact Us

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.