Oracle BI Publisher Sample Code

Unless explicitly identified as such, the sample code here is not certified or supported by Oracle; it is intended for educational or testing purposes only.

Download

Description

Oracle BI Publisher Bookbinding Demo

The demonstration application is a simple HTML page that allows a user to select documents and features to be applied to the final merged document.The HTML page allows the user to select multiple sample documents and features. Once the Create Budget Book button is clicked a servlet is called to do the binding. The servlet is passed the documents and features via a parameter set. It then creates an XML based control file. This contains the documents, their order and features that are to be applied to the final output document. Once created the main bookbinder class is called:

Once the document has been created it is then streamed back to the client browser.



	 public boolean bindIt(String cDir)
        {
          
              PDFBookBinder pdfBind = new PDFBookBinder();
            try {
                pdfBind.setXMLInput(cDir+"ctrl.xml");
                pdfBind.setOutputDir(cDir);
                pdfBind.setPDFOutput("nc_budget.pdf"); 
                pdfBind.process();

            } catch (Exception e) {
                e.printStackTrace();
                return (false);
            }
            
            return (true);
        }
    

Oracle BI Publisher Bookbinding Examples

This code sample provides a series of bookbinding examples that lead the user through a series of examples showing more and more features in the bound book. The samples use batch files to run the binding process. Each batch file refers to a control file that defines what documents should be bound and the document features that need to be included.

BI Publisher Enterprise 10g Bursting to Excel Example

Working Example of a BI Publisher Enterprise Report that Bursts Excel output.Once uploaded, edit report, replace the email addresses in the bursting query "kevin.mcdermott@oracle.com" with your own.