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

14Click the Browse button next to the This Account text box, then locate and select the user you just created (CRWEBUSER).

15Enter the correct password for the user in the appropriate text boxes.

16Click OK in the Service dialog box to save your changes.

17Repeat steps 11 through 16 for the Crystal Web Page Server service.

18Click Close in the Services control panel.

Confirming Correct Installation

Once Setup finishes installing the Web Reports Server, and you have successfully restarted your system, your web server should be automatically restarted. Verify that it has been, and, if not, restart it manually. For more information on starting your web server, refer to the documentation for you web server software.

After confirming that the web server has been restarted, you need to verify that the Web Reports Server has been correctly installed.

1Select "Web Samples and Utilities Page" from the Crystal Reports Program Group menu

or

Open a browser (such as Internet Explorer or Netscape Navigator), and enter the following URL address:

http://localhost/scrsamples

The Seagate Crystal Reports Web Samples/Utilities Page appears in your browser.

2Click the Reports Server Samples link. The Reports Server Samples page appears.

3Select whether the ISAPI/NSAPI Web Reports Server Extension, or the CGI Web Reports Server Extension, and click a viewer option supported by your web browser. A page appears with a list of five sample reports.

4Click the link for one of the sample reports. The report should be generated and displayed inside your browser using the viewer you selected.

If you have trouble getting the Web Reports Server running correctly on your web server, you may need to check the configuration on the web server itself. The following sections demonstrate how to do this in Microsoft’s Internet Information Server and Netscape’s Enterprise Server.

Microsoft Internet Information Server 4.0

To determine if the Crystal Web Reports Server is configured correctly in Microsoft IIS version 4.0, follow these steps:

1Start the Internet Service Manager.

2Under Console Root, double-click the Internet Information Server to expose the machine you are using as the server.

3Right-click on the machine icon and choose Properties from the shortcut menu.

Crystal Web Report Server

12

4In the Properties dialog box, select WWW Service in the Master Properties section and click the Edit button.

5Click the Home Directory Tab to activate it.

6Click the Configuration button.

7Locate the extension .rpt and ensure that it points to the correct path for the file crweb.dll. By default, this file is installed in the default directory for Seagate Crystal Reports which you specified at runtime.

8Verify that the .cri extension also points to the correct path for the Web Reports Server extension.

Netscape Servers

To determine if the Crystal Web Reports Server is configured correctly on Netscape web servers, follow these steps:

1Locate the MIME.TYPES file and the OBJ.CONF file. These files are normally located in the following directories:

Netscape Enterprise 3.51: <dir>\Netscape\SuiteSpot\https-<machinename>\config

Netscape Enterprise 3.0:

<dir>\Netscape\SuiteSpot\https-<machinename>\config

Netscape Enterprise 2.0 and Netscape FastTrack: <dir>\Netscape\server\https-<machinename>\config

2In MIME.TYPES, verify the following lines appear:

type=magnus-internal/rpt exts=rpt type=magnus-internal/cri exts=cri

3In OBJ.CONF, verify that the following line appears:

Init fn="load-modules" funcs="CrystalReportServer"

shlib="C:/Program Files/Seagate Software/Crystal Reports/crweb.dll"

4In OBJ.CONF, under the heading <Object name="default"> verify that the following lines appear:

NameTrans fn="pfx2dir" from="/viewer" dir="C:/Program Files/Seagate Software/Viewers"

NameTrans fn="pfx2dir" from="/scrsamples"

dir="C:/Program Files/Seagate Software/Crystal reports/sample" NameTrans fn="pfx2dir" from="/scrreports"

dir="C:/Program Files/Seagate Software/Crystal Reports/Reports"

Service fn="CrystalReportServer" method="(GET|POST)" type="magnus-internal/rpt"

Service fn="CrystalReportServer" method="(GET|POST)" type="magnus-internal/cri"

5If any of these lines are missing, add them to the appropriate file.

6Shut down the Netscape web server and reboot your web server system.

Crystal Web Report Server

13

Virtual Directories

The following virtual directories should be set up on your web server pointing to the indicated paths:

/viewer: C:\Program Files\Seagate Software\Viewers

/scrreports: C:\Program Files\Seagate Software\Crystal Reports\Reports

/scrsamples: C:\Program Files\Seagate Software\Crystal Reports\Sample

Creating a Web Site

Once you have installed and set up the Seagate Crystal Web Reports Server, you will, undoubtedly, want to create a web page that uses your new online reporting features. The following steps lead you through the process of creating a simple web page that links to two sample reports installed with Seagate Crystal Reports.

First, you must decide on a location for your new web page, then create a virtual directory for the site that points to the new directory.

1Create a new directory on the server where your page will be located. For this example, we will use the directory

c:\webroot\newsite

NOTE: For information on the location of your web server’s root directory, refer to your web server software documentation. The directory shown here is intended only as an example.

2Use your web server administration software to create a new virtual directory that points to the physical directory you just created. For this example, we will use the virtual directory

http://localhost/newsite

3Next, you must create a new physical directory and virtual directory for the reports your site will link to.

http://localhost/scrreports/accounting

4Using a simple text editor, such as Notepad, or your favorite HTML editor, create the following HTML code.

<HTML>

<HEAD>

<TITLE>Index of Reports</TITLE> </HEAD>

<BODY>

<H1>Check out these reports!</H1> <HR>

Crystal Web Report Server

14

<UL>

<LI><A HREF="http://localhost/scrreports/accounting/hr.rpt"> Employee Profile

</A></LI>

<LI><A HREF="http://localhost/scrreports/accounting/mkpcat1p.rpt"> Product Catalog

</A></LI>

</UL>

</BODY>

</HTML>

5Save the file as reportlist.htm in the c:\wwwroot\newsite directory.

6Open your web browser, and open the following URL: http://localhost/newsite/reportlist.htm

7Click one of the two links in your new web page to generate and display the report inside your browser.

In this example, you specified two RPT files using standard URL addresses. The RPT extension is analyzed by your web server, and is determined to be an extension that should be handled by the Web Reports Server application. The URL is handed off, and the Web Reports Server determines how to handle the requested RPT.

When the report is displayed inside your browser, the Web Reports Server analyzes the type of browser you are using and delivers the report using a Smart Viewer it determines is appropriate. For example, if you are using Internet Explorer 4.0, you will see the report inside the Crystal Smart Viewer/ActiveX. If you are using Netscape Navigator 4.0, you will see the report inside the Crystal Smart Viewer/Java.

As a web site designer, you can specify which viewer is used when the report is requested, overriding the default viewer used according to the browser. For example, the following URL forces the Java viewer to be used, even if you are running Internet Explorer or any other web browser:

http://localhost/scrreports/accounting/mkpcat1p.rpt?init=java

NOTE: If the browser you are using does not support the technology used by the viewer specified, Java in this case, an error will occur or an empty web page will be displayed.

In this URL, INIT is a parameter recognized by the Web Reports Server. By setting the INIT parameter equal to java, you can force the Web Reports Server to use the Java viewer when displaying the report inside a browser. The Web Reports Server supports several parameters for controlling how reports are generated and displayed. For more information, see Web Reports Server Commands, Page 28.

For More Information

For the latest information on configuring the Seagate Crystal Web Reports Server, refer to the Seagate Software Tech Support site at:

http://www.seagatesoftware.com/crystalreports/

or visit:

http://webacd.seagatesoftware.com

Crystal Web Report Server

15

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