Wrox Professional Crystal Reports for Visual Studio NET Second Edition phần 7

Thí dụ ta nhấp nút Browse để tạo 1 ngăn chứa (folder) tên Dev ở dĩa D, Microsoft Visual hiển thị D:\Dev ở hộp Location nhưng project sẽ được tạo và chứa ở ngăn chứa (folder) D:\Dev\Welcome (để ý hàng phía trên phần hiển thị các nút Less, OK, . ta thấy hàng chữ: 'Project will be created at D:\Dev\Welcome) | Chapter 6 need to set the Reportsource property in the load event as shown subsequently using the URL from our earlier example http localhost Chapter06 With the ReportSource property set you can treat this just like any other report setting properties for the viewer and previewing the report which is shown in Figure 6-11. Figure 6-11 Internal Report Web Service An internal Report Web Service refers to a Web service that has been added to your project as a reference. This method is sometimes also called the Proxy Method because every application that consumes a Web service has to have a way to communicate with the service when the application is running. Adding a reference to your Report Web Service creates a Proxy Class that in turn can communicate with the service and create a local copy. 206 Creating XML Report Web Services To add the XML Report Web Service to your Web or Windows application select Project Add Web Reference to open the dialog shown in Figure 6-12. Figure 6-12 Using this dialog enter the complete URL of your Report Web Service and click OK and this will add this reference to your project in the Project Explorer under Web References. To bind an internal Report Web Service to the Windows Crystal Report Viewer you will again need to set the report source only this time using the reference you have added instead of a URL. For example New From that point all of the techniques you learned in Chapter 3 Designing Reports and Chapter 4 Report Integration for Web-Based Applications can be applied to the Report Viewer to customize how your report is presented. Generic Report Web Service To consume a report served through the generic Report Web Service you will need to add the report from the Server Explorer to your project. In the Server Explorer dialog under the node marked Crystal Services navigate to the Server Files branch .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.