Printing Crosstabs demonstrates how to print a crosstab using the print facilities that are provided by BI Beans. BIPrint connects to Oracle9i OLAP (the source of the business data for the application) and to the BI Beans Catalog (where object definitions, like crosstabs and graphs, are saved).
BIPrint provides a menu with access to a simple connection dialog which prompts a user for security credentials. BIPrint then makes the two connections described above. After the connection is established, a new crosstab can be created using the "New Crosstab" file menu option. Print dialog, Page Setup dialog or Preview dialog can be invoked using the appropriate file menu options. Print dialog can also be invoked using the print button in the toolbar.
If you have not already done so, you must perform several installation
and configuration tasks, then open the workspace javaclient\javaclient.jws
under the samples
directory within JDeveloper. All the necessary
files for this sample can be found in the printing_crosstabs.jpr
project under the javaclient.jws
workspace.
BIPrint uses the PageSetupDialog, PrintDialog, PreviewDialog classes to bring up the the 3 dialogs related to crosstab printing. Refer to the following 3 methods for more information.
protected void showPageSetupDialog();
protected void showPrintDialog();
protected void showPreviewDialog();
To run the BIPrint example within JDeveloper, simply right-click on the file BIPrint.java and choose Run BIPrint.java. From the File Menu in the application, choose Connect and enter the username and password of the user that owns the BI Beans Catalog (e.g. BIBCAT).
![]() |
|
---|---|
Copyright © 2002, 2003 Oracle. All Rights Reserved. |
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. |