|
|
|
|
|
|
|
|
|
|
|
|
|
|
Running Crystal Reports Web Component Server with Domino R5 via CGI (continued)
The records that appear in my report will only contain those values with a factory equal to Virginia.
One nice feature of Crystal Reports is the ability to create parameter fields. These are user prompts that allow users to respond to prompts by the server in order to select exactly what data will appear in a report at runtime. Parameter fields can be used in formulas, selection formulas, and sub reports. The Crystal Web Server allows you to pass these parameter fields via the Prompt# command.
When using Prompt#, you must remember that values for parameterized fields are assigned in the order they exist in the report. You have the ability to pass more than one parameter field at runtime.
Parameter fields can be very handy when building a Domino-based reporting solution because you can create a front end to gather the query from users and then pass this via a URL command to generate the report at runtime or on refresh. The syntax is as follows:
PROMPT#=<parameter_field_values>.
|
So if I had a parameter field on my report that corresponded to the country, the syntax would be: Prompt0=USA.
You can also specify whether the end-user should be prompted for parameter values on refresh of the report by using:
If you use PromptOnRefresh=1, the report will automatically refresh and prompt for parameter values.
Choosing a viewer
In part one of this series, I covered the various viewers supported by the Crystal 8 Reports Server. If you're designing a reporting solution for an environment that might require restricting which viewer is used to generate reports by end-users, you can do so with the INIT Command.
If you don't specify a viewer using this command, the Web Component Server auto-detects the browser being used and provides a viewer for it.
Your choices for viewers within INIT are as follows:
| Control |
Viewer |
| Nav_plugin |
Netscape Plug In |
| Actx |
Active X |
| html_frame |
HTML with frames |
| html_page |
Standard HTML |
| java_plugin |
Java via Java Plug In |
| Java |
Java via JVM |
For example, if I were to specify the Active X viewer be used as the Smart Viewer, I would pass: Init=actx.
Exporting reports
Crystal Reports 8 supports a number of export formats within both the standard reports interface and the Web Server. This is a very useful feature, because users often want the option of exporting data to another format. The Crystal Web Reports server can export data to the following formats:
- HTML 4.0;
- HTML 3.2;
- Excel 5.0 (.xls);
- Excel 5.0 Extended (.xls);
- Word Document (.doc);
- Adobe Acrobat (.pdf);
- Seagate Crystal Reports.
You can configure the browser to automatically launch the corresponding application after the export completes.
The syntax for the CMD and EXPORT_FMT commands is as follows:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.
The many included activities and demos will make you a pro! Expert instructor help is a click away.
Click here to try a FREE demo course!! |
-- Advertisement --
Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino
- Don't spend unproductive time maintaining different versions of the same spreadsheet
- Preserve data integrity and security in multi-user environments
- Create reports in minutes INSIDE Notes
- Get freedom from iterative report requests, deliver self-serve capabilities
Experience Reporting, Dashboards, and Analysis INSIDE Notes.
Try IntelliPRINT NOW! |
|
|
|
|
|
|
|
|
|
|