Find the entire spectrum of user knowledge—from advice for new users on how to develop, design, and. Technologies for Business Information Systems. The material collected in this book covers a broad range of applications of computer science methods and algorithms in business practice. The final step is to actually export the Crystal report into the specified format.
All you need to do is call the processHttpRequest method, as shown here. The processHttpRequest method causes the Crystal report to be displayed in the export format within the browser window.
However, users of your JSP application will often prefer having the option to view the report on the screen or save the report file to their hard drive so that they can review the report at a later date without having to use your JSP application again.
You can give your users this option by calling the setExportAsAttachment method before you call the processHttpRequest method. The setExportAsAttachment method is used to specify whether or not the user has the option to save the exported report to a hard disk. This is referred to as exporting the file as an attachment, which is similar to an e-mail attachment. The setExportAsAttachment method requires one Boolean argument. A Boolean value of true means that the exported file is treated as an attachment.
When you call the processHttpRequest method, a dialog box is displayed on the screen prompting the user to decide whether to review the report within the browser window or to save the report to a hard disk.
This is the same dialog box that you see whenever you select an attachment to an e-mail. Passing a false argument causes the report to be displayed on the screen only. The following example reiterates concepts covered in this section into a JSP application that exports a Crystal report:.
Previous page. Table of content. The Complete Reference. Oracle8i: The Complete Reference. Maven: The Complete Reference. Recommend Documents. Crystal Reports 9 - The Complete Reference www.
Watters, Ph. Your name. Produce winning presentations and reports with expert advice from this definitive guide. Find the entire spectrum of user knowledge—from advice for new users on how to develop, design, and. Technologies for Business Information Systems.
0コメント