Oracle Discoverer Desktop User's Guide 10g (9.0.4) for Windows Part Number B10272-01 |
|
This chapter explains how to create reports with Discoverer Desktop.
The topics covered in this chapter include:
Tables and crosstabs are displayed in a format that easily lends itself to reporting of results. Additional options, such as adding headers and footers, page numbers, and the date, help you prepare the report for printing.
Here is an example of a table and a printed version of it as a report.
Use the Page Setup dialog box to add print options to a report.
To select print options:
The Page Setup dialog box appears. The tabs across the top of the dialog box list the various types of options you can select to design the report.
Print What--Specifies the sheet(s) that you want to print.
Note: Be careful when selecting this option if your worksheet includes many pages and data items. You may print more than you intend.
Page Order--Specifies how to print worksheets that don't fit on a single page, such as a table with many columns.
Orientation--Prints in either Portrait or Landscape mode. Tables and crosstabs often are better suited to the Landscape mode.
Scale--This option is available if your printer uses a Postscript driver for printing. Scaling prints the table or crosstab at the scale factor in the box. Click the up and down arrows to increase or decrease the number. Scaling is particularly useful when you're printing tables and crosstabs that are too big to fit on a single page. Scaling "shrinks" the table or crosstab so more rows and columns fit on the page. (You can also configure scaling from the File ¦ Print ¦Properties, Advanced Tab dialog, if a postscript printer is being used.)
Available Headers--Lists headers you have already created. Click the drop-down arrow to see the list. Select the one you want on your report. The names are derived from the text typed into the boxes for the Left, Center, and Right sections.
To create a new header (or footer), choose <none> from the drop-down list. Enter the header text in the three boxes for the Left, Center, and Right sections. Click the Add button. That header is added to the drop-down list. To remove a header from the list, select it and click the Remove button.
Line Width--Sets the width of a line that separates the header from the body of the report. Choose No Line if you don't want a separating line on the report.
Left, Center, Right Sections--Displays the text of the header selected in the Available Header list above. To edit a header, click in a box and type the new text. By default, the Left Section's text is left-justified, the Center's text is centered, and the Right Section's text is right-justified.
Insert--Lists information that you can add to the header. Click in the text where you want the inserted information to appear, then choose from the list to add a text code to the header or footer. The text code is a "placeholder" for variable information in the report.
In the following figure, &Date is the placeholder for the current date when the report is printed. Because the inserted information is in the Left Section box, the current date appears at the left side of the page on the printed report.
You can mix typed text with inserted text. Here are some examples:
Font--Displays the Font dialog box. Click anywhere in the section where you want to change the font. Click the Font button then select the options for the text. Click OK. All the text for the selected section receives the new font.
Margins--Sets the margins on the page. Click the up and down arrows next to a margin setting to increase or decrease it.
From Edge--Sets the distance of the header and footer from the edge of the paper. Click the up and down arrow to increase or decrease the distance. Note that the distance from the edge of the page cannot be greater than the margin; otherwise, the header or footer would print in the table or crosstab. For example, if the bottom margin is 1.00, the footer cannot be 1.25.
To preview a report, click the Preview button on the Page Setup dialog box or choose File | Print Preview. The Print Preview window appears and shows a representation of the printed report.
The buttons across the top of the Print Preview window are for selecting preview options:
Print--Prints the report.
Next Page--Displays the next page of the report. As you move through the pages, the page number of the report appears at the bottom left corner of the window.
Prev Page--Displays the previous page of the report.
Two Page/One Page--Displays two report pages side-by-side. When two report pages are displayed the button changes to read One Page. Click the One Page button to display a single page. This option is not available when the page is zoomed in, because two pages cannot fit side-by-side in the window.
Zoom In--Enlarges the page so you can preview it in more detail. You can zoom in up to three times. The pointer becomes a magnifying glass. You can also zoom in the image by putting the pointer anywhere on the page and clicking.
Zoom Out--Reduces an enlarged (zoomed in) image.
Close--Close the Print Preview window.
You can send worksheets, graphs, and selections of a table or crosstab as part of an e-mail message. This feature is available for most e-mail applications, however, if it does not appear on the menu, your e-mail application does not support the feature.
To send a report with an e-mail message:
The Prepare Mail dialog box appears.
Current Sheet--Selects the current worksheet displayed in the workbook window to send with the e-mail.
All Sheets--Selects all the sheets in the workbook to send with the e-mail.
Selection--Sends a portion of the worksheet if you have a portion of the worksheet selected.
Graph--Sends a graph if a graph is displayed. The graph is sent as an attachment to the e-mail.
Send this as--These options are available for the appropriate types of reports. For example, graphs can only be sent as attachments, not as message text.
Note: To send the workbook in a Discoverer format, select All Sheets and send the workbook as An Attachment.
What format do you want--Click the drop-down arrow and choose a format appropriate for your e-mail application. The options on the list correspond to the type of worksheet you want to send.
For example, the only format for a graph is Windows Meta File (WMF), which is the proper format for sending a graph. Therefore, the drop-down menu is not available for graphs. Similarly, to send a selected portion of a worksheet as attachment text, the drop-down menu provides the appropriate options.
The following figure shows some available options for attachments:
If you select Oracle Report Definition File (*.rdf), a Next button appears at the bottom of the dialog box so you can select additional formatting for the report. See Section 6.3.1, "Exporting to Oracle Reports" for details.
Your e-mail application starts. Based on your selections on the Prepare Mail dialog box, the worksheet or workbook is either an attachment or the message text of the e-mail message.
You can export tables and crosstabs in a variety of formats to open them in other applications. For example, you can export a table to a Microsoft Excel workbook or a Lotus 1-2-3 spreadsheet and then use Excel or Lotus 1-2-3 to open the table.
To export to other applications:
The Export dialog box appears. See the previous section for a description of the export options.
For example, in the dialog box shown above, the path is C:\Video Stores Analysis.xls where Video Stores Analysis.xls is the name of the report.
To rename the report in that path to Sales_Figures, select Video Stores Analysis.xls and then type Sales_Figures.
The report is saved in the new format in the directory you specified.
If your computer includes the Oracle Reports application, you can export tables and crosstabs from Discoverer as an Oracle Report. Having this capability means that you can apply the extensive formatting features of Oracle Reports to your Discoverer reports.
To export to Oracle Reports:
The Export dialog box appears.
The dialog box for choosing the report's template appears.
The dialog box has options for selecting a report template that you created earlier in Oracle Reports.
Do not use template (unformatted)--exports the report with no formatting, fonts, or colors.
Select a predefined template--select a template for the report from the drop-down menu; the list shows templates already predefined in Oracle Reports.
Select a custom template file--if you created a custom template in Oracle Reports earlier, it will be listed here; select a template from the drop-down menu.
View Report in--select this option if you want to see what the report looks like in the Oracle Reports format.
Report Runtime--view the report in the Oracle Reports runtime.
Report Designer--view the report in the Oracle Reports Builder application; you can then edit the report using Designer's features.
The template is applied to the report, and the report is saved in the directory that you specified earlier. You can open the report in Oracle Reports, or any other application that supports Oracle Reports.
The Excel tool on the tool bar helps you export Discoverer tables and crosstabs quickly to Microsoft Excel.
To export to Excel:
The worksheet is saved in .xls format, and Microsoft Excel opens to display the worksheet.
Scheduled reports are workbooks set to run at a specified time. For example, you may want to run a worksheet at the end of each month that calculates monthly profits from monthly sales figures, or run a report every two weeks based on a worksheet that produces a biweekly cash flow analysis.
Often, worksheets that you want to use as scheduled reports are designed specifically for that purpose, rather than being a worksheet for your day-to-day analysis. For example, the worksheet may include special calculations or conditions that produce the results you want for the scheduled report on a periodic basis only.
You can select all or some of the worksheets in a workbook to run as a scheduled report. Typically you schedule reports if:
Because a scheduled report runs on the server, you do not need to leave your computer running overnight (or whenever you schedule the report to run). The results of running the scheduled report are saved on the server as well and, therefore, are available when you log on to the server and start Discoverer.
To schedule a report:
The Schedule Workbook dialog box appears.
To change the time and date, click on the numbers you want to change, then either type the new time or date, or click the up and down arrows. For example, to change 08:00 PM to 12:01 AM, click on the 08 and either type 12 or click the up arrow until 08 becomes 12. Then click on the 00 and type 01 or click the up arrow once. Then click on PM and click either arrow; PM changes to AM.
Never--runs the scheduled report once and only once.
Repeat every--runs the report on a periodic basis; enter a number and select a time interval from the drop-down menu. For example, to run a monthly report, enter 1 Month in the selections.
The workbook and its worksheets are now scheduled and run based on the options you selected in the Schedule Workbook dialog box.
A scheduled report produces a worksheet or set of worksheets with the results derived from running the report. You can see those results when first starting Discoverer, or while working in a workbook.
To see the results of a scheduled report when starting Discoverer:
The window appears for selecting what to open.
The Open Scheduled Workbook dialog box opens. It lists the completed reports.
The workbook opens and displays the worksheets generated by the scheduled report.
When connected as an Oracle Applications User, the following rules apply:
With the Scheduling Manager you can see the results of a scheduled report, schedule a new report, reschedule a report, or edit a report's schedule.
To run the Scheduling Manager, choose File | Manage Workbooks | Scheduling Manager. The Scheduling Manager dialog box appears.
The Scheduling Manager shows scheduled reports and completed reports. The clock icon indicates a scheduled report set to run at a specified time. The icon without a clock indicates a completed report. Other information in this dialog box includes the following:
Name--the names of the scheduled reports or completed reports. You can open completed reports. You cannot open scheduled reports, though you can edit the schedule configuration if required.
Status--status types include scheduled, completed, in progress, out of date (expired), deleted by the database administrator, unable to be scheduled, had an error during the report run, and so on.
Date and Time--either the date and time a scheduled report is set to run or the date and time a completed report was run.
Run time--the length of time needed by the server to complete a scheduled report.
To schedule a new report from the Scheduling Manager dialog box:
The Schedule Workbook dialog box appears.
To see the results of a scheduled report:
Note: The Open button is only available when you select a completed report.
The workbook containing the completed report opens and displays the worksheets that you designated as a scheduled report.
To delete a completed report:
Note: The Delete button is only available when you select a completed report. It changes to Unscheduled when you select a scheduled report in the list.
To unschedule a scheduled report:
Note: The Unschedule button is only available when you select a scheduled report. It changes to Delete when you select a completed report in the list.
Unscheduling a report deletes it from the list.
To edit the settings of a scheduled report:
The Schedule Workbook dialog box appears. The Schedule tab is selected.
This dialog box is almost the same as the dialog box you used to create the scheduled report except you cannot add or delete the sheets in the scheduled report from this dialog box. To do that you need to create a new scheduled report by choosing File | Schedule.
The schedule in the Scheduling Manager dialog box updates to include your changes. Now the scheduled reports will run based on the updated settings.
In the event an error occurs while the scheduled workbook is running, the status of the report will be "Error while running query" or "Could not schedule."
To view a message that explains the error:
A message shows the error code and text.
Sharing a workbook grants other people access to it to view, analyze, and print the data. You can share workbooks with other people by setting up sharing two ways:
Sharing workbooks lets others use and analyze the same data. For example, you may want everyone in the accounting department to share a workbook that includes accounts payable and accounts receivable information. Similarly, you may want a project manager to have access to all the workbooks created for the project.
To share workbooks, choose File | Manage Workbooks | Sharing. The Share Workbooks dialog box appears. The two tabs at the top of the dialog box are for assigning workbooks to users or users to workbooks.
Workbook -> User--click this tab to share one workbook with several other people.
User -> Workbook--click this tab to share several workbooks with one other person.
To share a workbook with several other people:
The list of names in the Shared column are the people who can have access to the workbook.
To share several workbooks with one other people:
The list of names in the Shared column are the workbooks the other person can share with you.
|
![]() Copyright © 1996, 2003 Oracle Corporation. All Rights Reserved. |
|