PROBLEM | When displaying a crystal report using the web report server the username and password needed to logon to the database are to be supplied along with the report name. (ex: ) The problem with this is, the user will be able to see the username and |
SOLUTION
When displaying a crystal report using the web report server the username and password needed to logon to the database are to be supplied along with the report name.
PURPOSE: | To display crystal reports on the web(seagate crystal reports 6.0) using the web report server. The following will show you how to display the crystal report without displaying the username and password in the URL. |
SCENARIO: | One .html page — > “Report.html” The “Report.html” page contains a pull-down menu containing report names and a “GET REPORT” button. The user selects a report from the pull-down menu and clicks on the “GET REPORT BUTTON”. The crystal report is then displayed in the Cystal ActiveX Viewer. |
PRE-REQUISITES: | Create the crsytal reports shown in the pull down menu in the “Report.html” page and save them in the same directory that contains the “Report.html” file, on your web server. |
SYSTEM REQUIREMENTS: | Seagate Crystal Reports 6.0/7.0, IIS 4.0 and IE 4.0 or above. The Crystal reports should be installed on the web server. Be sure to apply all the patches supplied by Seagate if using the crystal reports 6.0 |
STEPS TO FOLLOW
STEP 1 | Create the “Report.html” file. To do this, simply copy the following code, paste it into a new file in a text-editor (ex notepad,editplus etc.) and save the file as “Report.html” function OpenReport() Report1.rpt Here Report1.rpt … Report5.rpt are the crsytal reports that you want
|
CAUTION | Make sure that the “Report.html” and all the crystal reports are in the same directory on your web server. Then launch the “Report.html” page from your browser. Select a report and click on the “Get Report” button. This will display the report in the ActiveX Viewer. |