Use Crystal Report (medium) in Visual Studio. NET)

Source: Internet
Author: User

Use Crystal Report (medium) in Visual Studio. NET)

From www.aspfree.com
Translated by cash (World 7)
Cashcao@msn.com (cashcao@msn.com)

Crystal Report demo-Use Pull Model

Follow these steps to use the Pull Model of Crystal Reports:

(1) create a. rpt file and set the necessary database connection.
(2) Place the CrystalReportViewer control on the. aspx page and set its attributes to point to the. rpt file we created.
(3) Call the databind method in your code behind page file.

Create a. rpt file:

1) Right-click Solution Explorer and choose "Add" --> "Add New Item" --> "Crystal Report" to Add a New Crystal Report file.


2) In the "Crystal Report Gallery" pop-up window, select the "As a Blank Report" button and click "OK ".


3) This will open a new Report file on the Crystal Report Designer.



4) Right-click the "Details Section" of the report and choose "Database"-> "Add/Remove Database ".

5) in the "Database Expert" window, expand the "ole db (ADO)" option to open a new "ole db (ADO)" window.

6) in the "ole db (ADO)" window, select "Microsoft ole db Provider for SQL Server" and click "Next ".



7) Specify the connection information as follows:
Server: HomePC (name of your Server)
User Id: sa
Password:
Database: Pubs

8) Click "Next" and Finish.

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.