Professional.Crystal.Reports.for.Visual.Studio..NET [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Professional.Crystal.Reports.for.Visual.Studio..NET [Electronic resources] - نسخه متنی

David McAmis

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید





































Learning from Sample Applications



Crystal Reports for Visual Studio .NET ships with a number of sample applications to help you get started - the majority of sample applications are simple, but demonstrate some aspect of report integration, feature, or functionality and provide a good learning resource if you are just starting out with Crystal Reports.NET or you are new to this version.



Installing Sample Applications



The Crystal Reports.NET sample applications are installed by default and can be found in the Crystal Reports directory where you have installed Visual Studio .NET. These samples are in self-extracting files that you will need to run before you can open the samples within Visual Studio .NET. These samples are located at X:\Program Files\Microsoft Visual Studio.NET\Crystal Reports\Samples\Code (where X: is the drive where you have installed Visual Studio .NET).


There are two sets of sample applications available, both of which are bundled in self-extracting files - WebForms.exe and Winforms.exe. The first, which will extract to a folder marked WebForms, are written using ASP.NET and demonstrate the use of the Crystal Reports Web Forms Viewer. To view these samples, you will need to use IIS Internet Services Manager to create a virtual directory called "CRSamples" that points to the directory where you extracted the sample files. From that point, you should be able to access these samples from http://localhost/CRSamples.






The following samples are included in this set:










Sample






Description













Simple PageThe "Simple Page" sample application demonstrates using the Web Forms Viewer with one of the sample reports (World Sales). The sample demonstrates some of the features of the report viewer, including drilling down into the details of the report, the report group tree, the viewer toolbar and page control options.





Custom NavigationDemonstrates the amount of customization that can occur within the Web Forms Viewer. By default, the viewer has a set toolbar that appears, but developers who wish to control the look and feel of the entire page can control the toolbar, or even create their own with minimal coding.





InteractivityShows how events can be fired when different areas of a report are clicked, which will change the text of the textbox in the upper right-hand corner. It also gives some insight into the events supported by the Web Forms Viewer.



Note


There is also the option for "More Samples" that will take you back to the Crystal Decisions web site.





The second set of sample applications are for Windows Forms, which are extracted from a self-extracting file and found in the WinForms folder, and which demonstrate the use of Crystal Reports.NET with Windows applications. There are separate projects for Visual Basic and Visual C# that can be opened and run. Both of these projects demonstrate a simple "Preview" implementation of the Windows Forms Viewer and allow you to select a report to view. Once you have selected a report file (there are a couple located in the Reports directory of the Samples folder), the report is bound to the viewer; the Print Engine runs the report and uses the viewer to display the results.





Sample Reports



In addition to sample applications, there are also sample report files available for you to use in your testing and development. There are two different sets of reports available in the Reports directory of the Samples folder - Feature Examples demonstrate different features and functionality within Crystal Reports.NET (Charting, Embedded Hyperlinks, Sorting, etc.), and General Business reports are typical of reports that may be created and used in business (Income Statement, World Sales Report).


All of these reports have been created using the sample Access database that ships with Crystal Reports.NET and are indispensable to use when debugging. If you are having difficulty integrating your report and can''''t determine whether it is your code, the viewer, or the report designer itself that is not working, you can substitute your report with one of the sample reports and at least eliminate one option!





Sample Data



A sample database has been included with Crystal Reports.NET and the sample reports listed above are based on this database. The "Xtreme Mountain Bike Company" database (xtreme.mdb) is an Access database that contains tables for Customers, Orders, Products, Suppliers, and Employees, and does not require a copy of Access to be installed or loaded on to your machine to be used.








Tutorials



Crystal Decisions has it''''s own web site dedicated to Crystal Reports.NET and it includes a number of tutorials or walk-throughs that can be used to get up to speed quickly with the product. The web site is located at http://www.crystaldecisions.com/ms/crnet and you will need to register before you can download the tutorials or other materials.


There are a number of tutorials available:





Reporting off ADO.NET Datasets





Viewing a Report in a Web Application





Designing and Viewing a Report in a Windows Application





Exposing Reports as Web Services





Interactivity and Reports in Web Applications





Most of these tutorials can be completed using the sample database and reports that ship with the product, or you can go through the tutorial using your own reports and data source.


Another key resource for Crystal Reports developers is (www.crystaluser.com), which features a number of Crystal Reports forums, or Crystal Decision''''s own web site and forums at (www.crystaldecisions.com).


You can also find more information (and post a question if need be) on Microsoft''''s public newsgroups. The majority of Crystal-related questions, regardless of version or language, get posted to (microsoft.public.vb.crystal), but there are always a few questions posted in the general dotnet newsgroup (microsoft.public.dotnet.general).



Note


You will need a newsgroup reader (like Outlook Express) to access these newsgroups.

There are also a number of good articles at www.dotnet247.com for ASP.NET and other developers, with more than a few articles and questions concerning Crystal Reports integration. You can also find general programming and framework questions there as well.


Finally, Crystal Decisions maintains its own web-based forums at (http://community.crystaldecisions.com) where you can post questions and get some answers. Crystal Decisions does not monitor these forums, but generally the advice is good and you can always find someone who is willing to help. While you are on the site, make sure you register your copy of Crystal Reports.NET for free access to technical support and updates (and the requisite marketing e-mail or two).






/ 115