10g reports to PDF  (Urgent)

Hi
I am generating PDF report in 10g and using special character like ® / ° etc.
When I am converting report to .pdf format from Report Builer Previewer ,It gives me perfect But when I am running the same report on report server ,it gives extra 'A' or some junk char.
How can this be solved.?
The Fonts are updated in [ PDF:Subset ] in unifont.ali
the Font path is given in Report_path.
Thanks
MG

Try iText - a Free Java-PDF library: http://www.lowagie.com/iText/

Similar Messages

  • Running report as PDF in OAS 10g (10.1.2) Reports Services

    Hi,
    PDF reports are running fine in Firefox browser but they are displaying data as garbage in internet explorer on some PCs. But on other workstations, these reports are running fine in Internet Explorer as well. I am using Oracle Application Server 10g, Reports Services (10.1.2). Adobe Acrobat 6 or Acrobat Reader 7 is installed on all PCs. Could anybody pointout that what might be the problem?
    Thanks in advance.

    check the fonts used by the reports are installed on that computer u r invoking the reports.
    chikki

  • Reports generation in pdf on reports server..urgent reply required

    dear friends,
    i tried generating reports in pdf format on the web browser.
    the report gets generated if there is no parameter form without any problem.
    but when a parameter form is called and then the report is called, there
    is a message shown on the bottom of the web browser saying 'there was
    an error in opening this document'.
    This is not the case when working on the HTML document. it works both with
    and without the parameters.i have the pdf acrobat version of 4.05b, and ie 5.5
    Kindly help urgently.

    Use text_io package of developer to write records to excel using OLE
    Thanks
    null

  • A big problem of Generate report with PDF format....Urgent

    I want to generate a report with pdf format through one java file, it have two page 1)gen_report.jsp 2) report_gen.java , the compliation was failed. However, i don't what the problem is .... i hope anyone can help me as it is very argent for me ....Thanks a lot
    1)gen_report.jsp
    <table  id="AutoNumber1">
       <tr>
         <td background="images/top5movie.png">
         <p align="center"> </p>
        </td>
       </tr>
       <tr>
       <td >
          <div align="center">
            <table id="AutoNumber2" >
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr1(this)">
                    <tr>
                      <td ><b>Report Description:</b></td>
                      <td >This report is to show the top five popular movies in cinemix for a period </td>
                    </tr>
                    <tr>
                      <td><b>Data scope:</b></td>
                      <td >Start from
                      <input type="text" name="start" value="2003-1-1" >to
                      <input type="text" name="end" value="2006-1-1" ></td>
                     </tr>
                     <tr>
                      <td><b>Data processing:</b></td>
                      <td >Show
                        <select name="order_by">
                          <option value="desc" selected>top</option>
                          <option value="asc">bottom</option>
                        </select>
                      5 films</td>
                    </tr>
                    <tr>
                      <td> <p align="center">
                          <input type="submit" value="View_Report" name="subm">
                        </p></td>
                    </tr>
                    <input type="hidden" name="report" value="r1">
                  </form>
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr2(this)">
                    <input type="hidden" name="report" value="r2">
                  </form>
                </table>
         </div>
          </td>
        </tr>
      </table>Then my java code is here
    report_gen.java
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    // chart and pdf out
    import java.awt.Graphics2D;
    import java.awt.geom.Rectangle2D;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.data.xy.*;
    import org.jfree.data.xy.XYBarDataset;
    import org.jfree.data.general.DefaultPieDataset;
    import org.jfree.data.statistics.SimpleHistogramDataset;
    import org.jfree.data.xy.XYSeries;
    import org.jfree.data.xy.XYSeriesCollection;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Rectangle;
    import com.lowagie.text.pdf.DefaultFontMapper;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfTemplate;
    import com.lowagie.text.pdf.PdfWriter;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.pdf.PdfPCell;
    public class report_gen extends HttpServlet
       private final String titles[] = {"Top Five popular movies ",
                        "Financial cirumstance of cinemas",
                        "Distribution of time segment",
                        "Distribution of favourite movie type"
       private final String descs[] = {"This report is to show the top five  popular movies in cinemix for a period ",
                   "This report is to show the financial circumstance of each cinema site ",
                   "This report is to analysis the customer when is the most visit time ",
                   "This report is to analysis the customer which type of movie do they watch the most"
        private final String bigTitle = "Cinemix";
        private final String driver = "org.gjt.mm.mysql.Driver";
        private final String url= "jdbc:mysql://localhost:3306/cinemix";
        private final String userID = "abc";
        private final String passwd = "abc";     
        public void init(ServletConfig config) throws ServletException
          super.init(config);
       protected void doGet(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException
          final int width = 550;
         final int height = 200;
    / title font (centre and report title)
         final Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
         final Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.BOLD);
              // centre name:
        final String title0 = bigTitle;
       // Default category for DefaultCategoryDataset
       final String cat = "data";
       Connection conn;
      JFreeChart chart;
       String title1     = "xyz Report";
       String chartDesc = "description";
       String notes[] = new String[4];
       String chartTitle = "so bad this is title";
       String chartXTitle = "this is x";
       String chartYTitle = "this is y.";
       String report = request.getParameter("report");     
       int max=-10000;
       int min=10000;
       int j=0;          
      // do some basic checking
       if (report == null || report.equals(""))
         report = "-1";  // this course unknow report error message
         String start   = request.getParameter("start");
         String end  = request.getParameter("end");
         String order_by  = request.getParameter("order_by");  // ToDo: check invalid string
           int topN  = 5;
        String order = (order_by.equals("desc")) ? "Top" : "Last";
       String inv[] = {"08:30", "09:30", "10:30", "11:30", "12:30", "11:30", "12:30", "13:30", "14:30", "15:30", "16:30", "17:30","18:30","19:30","20:30","21:30","22:30","23:30"};
         int inv_val[] = new int[inv.length - 1];
         try
            Class.forName(driver).newInstance();
             catch(Exception e)
            printE("Cannot load mysql database driver!", response);
              e.printStackTrace();
               return;
           try
                 conn = DriverManager.getConnection(url, userID, passwd);
                  if (report.equals("r1")) {  // report 1
               DefaultCategoryDataset dataset = new DefaultCategoryDataset();
              Statement stmt = conn.createStatement();
              String sql = "select *,count(f.Name),f.Name from film f, filmDetail fd, ticket t where f.startDate > '" + start + "' and f.endDate <  '" + end + "'and fd.filmID = f.filmID and fd.filmDetailID = t.filmDetailID group by f.name order by fd.filmDetailID asc limit '" +topN+"'";
              ResultSet rs = stmt.executeQuery(sql);
            while (rs.next())
           if (rs.getInt("fd.filmDetailID") > max) max = rs.getInt("fd.filmDetailID");
         if (rs.getInt("fd.filmDetailID") < min) min = rs.getInt("fd.filmDetailID");
          j++;
           ataset.setValue(rs.getInt("fd.filmDetailID"), cat,rs.getString("f.Name"));
           title1     = titles[0];
         chartDesc  = descs[0];
         chartTitle = order + " " + topN + " popular movie";
          chartYTitle = "Box Office record";
          chartXTitle = "Film Name";
          gender = " ";
          chart = ChartFactory.createBarChart(chartTitle, chartXTitle,   chartYTitle, dataset,PlotOrientation.VERTICAL, false, true, false);
        else
              print("Error: I don't inderstand your request!", response);
         return;
           catch (SQLException e)
         printE("Cannot open database connection? <br>", response);
         // printE(e.toString);
      e.printStackTrace();
      return;
         response.setContentType("application/pdf");
         Document document = new Document(PageSize.A4, 5, 5, 5, 5);
        try
             PdfWriter writer;
         writer = PdfWriter.getInstance(document, response.getOutputStream());
        HeaderFooter footer = new HeaderFooter(new Phrase("Page: "), true);
         footer.setBorder(Rectangle.NO_BORDER);
    document.setFooter(footer);
                   footer.setAlignment(Element.ALIGN_CENTER);
                   // step 3
                   document.open();
                   document.add(getHeader(title0, title1, start, end, gender, order, topN, chartDesc));
                   document.add(printChart(chart, writer));
                   document.add(getFooter(notes));
              catch(DocumentException de)
                   de.printStackTrace();
              // step 5
              document.close();
              return;
         }// end doGet()
         /** Handles the HTTP <code>POST</code> method.
          * @param request servlet request
          * @param response servlet response
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
              // processRequest(request, response);
         /** Returns a short description of the servlet.
         public String getServletInfo()
              return "Generate reports for " + bigTitle;
         /* To print en error and exit(?) */
         private void printE(Object obj, HttpServletResponse response) throws IOException
              response.setContentType("text/html");
              PrintWriter out;
              out = response.getWriter();
              out.print(obj.toString());
              out.close();
              // To-Do: how to force exiting?
         // create data chart
         private PdfPTable getHeader(String title0, String title1, String start, String end, String sex, String order, int topN, String desc)
              Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
              Font fTitle1 = FontFactory.getFont("Helvetica", 24, Font.BOLD);
              Font fTitle3 = FontFactory.getFont("Helvetica", 12, Font.BOLD);
              Font fValue = FontFactory.getFont("Helvetica", 12, Font.UNDERLINE);
              Paragraph parStartEnd = new Paragraph();
              parStartEnd.add(new Phrase("Data start from:                  ", fTitle3));
              parStartEnd.add(new Phrase(start, fValue));
              parStartEnd.add(new Phrase("     to     ", fTitle3));
              parStartEnd.add(new Phrase(end, fValue));
              Paragraph parGenerateDate = new Paragraph();
              parGenerateDate.add(new Phrase("Report generated at:         ", fTitle3));
              parGenerateDate.add(new Phrase(new java.util.Date().toString(), fValue));
              Paragraph parGender = new Paragraph();
              parGender.add(new Phrase("Current show gender:       ", fTitle3));
              parGender.add(new Phrase(sex, fValue));
              Paragraph parTopN = new Paragraph();
              parTopN.add(new Phrase("Now is showing                 ", fTitle3));
              parTopN.add(new Phrase(order, fValue));
              parTopN.add(new Phrase("  ", fValue));
              parTopN.add(new Phrase(new Integer(topN).toString(), fValue));
              parTopN.add(new Phrase("   record(s)", fTitle3));
              // Start main table
              PdfPTable tblMain = new PdfPTable(1);
              tblMain.getDefaultCell().setBorder(0);
              // Print title
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
              tblMain.addCell(new Paragraph(title0, fTitle0));
              tblMain.addCell(new Paragraph(title1, fTitle1));
              tblMain.addCell("");
              tblMain.addCell("");
              tblMain.addCell("");
              // Print headers data
              //tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT);
              //tblMain.addCell(parInvoiceNum);
              //tblMain.addCell("");
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
              tblMain.addCell(parStartEnd);
              tblMain.addCell("");
              tblMain.addCell(parGenerateDate);
              tblMain.addCell("");
              if (sex != " ")
                   tblMain.addCell(parGender);
              else if(order != null && topN > 0)
                   tblMain.addCell(parTopN);
              else
                   tblMain.addCell(" \n");
              tblMain.addCell("");
              tblMain.setWidthPercentage(96);
              tblMain.addCell(new Paragraph("Description of this report:", fTitle3));
              tblMain.addCell(desc);
              tblMain.addCell("\n");
              // Finish main table
              return tblMain;
         // print a chart _directly_ to pdf and return a empty Pdftable...
         public PdfPTable printChart(JFreeChart chart, PdfWriter writer)
              PdfContentByte cb = writer.getDirectContent();
              int width = 550;
              int height = 450;
              PdfTemplate tp = cb.createTemplate(width, height);
              Graphics2D g2d = tp.createGraphics(width, height, new DefaultFontMapper());
              Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height); //->,
              chart.draw(g2d, r2d);
              g2d.dispose();
              cb.addTemplate(tp, 20, 170);
              // quick method to push down the footer text
              // the only things this method return
              PdfPTable tblDownDown = new PdfPTable(1);
              tblDownDown.getDefaultCell().setBorder(0);
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n");
              return tblDownDown;
         public PdfPTable getFooter(String notes[])
              Font fNote = FontFactory.getFont("Helvetica", 14, Font.UNDERLINE);
              Font fComment = FontFactory.getFont("Helvetica", 12, Font.ITALIC);
              Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.ITALIC);
              // Start footer table
              PdfPTable tblFooter = new PdfPTable(1);
              tblFooter.getDefaultCell().setBorder(0);
              if (notes != null)
                   tblFooter.addCell(new Paragraph("Notes:", fNote));
                   tblFooter.addCell("");
                   tblFooter.addCell("");
                   tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
                   for (int i=0;i<notes.length;i++)
                        if (notes[i] != null)
                             tblFooter.addCell(new Paragraph("" + (i+1) + ". " + notes[i] + "", fComment));
                             tblFooter.addCell("");
                             tblFooter.addCell("");
                        tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
                        tblFooter.addCell(new Paragraph("- End of report -", fComment));
                        return tblFooter;
    }

    Go to the cache directory and see if you can open the report directly from here (not in IE).
    I have seen posts on problems with Acrobat Reader Plugin for IE (I believe it was version 6 of Reader).

  • How to use 2 vo's in xml publisher pdf genarate report from oaf--urgent

    Hi Guru's,
    i am integrating xml publisher report from oaf. I found one good artical published by prabaker in apps2fusion site and i implemented the same. But it is used onley one view object to generate pdf. But in my case i want to use 4 view objects to generate report as pdf. So, kindly suggest me how to resolve this issue.
    below i mentioned the site name whihc i follwed to implement my requirement.
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework.
    pls help me as i am not getting , how to solve this issue.
    Thanks in advance.
    Keerthana

    Hi,
    When we develop simple XML report also we used to get single data source either generated either from RDF or PL/SQL, in OAF XML data is coming from VO and XML Publisher API’s will process that data.
    This approach works fine if you are having one VO, but if you are having two VOs then it is not possible (As per my understanding and comparing this scenario with simple XML publisher report).
    I also faced same problem few months back, on my form I was having two VOs one for header and other for Lines and I have generate Report to show the data for both Headers and Lines. In my case I created a separate VO that was containing both Header and Line details and I was passing header Id to query that. I used query this VO only when someone clicks on “Print” button and it worked fine for me.
    Regards,
    Mahesh B.

  • Urgent -Oracle 10g - report is getting printed square of no of copies

    Hi All,
    I am printing oracle 10g report from form using server side printer. If I specify the number of copies to 1 then it prints 1 copy of report. but if I specify 2 then it prints 4 copies of the report.
    It prints square of no of copies.
    Pl. give me some pointer to resolve this issue.
    Thanks in Advance

    Hello,
    This is a known problem and documented in the note :
    Note 316849.1 With 'destype=printer' and 'copies=n', 'n*n' Copies of Report Output are Printed
    A workaround is suggested in this note.
    Regards

  • How to embed/show an image file (.jpeg or .jpg or .png) into a Oracle 10g report file (.rdf)

    Hi All,
    Morning , have an urgent requirement and need some guidance regards this.
    we are currently having an existing Oracle 10g reports file (.rdf)  lets say with name : Testing1.rdf .
    The report output is getting generated in a pdf format . it opens up in a pdf format..
    Now we want to embed an image file lets say : (logo.jpeg or logo.gif  ) into the report output..at run time the image from the image file should show up in the report output.
    Could someone please help as to how this could be achieved..and what approach we could follow for this...
    with regards
    Thanks as always !!

    Hi All,
    Morning ...just a follow up question to this original post : embedding the image files at runtime into an Oracle Report..
    We were able to achieve this by entering the folder location where the image files are place on the server in the REPORTS_PATH env variable in the report.sh file.
    Then we update this filename like file1.jpg into a table and from there we fetch this in the Oracle Reports data model directly.
    for The layout field we select the option as Image.
    All this works fine..
    Issue : The resolution of the embedded image in the generated report output is very low ...means the image appears there but it is not very clearly visible ..is there any way we could improve the IMAGE RESOLUTION in the report output....?????
    With regards

  • Report in PDF format and email it to some clients, using  Database Trigger

    Hi
    Is it possible to run a report in PDF format ad email it to some clients after a specific event through Database Trigger. For example whenever a client makes an entry into order entry table (through entry form), a trigger should execute on Orders table, this trigger should execute or generate a PDF formatted report and finally mail it to Sales team?
    I have
    ORAS 10g(10.1.2.0.2)
    utl_mail configured.

    In Reportsconfig.properties file the http port is 7778,
    now the output is like this...
    SQL> /
    * WELCOME TO EVENT-BASED-REPORTING API *
    * API-Version : 9i *
    * (C) Oracle Corporation, 2000 - 2002 *
    * Debugging turned ON **************************
    *** Length of Paramlist : 1
    OK : Parameter added : GATEWAY=http://myserver.com:7778/reports/rwservlet
    *** Length of Paramlist : 2
    OK : Parameter added : SERVER=rep_myserver_oracleas2
    *** Length of Paramlist : 3
    OK : Parameter added : REPORT=D:\Reports\emp.rdf
    *** Length of Paramlist : 4
    OK : Parameter added : USERID=abc/xyz@mydb
    *** Length of Paramlist : 5
    OK : Parameter added : DESTYPE=mail
    *** Length of Paramlist : 6
    OK : Parameter added : DESFORMAT=PDF
    *** Length of Paramlist : 7
    OK : Parameter added : [email protected]
    Starting run_report: building url
    *** Building URL (RUN_REPORT)
    OK : URL built :
    http://myserver.com:7778/reports/rwservlet?SERVER=rep_myserver_oracleas2&REPO
    RT=D%3A%CReports%5Cemp.rdf&USERID=abc%2Fxyz%40mydb&DESTYPE=mail&D
    ESFORMAT=PDF&DESNAME=khan.emran84%40gmail.com&statusformat=xml
    *** Submitting HTTP Request
    *** using URL
    :http://myserver.com:7778/reports/rwservlet?SERVER=rep_myserver_oracleas2&REP
    ORT=D%3A%5CReports%5Cemp.rdf&USERID=abc%2Fxyz%40mydb&DESTYPE=mail&
    DESFORMAT=PDF&DESNAME=khan.emran84%40gmail.com&statusformat=xml
    OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
    'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <error code="50159"
    component="REP" message="Executed successfully but there were some errors when
    distribute the output"/>
    <
    OK : Request submitted - Length of stream : 229
    *** XML-Parsed - Following Structure discovered :
    *** Checking elements!
    serverQueues ()
    *** Checking attributes!
    error
    *** Checking attributes!
    __code = 50159
    __component = REP
    __message = Executed successfully but there were some errors when distribute the
    output
    *** Finished Parsing XML
    Getting value for element: job
    Getting value for element: error
    *** Requesting value for Attribute error.component [REP]
    Getting value for element: error
    *** Requesting value for Attribute error.code [50159]
    Getting value for element: error
    *** Requesting value for Attribute error.message [Executed successfully but    
    there were some errors when distribute the output]
    REP-50159:Executed successfully but there were some errors when distribute the
    output
    declare
    ERROR at line 1:
    ORA-20999:
    ORA-06512: at "NRSP.SRW", line 264
    ORA-06512: at "NRSP.SRW", line 799
    ORA-06512: at line 15

  • Generating Report in PDF Format.

    Hi All,
    How can I configure Report Server to generate all my Reports in PDF Destination Format? I am using Oracle 10g.
    In 6i, it used to be FORMS60_REPFORMAT parameter. Is there any equivalant in 10g? Where can I set it? or Is there any other way to configure Report Server?
    I may set desformat in rp2rro.pll but I would like to have it at Report Server level.
    Thanks for your help in advance.

    If you want to run all your reports using a generic file, then use web.show_document within Forms and set your desformat for each report in the cgicmd.dat file (in Oracle_home/reports/conf directory) on the App Server.
    Please be warned that any change to this file will require bouncing the report server (or the app server as I sometimes find it doesn't always pick up the changes).
    HTHs
    L :-)

  • 10g Reports open blank tab in Firefox

    We're testing a 10g forms/reports application and the forms work fine in both IE and Firefox (Tested 6, 3.5 and 3.0 - same behavior) but when calling a 10g report from a form Firefox just opens a blank tab.
    No error message. Doing a View Source on the tab shows no code at all.
    The report opens fine (It's a PDF report so it either opens Acrobat within an IE tab, or in an stand-alone Acrobat window, depending on the Acrobat preferences) in Internet Explorer 6,7, and 8 but it's just Firefox where we're having this behavior.
    Any ideas?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • 10g reports in html format have extra left margin

    I am using the same source .jsp file to create 2 html reports, one using 9i server and the other using 10g server. The report run on the 10g server has a double left margin compared with the report layout and the report run on 9i. When 10g report is printed it chops off the right side of the report. This only affects html output, rtf and pdf work fine.
    Is there any setting I can change in the report properties to stop this from happening?
    Thank You.

    I am running through a servlet with the URL http://our_server:7779/reports/rwservlet?server=reports_saints&report=...&destype=file&desformat=html...
    Thanks

  • Oracle XE and 10g reports

    Can this be done?
    have installed XE, and have been using HTML DB. I am wanting more control with my reports, and I am much better with 10g reports developer than the built in html db reports.
    I found this site, but I am stuck on "deploying the report" (#9/#10)
    http://www.oracle.com/technology/products/database/htmldb/howtos/howto_integrate_oracle_reports.html
    I coppied the rdf to $ORACLE_HOME/reports/samples/demo
    then I ran "Start OC4J Instance"
    But when I try to call the report in either firefox or IE like it tells me to, I can't get it to work. Page Cannot Be Found. (I replaced USER and PW too)
    http://menzoberranzan:8080/reports/rwservlet?module=Invoice.rdf&userid=USER/PW@xe&destype=cache&desformat=pdf
    Any suggestions as to how to do this without installing more on my computer, such as Oracle Application Server?
    Thanks

    No ideas about running an Oracle Report on an Express Edition DB so I can call it from a HTML DB application?

  • Printing out a report in PDF format

    Hi,
    A colleague and myself have been converting an existing system for our customer from the traditional client/server architecture to a web-deployed system on 10g application server. I have been converting the reports from report 3.5 to reports 10g. The reports work fine but the problem we have is more to do with the printer than the reports itself.
    We have a requirement to print a barcode label (and some other text) to a DataMax printer. This printer seems to be quite fussy about the fonts that are used and essentially if you don't use the DataMax fonts the label comes out blank. I have managed however to produce reports as PDF and if I click the Printer button in the adobe control the report will print out as a bitmap image on the printer.
    Is there any way that I can produce the report as a PDF file and get it to print automatically ?

    Prohan,
    I have never been able to get PDF generation working from APEX. I have asked for some help on this forum, but go no responses. And I just won't spend the outrageous license fees for Oracle BI Publisher. But I have been successful in doing what need with some simple methods.
    1. If the email has some simple tables or formatted information from the database, use a PL/SQL procedure to generate an HTML formatted message and the utl_mail package to send the html formatted email. I use this for many customer and internal emails from both APEX and Oracle Forms applications.
    2 There is a stand-alone product PL/PDF (http://www.plpdf.com/) that allows you to generate PDF files directly from PL/SQL (again not APEX specific). I have demoed this product and it works pretty well, but I am not using it at this time because of the licensing that requires a fee for each database instance. It's not really that expensive, but it's more than I want to spend for the number of databases I have.
    3. If you have Acrobat Professional, you can export XML file from the database and create "mail merge" type PDF documents. But you can also do this with Word and a simple CSV or Excel output. Both of these are pretty easy from APEX. I have used both. I found the Work mail merge to be a little easier for end users to use, so this is my primary choice. But Acrobat Pro method also works well.
    If you are interested in any examples of these methods, let me know and I can send you something.
    Bill
    Bill

  • Unable to see report in pdf format in BI Publisher 10.1.3.2

    Hi
    I am new to BIP and I am facing problem to display pdf format in BI Publisher 10.1.3.2.
    Here is my my generated by 10g Report Developer.
    <?xml version="1.0" encoding="WINDOWS-1256"?>
    <!-- Generated by Oracle Reports version 10.1.2.0.2 -->
    <NEHAS_GA>
    <LIST_G_2>
    <G_2>
    <DNAME>ACCOUNTING</DNAME>
    <LOC>NEW YORK</LOC>
    <LIST_G_1>
    <G_1>
    <NAME>CLARK</NAME>
    <JOB>MANAGER</JOB>
    <HIREDATE>09/06/81</HIREDATE>
    <SALARY>2450</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>KING</NAME>
    <JOB>PRESIDENT</JOB>
    <HIREDATE>17/11/81</HIREDATE>
    <SALARY>5000</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>MILLER</NAME>
    <JOB>CLERK</JOB>
    <HIREDATE>23/01/82</HIREDATE>
    <SALARY>1300</SALARY>
    <COMM></COMM>
    </G_1>
    </LIST_G_1>
    </G_2>
    <G_2>
    <DNAME>RESEARCH</DNAME>
    <LOC>DALLAS</LOC>
    <LIST_G_1>
    <G_1>
    <NAME>JONES</NAME>
    <JOB>MANAGER</JOB>
    <HIREDATE>02/04/81</HIREDATE>
    <SALARY>2975</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>FORD</NAME>
    <JOB>ANALYST</JOB>
    <HIREDATE>03/12/81</HIREDATE>
    <SALARY>3000</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>ADAMS</NAME>
    <JOB>CLERK</JOB>
    <HIREDATE>12/01/83</HIREDATE>
    <SALARY>1100</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>SMITH</NAME>
    <JOB>CLERK</JOB>
    <HIREDATE>17/12/80</HIREDATE>
    <SALARY>800</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>SCOTT</NAME>
    <JOB>ANALYST</JOB>
    <HIREDATE>09/12/82</HIREDATE>
    <SALARY>3000</SALARY>
    <COMM></COMM>
    </G_1>
    </LIST_G_1>
    </G_2>
    <G_2>
    <DNAME>SALES</DNAME>
    <LOC>CHICAGO</LOC>
    <LIST_G_1>
    <G_1>
    <NAME>WARD</NAME>
    <JOB>SALESMAN</JOB>
    <HIREDATE>22/02/81</HIREDATE>
    <SALARY>1250</SALARY>
    <COMM>500</COMM>
    </G_1>
    <G_1>
    <NAME>TURNER</NAME>
    <JOB>SALESMAN</JOB>
    <HIREDATE>08/09/81</HIREDATE>
    <SALARY>1500</SALARY>
    <COMM>0</COMM>
    </G_1>
    <G_1>
    <NAME>ALLEN</NAME>
    <JOB>SALESMAN</JOB>
    <HIREDATE>20/02/81</HIREDATE>
    <SALARY>1600</SALARY>
    <COMM>300</COMM>
    </G_1>
    <G_1>
    <NAME>JAMES</NAME>
    <JOB>CLERK</JOB>
    <HIREDATE>03/12/81</HIREDATE>
    <SALARY>950</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>BLAKE</NAME>
    <JOB>MANAGER</JOB>
    <HIREDATE>01/05/81</HIREDATE>
    <SALARY>2850</SALARY>
    <COMM></COMM>
    </G_1>
    <G_1>
    <NAME>MARTIN</NAME>
    <JOB>SALESMAN</JOB>
    <HIREDATE>28/09/81</HIREDATE>
    <SALARY>1250</SALARY>
    <COMM>1400</COMM>
    </G_1>
    </LIST_G_1>
    </G_2>
    </LIST_G_2>
    </NEHAS_GA>
    Please see nehas_ga.rtf, kindly provide the solution which I have been working since last week and still unable to get solution.
    for-each G_2
    DNAME
    LOC
    Name     Job     Hiredate     Salary     Comm
    for-each G_1 NAME
    JOB
    HIREDATE
    SALARY
    COMM end G_1
    end G_2
    I want each department should print on seperate page but no page to display in BI Publisher. In MS Word showing 3 page using with nehas_ga.rtf.
    I would appreciate if anyone reply me.
    Thanks and Regards
    Muhammad Nehas

    Hi
    Even if i use a new clean blank rtf doc as the template, it still doesnt write out a file.
    When i look in the log directory at the .out files produced, they look right. If i open the .out file with Adobe Reader 9.1, the doc looks exactly as it should. It just doesn't write the file to the destination folder specified.
    It cannot be permissions as it will write out RTF/excel files to the same directory with no problems. The report is using a bursting definition but the problem cant be that because it bursts the data correctly, as shown if i specify rtf output in the bursting definition/as shown by the .out files when i specify pdf as the output in the bursting definition. Also, i get the same result even if i schedule any other report that does not use a bursting definition.
    I do get an error sometimes when i try to open pdf reports : Cannot use Adobe Reader to view PDF in your web browser. I feel somehow that this may be related and that if i fix this, i could be sorted, but im not even sure im on the right track here.
    Im really really REALLY at wits' end here, ive been trying to solve for weeks, but just cant figure it out. Any further ideas would be most welcome, thanks.

  • Haw to execute and create a report in pdf format

    i have installed developer 10g and application forms & report 10g.
    I have used until noe application 1.0.2.2 and ina form to execute a report i have this istruction
    run_product(REPORTS,
         var_report,     
         SYNCHRONOUS,
         RUNTIME,
         FILESYSTEM,
         plid);
    where var_reprot is the name of my report (example test.rep)
    plid = paramlist (example Add_Parameter(plid,'MAXIMIZE', TEXT_PARAMETER, 'YES');
    add_parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    add_parameter(plid, 'BACKGROUND',TEXT_PARAMETER, 'YES');)
    then i have execute regedit to change the variable
    FORMS60_REPFORMAT = 'PDF' TO OBTAI AUTOMACTICALY A REPORT in pdf.
    Now i have try to convert form and execute the same instruction but there is no result !!!
    There is a fast way to convert all button tha i have for the pdf printer in forms10g ???
    Thank's a lot for the suggestion !!!

    Please read the Forms and Reports Integration whitepaper
    (link below). That is a must-read for anyone working in Forms-reports
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

Maybe you are looking for