tailieunhanh - Crystal Reports For Visual Studio 2005 phần 3

Trong phương pháp sự kiện redisplay_Click (), bạn thay đổi các chuỗi ký tự hiện đang được giao tài sản SelectionFormula của điều khiển CrystalReportViewer. Để tạo CeComparisonOperator enum 1. Trong Solution Explorer, nhấp chuột phải vào tên dự án là in đậm, điểm để Thêm, và sau đó nhấp vào Add New Item. | Walkthroughs Visual Basic northwindCustomersReport end C northwindCustomersReport end Whether you have chosen to instantiate an embedded report class or a non-embedded report class ReportDocument the variable name used is the same northwindCustomersReport. This allows you to use a common set of code in the procedures that follow. You are now ready to build and run your project. It is expected that the report loading will fail because code has not yet been written to log onto the database. To test the loading of the NorthwindCustomers report 1. From the Build menu select Build Solution. 2. If you have any build errors go ahead and fix them now. 3. If you use a non-embedded report in a Windows project locate the compiled Windows executable in the bin Visual Basic or bin debug C subdirectory and then copy the report to that subdirectory. Note To have the non-embedded report loaded by the Windows executable at runtime the report must be stored in the same directory as the Windows executable. 4. From the Debug menu click Start. Note If you are developing a Web Site in Visual Studio 2005 and this is the first time you have started debugging a dialog box appears and states that the file must be modified. Click the OK button to enable debugging. The NorthwindCustomers report does not display because the database logon code has not been added. Note Results may vary depending on the version of Crystal Reports that you use. For example if you have Crystal Reports 10 or higher installed a form appears and requests that you provide database logon information for that report. This is a new feature of Crystal Reports Developer. If you are running a previous version of Crystal Reports an exception is thrown. In either case you must follow the next step procedure to create a fully functional application. 5. Return to Visual Studio and click Stop to exit from debug mode. Adding the Report Logon Code You .