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.