Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
81
Добавлен:
11.05.2015
Размер:
2.11 Mб
Скачать

NOTE: If you are familiar with the SQL language, you may prefer to click the SQL option in the Source Type box and click the Builder button. The Builder button opens the Visual InterDev Query Builder, allowing you to design a SQL statement that retrieves data from your data source.

12Select a Crystal Smart Viewer from the Viewer drop-down list.

13Close the design-time control.

Once again, several lines of VBScript code are added to your Active Server Page. Microsoft IIS will run this code at runtime and will dynamically generate a report based on your data source.

Editing Active Server Pages

Once the Visual InterDev Design-time ActiveX Control creates the code to generate and display reports on your web site, you can edit that code to customize how the Crystal Smart Viewer and the report appear in a web browser.

The following topics are discussed in this section.

Customizing the Crystal Smart Viewer, Page 47

Modifying the Report, Page 47

Session Timeout, Page 48

Customizing the Crystal Smart Viewer

The Crystal Smart Viewer for Java is a standard Java applet, while the Crystal Smart Viewer for ActiveX is an ActiveX control. Both can be customized using the <PARAM> tags that appear under the <OBJECT> tag created in your Active Server Page by the design-time control. In your Active Server Page, look for the OBJECT tag appearing below the VBScript code. For information on how to change and set parameter for either viewer, see Configuring the Crystal Smart Viewers, Page 49.

Modifying the Report

Although the Visual InterDev Design-time ActiveX Control provides all of the necessary VBScript code to display your reports in a web browser, you may want to customize the output of the actual report. By using the Report Engine Object Model, provided by the Report Engine Automation Server, you can change report format, grouping, selection formulas, and sort fields. For additional documentation, refer to Seagate Crystal Report Engine Automation Server, Page 44.

In your Active Server Page, look through the VBScript code created by the design-time control. Notice that all of the VBScript code generated is server-side script, making your web site compatible with any browser (depending on the Crystal Smart Viewer you specified).

Building Active Web Sites

47

Соседние файлы в папке crystal