About Enhanced Spreadsheet output
2.8.13 About Enhanced Spreadsheet output
Oracle Reports 11g Release 1 11.1.1 introduces a new spreadsheet output format, ENHANCEDSPREADSHEET, which enables you to burst and distribute reports to the spreadsheet format, as well as generate large data sets up to 75,000 rows to spreadsheets. ENHANCEDSPREADSHEET output formats generate output from paper layout report to HTML files that can be directly opened with Microsoft Excel 2000. You can: ■ Generate report output to spreadsheet format from existing paper layout reports saved in any format .rdf, .xml, .jsp, using rwrun or Reports Server clients rwclient, rwservlet. See the Example below. ■ Preserve the rich layout formatting such as colors, fonts, conditional formatting, graphs, and images. Advanced Concepts 2-77 Prerequisites ■ Microsoft Excel 2000 or higher on the client machine for viewing the output. Note that this software is not needed on the machine where Oracle Reports Services is running. Usage notes ■ Enhanced Spreadsheet output requires more memory than DelimitedData output. This is an important consideration for long-running and large reports. ■ To change the name of the output worksheet, set the reports Title property. ■ Only bitmapped reports can be generated to spreadsheet output; you cannot generate a character-mode report to Enhanced Spreadsheet output. ■ The following paper layout objects are supported in Enhanced Spreadsheet output: – text boilerplate and field – images any format, including images that are imported, linked, or stored in the database – imported drawings, as well as CGM and OWF drawings – graphic lines ■ The following paper layout objects are not supported in Spreadsheet output: graphic arc, polygon, rectangle, rounded rectangle, stretchable line, and OLE external object for reports developed prior to Oracle9i Reports 9.0.2 . Space for these drawn objects is reserved, but there is no visible representation in the output. This limitation does not apply to horizontal lines. ■ The following font attributes are supported in Spreadsheet output: size, face, color, style italic, oblique, underline, overstrike, outline, shadow, weight bold, normal, extra bold, ultra bold. ■ The following Web report properties are supported in Spreadsheet output: – Hyperlink property – Hyperlink Destination property – Additional Attributes HTML property for Parameter Form fields – Table Attributes HTML property for frames and repeating frames – Alternative Text property for images – Contains HTML Tags property for boilerplate text or field objects that include HTML tags ■ The following report taxonomy properties are supported in spreadsheet output: Note: DESFORMAT=ENHANCEDSPREADSHEET behavior is the same as the functionality of the rw:include JSP tag. Enhanced Spreadsheet output is not paginated; no page setup information is written in the output, and it is formatted as a single worksheet. Enhanced Spreadsheet output is driven by the layout; the reports ouput displays objects that are in the body area of each section Header, Main, and Trailer of the paper layout, and does not format any content in the margin, header, or footer areas. 2-78 Oracle Reports Users Guide to Building Reports – Title property – Author property – Subject property – Keywords property ■ Graphs embedded in Spreadsheet output are static image files, and are not interactive. Thus, the Graph Hyperlink property is not supported in Spreadsheet output. ■ For reports that support globalization, the metadata for direction and charset must be provided in a before report escape, because this information is not written to the generated output, by default. For example, you can define a before report escape as follows: html META HTTP-EQUIV=Content-Type CONTENT=texthtml; charset=encoding body dir=Direction bgcolor=ffffff ■ The frames and repeating frames defined in the paper layout are translated to tables in the output. You can specify table attributes such as cellspacing, cellpadding, and width using the Table Attributes HTML property for frames and repeating frames. ■ For reliable formatting of spreadsheet output, the whole layout area should be enclosed in a frame. This prevents the possibility of parallel objects displaying in different vertical positions, one below the other. ■ The order of the report sections Header, Main, and Trailer is preserved in spreadsheet output; that is, the Header section output appears first, followed by the Main section, followed by the Trailer section. ■ If boilerplate objects or fields are not contiguous to each other; that is, if there is a gap between their boundaries, this might result in empty cells in the spreadsheet output. ■ If your report defines conditions that may change cell positions when the report is formatted, these changes are not reflected in spreadsheet output format. For example, if a report defines a condition that causes column 2 to display at the position of column 1 when column 1 is empty, Spreadsheet output will always display both columns, even when the condition is met. Oracle Reports generates the HTML table that forms the spreadsheet immediately after the report is compiled, not during formatting. During formatting of spreadsheet output, the table cells are filled with values. ■ The Oracle Reports color palette is used while designing the report. When you generate your report output to spreadsheet output, Microsoft Excel will show the closest matching color from its color palette. ■ If you rotate a boilerplate object in the paper layout, the object will appear horizontal in the spreadsheet output. ■ The following cell properties are not supported in spreadsheet output: background pattern, border color, and border pattern. ■ Images included in the paper layout of the report will appear in the spreadsheet output only if the Reports Server is running in non-secure mode. In the case of a secure Reports Server, images will not appear in the spreadsheet output. This is because generating images in the output involves multiple calls to the Reports Server one call per image. Once the user is authenticated, Oracle Reports passes the users identity between the browser and the secure Reports Server using Advanced Concepts 2-79 cookies. However, Excel does not support cookies. As a result, the call to the secure Reports Server seems like a call from a non-authenticated user. Thus, the Reports Server refuses to pass on the images. As a workaround, you can generate the spreadsheet output from a secure Reports Server to a URL using WebDAV. ■ Summary and formula columns will be shown as values, not as dynamic Excel formulas. Also, the page-level summary columns are reduced to report-level summary columns, since there is no page concept in Excel. ■ If you set the Vertical Elasticity property of a frame to Fixed, the output in Excel will show only as many records as could appear on the first page of the paper output. Since Excel does not have a page concept, it is not able to overflow the remaining rows to the next page. ■ Since spreadsheet output is not paginated, only the before report escape and after report escape are supported see Section 2.2.10, About before and after escapes . ■ In an after report escape, adding an HTML command outside the body does not reflect when the report is generated to spreadsheet output, even though the HTML command is written in output properly. For example: body tabletrtdB the text to be bolded Btdtrtable html Adding the HTML command before the closing body tag reflects correctly when the report is generated to spreadsheet output. For example: tabletrtdB the text to be bolded Btdtrtablebodyhtml ■ Spreadsheet format is supported in rwservlet commands such as SHOWJOBS. It is also supported in Enterprise Managers job queue, and in Oracle Portals access object definition. ■ You can distribute a report in Enhanced spreadsheet output format, specified in a distribution XML file. Restrictions ■ XML-based bursting is supported in ENHANCEDSPREADSHEET output format only. Example To generate the paper layout of your report to Microsoft Excel output through a URL using rwservlet, you can type a URL that includes the following in your browser: http:hostname:portreportsrwservlet?report=report_name +server=server_name+userid=db_connect_string+destype=file +desformat=Enhancedspreadsheet+desname=C:\temp\myexcel_output.htm Other capabilities for generating Spreadsheet Output You can also generate spreadsheet output as implemented in releases prior to Oracle Reports 11g Release 1 11.1.1, in the following ways: Note: Microsoft Office 200020022003 supports Hypertext Markup Language HTML as a native file format. Enhanced Spreadsheet output relies on producing HTML output, which can be understood by Microsoft Excel as a file with valid Excel format. 2-80 Oracle Reports Users Guide to Building Reports ■ Generate a report to delimited output , as described in Section 4.7.10, Generating delimited output : Advantage : Delimited output can be generated from existing paper layout reports saved in any format .rdf, .xml, .jsp, either directly from Oracle Reports Builder, or by running the report from the command line. Disadvantage : Only data as defined by the report Data Model, no layout information, displays in the output. ■ Deploy a report with the Reports Server under Oracle WebLogic Server to display it in Microsoft Excel inside your Web browser , using either of the following methods: – When you do not have an existing paper layout: open an Excel HTML template file in Oracle Reports Builder, add the data, save the report as a JSP file, then deploy the report. This method enables you to use JSP coding to include dynamic Excel formulas not just static values of Reports summary and formula columns, dynamic graphs not just static Reports graph images. – When you do have an existing paper layout: starting with a paper layout report, edit the Web Source view to add a rw:include tag to include the group frame of your paper layout in the Web source view as JSP code, save the report as a JSP file, then deploy the report. For the steps to implement this method, see Chapter 29, Building a Report for Enhanced Spreadsheet Output . Advantage : You can use rich formatting such as colors and fonts so that you generate report layout, not just data, in Microsoft Excel output inside a Web browser. Disadvantages : You must add custom JSP coding to get the output in Excel. The report can only be run through the JSP engine and not through rwservlet, thus this method can only display the Microsoft Excel output inside a Web browser. See also Section 4.7.11, Generating Enhanced spreadsheet output For choosing the appropriate delimited output solution for given requirements, see Displaying Report Output in Microsoft Excel in the appendix Troubleshooting Oracle Reports Services in the Oracle Fusion Middleware Publishing Reports to the Web with Oracle Reports Services manual.2.8.14 About text output
Parts
» Oracle Fusion Middleware Online Documentation Library
» About Oracle Reports Builder
» About tabular reports About group above reports About group left reports About form-like reports
» Summary settings Creating a summary for a matrix requires more information
» Matrix object The matrix object defines the intersection of at least two
» About the Report Wizard About the Report Block Wizard About the Data Wizard
» About the Report Editor About the Data Model view About the Paper Layout view
» About the Paper Design view About the Paper Parameter Form view
» About queries Data Model Objects
» About groups Data Model Objects
» About database columns About data links
» About frames About repeating frames
» About frame and repeating frame sizing About fields
» About boilerplate objects Layout Objects
» About parameters Parameter Form Objects
» About Parameter Form fields About Parameter Form boilerplate About Parameter Forms for Web reports
» About making multiple selections in the Property Inspector
» About the Runtime Parameter Form About the Previewer
» About report titles About report sectioning and sections
» About the report unit of measurement About the report dimensions
» About fonts in reports About conditional formatting
» About nested matrix reports About matrix with group reports
» Using JSPs in Oracle Reports
» About previewing JSP-based Web reports
» About Web links for HTML output
» About Web links for PDF output About hyperlinks
» About style sheets Web Reports
» About summary columns About formula columns About placeholder columns
» About bind references About referencing columns and parameters
» About lexical references About referencing columns and parameters
» About non-linkable queries About links versus groups
» About matrix objects Data Model Objects
» About layout objects About layout defaulting
» Implicit anchoring algorithm About anchors
» About changing colors and patterns
» About resizing objects About moving and layering objects in the Paper Layout view
» About the PLSQL Editor About the Stored PLSQL Editor About the Syntax Palette About program units
» About stored program units About external PLSQL libraries
» About attached libraries About formulas
» About the Oracle Reports Builder built-in package SRW About the Tools built-in packages
» About report triggers About triggers
» About format triggers About validation triggers
» About templates About template attributes
» About applying templates About inheritance in templates
» About format order Output Formats and Capabilities
» About batch reporting About pluggable destinations
» About event-driven publishing About switching the printer tray About XML in reports
» About HTML formatting Output Formats and Capabilities
» About PDF output Output Formats and Capabilities
» About RTF output About delimited output
» About Enhanced Spreadsheet output
» About text output About creating an ASCII character-mode report
» About database roles About Oracle Net Services About user exits
» About the debugging process About the PLSQL Interpreter About the Source pane
» About debug commands in the PLSQL Interpreter About the current execution location
» About the current scope location About debug levels
» Oracle Reports Components Summary
» Using the Oracle Reports online Help Locating other documentation
» Setting color palette preferences Setting properties of multiple objects
» Selecting single objects Selecting multiple objects Selecting objects owned by a frame
» Adding index to a report Creating an ASCII character-mode report Preparing a multiplatform report
» Adding navigation controls for HTML page-streamed output using the Property
» Running and dispatching a report from the user interface
» Generating PDF output Generating XML output
» Generating RTF output Generating text output Generating delimited output
» Generating Enhanced spreadsheet output Distributing a report to multiple destinations
» Deploying a report Changing orientation
» Displaying report output in your Web browser Displaying individual pages of HTML report output
» Scrolling and paging Splitting the viewing region Magnifying or reducing the output
» Printing a report on a preprinted form Switching the printer tray Printing a report on UNIX
» Suppressing the Parameter Form E-mailing a report
» Creating a query: Report Wizard Creating a query: Data Wizard Creating a query: SQL Query tool
» Modifying a query Using Query Builder Selecting HTML tags from the database
» Selecting an image from the database Selecting an image URL from the database
» Creating a break group Creating a matrix cross-product group
» Creating a data link Creating or editing a formula column
» Creating a field object Creating a frame or repeating frame Creating a matrix object
» Editing text Referencing a field in boilerplate text
» Linking a boilerplate text object to a file Linking an HTML text object to a file
» Creating page numbers Resetting page numbers
» Anchoring objects together Viewing implicit anchors Moving an anchor
» Setting color palette preferences Changing colors Changing patterns
» Highlighting a value Highlighting a row
» Specifying date and time format masks
» Specifying number format masks
» Creating a text heading Creating a heading that includes database values
» Adjusting margins Adding a page break
» Using a pre-defined system parameter Creating a user parameter
» Creating a list of values LOV for a parameter Validating a parameter value at runtime
» Creating a template Defining default template attributes
» Defining override template attributes Applying a template to a report
» Adding a template to the pre-defined templates list Creating an HTML template for a report portlet
» Using the mouse in the PLSQL Editor The following table describes the mouse
» Creating a local program unit Creating a stored program unit
» Deleting a program unit Moving a program unit between client and database server
» Compiling a single program unit Compiling all program units Compiling all uncompiled program units
» Debugging a report Running a report in debug mode
» Setting a breakpoint Setting a debug trigger
» Accessing non-Oracle data sources
» Improving performance using WHERE clauses
» Prerequisites for This Example Use the Report Wizard to Create a Report
» Summary Oracle Fusion Middleware Online Documentation Library
» Prerequisites for This Example Use the Report Wizard to Create a Mailing Label Report
» Add Vertical Spacing Summary
» Prerequisites for This Example Use the Report Wizard to Create a Form Letter Report
» Use the Data Wizard to Create Two Queries
» Use the Report Wizard to Layout the Data
» Use the Paper Layout View to Add White Space
» Prerequisites for This Example
» Create a Data Model and a Group Above Layout
» Format Fields Oracle Fusion Middleware Online Documentation Library
» Examine the Summary Column Properties optional
» Create a data model with a break group and group left layout
» Format a field Use the Property Inspector to add white space
» Redefault the layout Group Report with Two Break Columns
» Prerequisites for This Example Summary
» Create a Data Model with a Data Link
» Format a Field Oracle Fusion Middleware Online Documentation Library
» Prerequisites for This Example Create Two Queries
» Run Your Report to Paper Summary
» Prerequisites for This Example Create a New Report Manually
» Use the Paper Layout View to Create Two Layouts
» Format Fields Summary Oracle Fusion Middleware Online Documentation Library
» Prerequisites for This Example Use the Report Wizard to Create a Simple Report
» Create a formula column to calculate the tax
» Prerequisites for This Example Create a Query in the Data Model View
» Create Three Summary Columns
» Create the Default Layout Using the Report Wizard
» Modify the Layout of the Report Run your Report to Paper Summary
» Prerequisites for This Example Create a Data Model and a Group Left Layout
» Move a Summary Oracle Fusion Middleware Online Documentation Library
» Add White Space and Format Fields Summary
» Add Summary Columns for the Header Data Add a Page Heading
» Prerequisites for This Example Create a Simple Report Definition
» Add a border around the report
» Change the font size and style
» Display a line between each record
» Prerequisites for This Example Create a Data Model and a Group Above Layout
» Redefault the Layout Oracle Fusion Middleware Online Documentation Library
» Set Properties and Format Fields
» Create New Fields Oracle Fusion Middleware Online Documentation Library
» Reference Fields Summary Oracle Fusion Middleware Online Documentation Library
» Prerequisites for This example Create a Data Model and a Layout
» Add a Field Remove a Redundant Field
» Suppress Redundant Values Oracle Fusion Middleware Online Documentation Library
» Prerequisites for This Example Create the Data Model with Two Linked Queries
» Create a formula column in the detail query Create a summary column in the master query
» Create the initial layout of your report
» Add a Format Trigger to Suppress Labels
» Add Text to Display when No Records Display
» Prerequisites for This Example Create a Basic Tabular Report
» Add Conditional Formatting to the Report
» Examine the Conditional Format Trigger Code Summary
» Prerequisites for This Example Create the Data Model and Layout
» Add Additional Text Oracle Fusion Middleware Online Documentation Library
» Access to the data source and installing the Pictures table
» Create the Data Model with Two Linked Queries
» Create the initial layout of your report using the Report Wizard
» Prerequisites for This Example Create a Single-Query Matrix
» Create a new report manually Create a data model with a cross product and a data link
» Create the layout with the Report Wizard
» Add Summaries to the Single-Query Matrix
» Format Monetary Values Add Zeroes in Place of Blanks
» Create a new report manually Create a data model with a cross product and data links
» Format Monetary Values Summary
» Prerequisites for This Example Create a Matrix Group Data Model and Layout
» Add Labels and Lines for Summaries Add Space Between Groups
» Prerequisites for This Example Create a Query and the Layout
» Modify the Web Source of Your JSP Report
» Modify Your JSP Report to Display in Microsoft Excel
» centimeters to make room between the f_bottom and f_top fields.
» Modify the Web Source of Your JSP Report Summary
» Prerequisites for This Example Create a Report Using the Report Wizard
» Create a formula column in your data model
» Create a Query That Returns the Items in the Order
» Rearrange the layout objects
» Import the blank check image Set up the check printing fields
» Rearrange the new fields according to the blank check image
» Create a check stub in the Paper Design view
» Add order details to the check stub
» Create the queries Manually Create the Data Model for Your Report
» Create an address label for your form
» Add the order item details to your report
» Adjust the layout and add summaries
» Format Your Report in the Paper Design View
» Create Summary and Formula Columns
» Prepare the Layout Oracle Fusion Middleware Online Documentation Library
» Insert Invoice Information Oracle Fusion Middleware Online Documentation Library
» Prerequisites for This Example Create a Data Model and Tabular Layout
» Create Ranking Logic for Top number of Customers
» Add a Layout Object for a Parameter
» Create a table in the database to hold the TOC data Create a group above report
» Create an After Parameter Form trigger
» Create a second query in the data model
» Create a table in the database to hold the information for the index Create a format trigger
» Prerequisites for This Example Create a table in the database to hold the TOC data
» Create a Second Query in the Data Model Create a Report Block to Display the Table of Contents
» Run Your Multilevel Table of Contents Report to Paper
» Set Up an Existing Report for Bursting
» Edit the Distribution XML Definition Run the Report
» Create the Query and Paper Layout for a Multibyte Report
» Display Multibyte Characters in the Report Create a PDF Document of Your Report
» About Graphs and Graph Wizards
» Funnel Graph New Graph Types
» Curved Line or Fit To Curve Graph
» Enhanced Pie New Graph Types
» Prerequisites for This Example Create a New PLSQL Library
» Create a query Create a formula column that calculates bonuses
» Create a report-level function that calculates total compensation
» Create a second formula column for total compensation
» Create the Report Layout Using the Report Block Wizard
» Prerequisites for This Example Define a REF CURSOR Type
» Create Links Between REF CURSOR Queries
» Add Summary Columns Oracle Fusion Middleware Online Documentation Library
» Create a Layout Oracle Fusion Middleware Online Documentation Library
» Move the SELECT Statements Into Packages Move the Packages Into a Library
» Create a Parameter Form in HTML
» Create a data model manually for the Parameter Form
» Create a dynamic LOV in the Parameter Form
» Deploy the JSP Parameter Form and the Target Report
» Update the REPORTS_CLASSPATH environment variable
» Import the Java classes into Reports Builder
» Create a package to store your information
» Create a Before Report trigger Create a query in the Data Model view
» Create a formula column to retrieve the barcode image
» Create a formula column that returns the order total
» Create a layout for your report
» Create a query in an existing HTML file
» Create three formula columns in your data model
» Initialize the barcode JavaBean and set its properties
» Create a SQL query for your new report
» Create an XML query to access your XML data source
» Create a data link between two queries
» Create a layout for your report using the Report Wizard
» Apply alternating row colors to your report Filter your XML data using a group filter
» Prerequisites for This Example Run Your Report to Paper
Show more