当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > crystal reports for Visual Studio .NET(webformsample)

ASP.NET
FreeTextBox(版本3.1.6)在ASP.Net 2.0中使用方法
.NET 常用功能和代码小结
在 .NET Framework 2.0 中未处理的异常导致基于 ASP.NET 的应用程序意外退出
asp.net IList查询数据后格式化数据再绑定控件
asp.net sql存储过程
asp.net 简单实现禁用或启用页面中的某一类型的控件
asp.net(c#)获取内容第一张图片地址的函数
The remote procedure call failed and did not execute的解决办法
ASP.NET 在线文件管理
asp.net 读取并修改config文件实现代码
ASP.NET Cookie 操作实现
asp.net Silverlight中的模式窗体
Silverlight中动态获取Web Service地址
asp.net Silverlight应用程序中获取载体aspx页面参数
asp.net 水晶报表隔行换色实现方法
asp.net 获取Gridview隐藏列的值
手动把asp.net的类生成dll文件的方法
asp.net 使用ObjectDataSource控件在ASP.NET中实现Ajax真分页
动态指定任意类型的ObjectDataSource对象的查询参数
asp.net Md5的用法小结

ASP.NET 中的 crystal reports for Visual Studio .NET(webformsample)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 87 ::
收藏到网摘: n/a

Crystal Reports ®For Visual Studio .NET®Interactivity and Reports in Web ApplicationsInteractivity and Reports in Web ApplicationsCopyright © 2001 Crystal Decisions, Inc.Page 2© 2003 Crystal Decisions, Inc. Crystal Decisions, Crystal Reports, Crystal Enterprise,Crystal Analysis, Crystal Services, Crystal Care, Crystal Assist, Crystal Applications, Infoand Holos are trademarks or registered trademarks of Crystal Decisions, Inc. in the U.S.and/or other countries. All other trademarks or registered trademarks referenced are theproperty of their respective owners.Version 2.0Crystal Decisions, Inc.895 Emerson StreetPalo Alto, CA 94301Interactivity and Reports in Web ApplicationsCopyright © 2001 Crystal Decisions, Inc.Page 3Interactivity and Reports in Web ApplicationsIntroductionYou can use the Integrated Development Environment (IDE) in Visual Studio .NET to createinteractivity in your application that hosts Crystal reports.In this walkthrough, you will create a Web application using Active Server Pages.NET(ASP.NET) in Visual Studio .NET. The Web application contains two Web Form controls: animage and a Web Forms Viewer. It supports interactivity between the user and the WebForms Viewer, and interactivity between the Web Forms Viewer and the image control.For more information and updates, please visit our Web site at:http://www.crystaldecisions.com/net.Interactivity and Reports in Web ApplicationsCopyright © 2001 Crystal Decisions, Inc.Page 4Outline of the Web ApplicationThe Web application will contain these controls:· a Web Forms Viewer control hosting a report containing a group tree and three charts(which will be referred to as Chart A, Chart B and Chart C). Users can traverse the grouptree and drill down on Chart A to select a country.· an image control that will display a flag corresponding to the country the user haschosen from Chart A.The Chain of Interactions1. The user selects a country through the Web Forms Viewer control by drilling down inChart A of the report.2. The Web Forms Viewer updates its display of the report based on the selected country.3. The image control accepts the chosen country and displays the corresponding flag forthat country.Supporting FilesThe following report and image files have been provided with this walkthrough:· Sales By Country.rpt· USA.jpg· England.jpg· France.jpg· Germany.jpg· Italy.jpg· Others.jpgThey are available for download from our Web site as supporting files at:http://www.crystaldecisions.com/net.Create the folder "WalkthroughFiles" under the directory c:\Inetpub\wwwroot. Copy ordownload the report and image files to this folder.The following sections explain how to construct the Web application described above, andhow to navigate in Sales By Country.rpt in a Web Forms Viewer.Interactivity and Reports in Web ApplicationsCopyright © 2001 Crystal Decisions, Inc.Page 5Creating the Web applicationBelow, you will create a Visual C# Web application that has a Web Forms Viewer hostingSales By Country.rpt, and an image control displaying the flag of the country the user haschosen through the report. Sales By Country.rpt assumes that the sample database,xtreme.mdb, has been installed on C:\Program Files\Microsoft Visual Studio .NET\CrystalReports\Samples\Database during setup for Visual Studio .NET.To change the location of xtreme.mdbIf you have installed xtreme.mdb at a location other than the default (i.e., C:\ProgramFiles\Microsoft Visual Studio 7\Crystal Reports\Samples\Database), you should do a SetLocation for Sales By Country.rpt. To do a Set Location:1. In Visual Studio .NET, select File | Open |File. This invokes the Open File dialog box.2. In the Open File dialog box, browse to the location c:\Inetpub\wwwroot\WalkthroughFiles, and specify the file Sales By Country.rpt. This opens Sales ByCountry.rpt in the Crystal Report Designer.NOTE If the Crystal Decisions Registration Wizard appears, you can choose toregister the Crystal Report Designer at this point or at a la