Generating an Encrypted PDF Report

Hi,
I hope that someone will be able to help met with my question!
Some of the pdf reports we generate needs to be encrypted. Is there a way to code/specify the encryption in Report Builder (9.0.4.0.33) when the report is designed so that the request automatically generates an encrypted pdf? Or is this setup done in Oracle?
Or do you have any other advice on how to enable encryption for only specific requests?
Thank you

It allows you to assign a password for opening the document, but I do not see an encryption option. Maybe it is encrypted when using the password option. I am not sure.
Thank you for pointing out the security options. Good to know those are there.
x-.-x

Similar Messages

  • Generate a new pdf report with itens on my pdf form

    Hi! My name is Heitor.
    I have Adobe Forms Central and Adobe Acrobat XI Pro installed on my machine.
    I would like to know if its possible to make a pdf report.
    Example: Clicking in a button "print" on my already open and filled pdf form, and gathering all my 30 itens (see that i am only showing 5 itens on my form. but on my form exists a "Add" button to add itens on variables) on a dropdown list and generating a new pdf report with all these itens listed.
    Thanks!
    Heitor Teixeira
    www.heitorteixeira.com

    Hi! My name is Heitor.
    I have Adobe Forms Central and Adobe Acrobat XI Pro installed on my machine.
    I would like to know if its possible to make a pdf report.
    Example: Clicking in a button "print" on my already open and filled pdf form, and gathering all my 30 itens (see that i am only showing 5 itens on my form. but on my form exists a "Add" button to add itens on variables) on a dropdown list and generating a new pdf report with all these itens listed.
    Thanks!
    Heitor Teixeira
    www.heitorteixeira.com

  • Generatation of 4 PDF Reports from One Oracle reports 10 G

    Hi All,
    i am generating 4 PDF reports from one Oracle reports in 10 G.
    i used RUN_REPORT_OBJECT built in 4 times with some different parameter list at a single time.
    some time it generates but some time it generate 2 or 3 out of 4.
    Can you anyone help me on this issue.
    Regards,
    Abhishek
    Code that i used for generation of report:
    on key-F0:
    DECLARE
         PL_ID PARAMLIST;
         PL_NAME VARCHAR2(10) := 'REP';
         USRNM VARCHAR2(50);
         pl_id2 paramlist;
         pl_name2 varchar2(10):= 'REP';
         usrnm2 varchar2(50);
         pl_id3 paramlist;
         pl_name3 varchar2(10):= 'REP';
         usrnm3 varchar2(50);
         pl_id4 paramlist;
         pl_name4 varchar2(10):= 'REP';
         usrnm4 varchar2(50);
    BEGIN
                        USRNM := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID := GET_PARAMETER_LIST(PL_NAME);
                        IF NOT ID_NULL(PL_ID) THEN
                             DESTROY_PARAMETER_LIST(PL_ID);
                        END IF;
                        PL_ID := CREATE_PARAMETER_LIST(PL_NAME);
                        IF ID_NULL(PL_ID) THEN
                                  MESSAGE('Error Creating Parameter List ');
                        END IF;
                        ADD_PARAMETER(PL_ID, 'P_PRNT_C_FAM_ID', TEXT_PARAMETER, :PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID, 'P_NOTICE_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID, 'P_REDET_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID, 'USR_NM', TEXT_PARAMETER, USRNM);
                             ADD_PARAMETER(PL_ID, 'SCHEDULE', TEXT_PARAMETER, :RUN_TIME);
                   ADD_PARAMETER(PL_ID,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
                   ADD_PARAMETER(PL_ID, 'P_ENG_SP', TEXT_PARAMETER,'N');
                   REDET_REPORT('506',PL_ID,'CT506_Parent_FamId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                   USRNM2 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID2 := GET_PARAMETER_LIST(PL_NAME2);
                        IF NOT ID_NULL(PL_ID2) THEN
                             DESTROY_PARAMETER_LIST(PL_ID2);
                        END IF;
                        PL_ID2 := CREATE_PARAMETER_LIST(PL_NAME2);
                        IF ID_NULL(PL_ID2) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID2,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID2,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID2,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID2,'USR_NM',TEXT_PARAMETER,USRNM2);
                        ADD_PARAMETER(PL_ID2,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                   ADD_PARAMETER(PL_ID2,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
                        ADD_PARAMETER(PL_ID2,'P_ENG_SP',TEXT_PARAMETER,'Y');
                        REDET_REPORT('506',PL_ID2,'CT506_Parent_FamId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                   USRNM3 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID3 := GET_PARAMETER_LIST(PL_NAME3);
                        IF NOT ID_NULL(PL_ID3) THEN
                             DESTROY_PARAMETER_LIST(PL_ID3);
                        END IF;
                        PL_ID3 := CREATE_PARAMETER_LIST(PL_NAME3);
                        IF ID_NULL(PL_ID3) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID3,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID3,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID3,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID3,'USR_NM',TEXT_PARAMETER,USRNM3);
                        ADD_PARAMETER(PL_ID3,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                        ADD_PARAMETER(PL_ID3,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                        ADD_PARAMETER(PL_ID3,'P_ENG_SP',TEXT_PARAMETER,'N');
                        REDET_REPORT('506',PL_ID3,'CT506_Prov_ProvId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                        USRNM4 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID4 := GET_PARAMETER_LIST(PL_NAME4);
                        IF NOT ID_NULL(PL_ID4) THEN
                             DESTROY_PARAMETER_LIST(PL_ID4);
                        END IF;
                        PL_ID4 := CREATE_PARAMETER_LIST(PL_NAME4);
                        IF ID_NULL(PL_ID4) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID4,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID4,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID4,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID4,'USR_NM',TEXT_PARAMETER,USRNM4);
                        ADD_PARAMETER(PL_ID4,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                        ADD_PARAMETER(PL_ID4,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                        ADD_PARAMETER(PL_ID4,'P_ENG_SP',TEXT_PARAMETER,'Y');
                        REDET_REPORT('506',PL_ID4,'CT506_Prov_ProvId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                        Message('Notice Submitted For Printing');
                   EXIT_FORM;
    END;
    Program unit:
    PROCEDURE REDET_REPORT(rep_name in Varchar2,plist in ParamList,rep_pdf_name in Varchar2)IS
              filecode varchar(2);
              Repnm varchar(30);
              report_id REPORT_OBJECT;
              report_id_hear REPORT_OBJECT;
              report_prop VARCHAR2(20);
              v_rep VARCHAR2(100);
              rep_status VARCHAR2(200);
              bat_loc varchar2(200);
              time_slot varchar2(100);
              rep_folder_name varchar2(100):='Redet Notice for Packets Sent\';
    BEGIN
                   Filecode := init.GetFileNmCode;
    if filecode <> 'FL' then
    if upper(substr(rep_name,1,2)) ='CC' then
    RepNm := filecode||substr(rep_name,3);
    else
         if rep_name != 'viewerr' then
    RepNm := filecode||rep_name;
         else
              RepNm := rep_name;
         end if;
    end if;
    end if;
              Begin
                        begin
                        report_id := find_report_object(RepNm);
                        if error_code = '41219' then
                        Message('Unable to execute : '|| RepNm);
                             Raise FORM_TRIGGER_FAILURE;
                        end if;
                   end;
                        set_report_object_property(report_id, REPORT_FILENAME, RepNm);
                        set_report_object_property(report_id, REPORT_SERVER, init.Appl_Repserver);
                        SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
                        SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE,SYNCHRONOUS);
                        set_report_object_property(report_id, REPORT_DESFORMAT,'PDF');
              select rprm_param_val||rep_folder_name||rep_pdf_name||'.pdf' into bat_loc from rprm where rprm_param_name = 'BAT_LOC';
              SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(REPORT_ID,REPORT_DESNAME,'"'||bat_loc||'"');
              begin
              v_rep := RUN_REPORT_OBJECT(report_id,plist);
              exception when others then
                   Message('Error While executing running reports ::'||error_code);
              end;
         end;
    END;

    Abhishek,
    Please post your question in the Reports forum. This forum is for Forms related questions.
    Craig...

  • Need to change auto generated text from pdf report

    I have implemented pdf but it generated text from the autogenrated xml.
    If I need to change that text then what should I want to do for that?
    Following is my xsl file and the generated output in pdf.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    <fo:region-before extent="1in" background-color="silver" />
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
    <fo:block height="150px" width="1024px" background-color="blue" >
    <fo:external-graphic width="340px" src="http://localhost:9000/web-determinations9000/images/logo.png"/>
    </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    output from pdf -
    What is Student Id?=
    65.0
    Is scored more than 80% true%=
    true
    What is Student Name?=
    asf
    What is lastname?=
    asdf
    Is student eligible for gold medal?=
    true
    If i want "what is student id?" text to only student Id then what change I need for that?

    Hi,
    Following is the code sample for your understanding:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
         <fo:simple-page-master master-name="my-page">
              <fo:region-body margin="1in"/>
              <fo:region-before extent="1in" background-color="silver" />
         </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
              <fo:block height="150px" width="1024px" background-color="blue" >
              <fo:external-graphic width="340px" src="http://localhost:9000/web-determinations9000/images/logo.png"/>
              </fo:block>
         </fo:static-content>
         <fo:flow flow-name="xsl-region-body">
              <fo:block>
              <xsl:apply-templates mode="dump" select="/session/entity[@name='global']/instance[@label='global']"/>
              </fo:block>
         </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="/session/entity[@name='global']/instance[@label='global']" mode="dump" priority="100">
         <fo:block margin-top=".5cm" margin-left=".1cm" border-start-style="solid">
              Student ID:<xsl:value-of select="attribute[@id='var_student_id']/number-val"/>
         </fo:block>
    </xsl:template>
    </xsl:stylesheet>Thanks,
    Aakarsh

  • Is it possible to generate Html and Pdf report format  for multi byte charecter ???

    Hi,
    I have gererated a PDF report for Chines Simplified, i set the NLS_LANG = AMERICAN_AMERICA.ZHT16BIG5 in my report server, the PDF format report is working fine, But the HTML report comes junk , Suppose if i change the NLS_LANG to AMERICAN_AMERICA.UTF8 HTML format works fine, but not PDF.
    Plz let me know how to solve this problem.
    Thnks
    Leon John.

    Hi Leon
    I guess you are working with Reports 9i. You can create such PDFs without any problem.
    Please refer:
    http://otn.oracle.com/products/reports/htdocs/getstart/whitepapers/pdfenh.htm
    for more information on Reports 9i PDF features.
    Regards
    Sripathy Rao

  • Storing oracle-reports generated pdf-report onto a blob

    Hey ppl,
    I have this requirement:
    I basically generate a report from Jdev using a remote servlet call to oracle reports, which very neatly generates the pdf document for me and stores it locally. The problem is immediately storing this onto the DB as a blob once the report is generated. I know how to store the pdf as a blob onto the DB. I know how to make the call to oracle-reports and generate my pdf. What I don't know is to sequentially first generate the local pdf report and only once that has been generated proceed to store it onto my DB.
    I want it to be done within the scope of a single request. As in, the entire process should be complete through one cycle. I don't want to keep a day end sort of procedure that inserts into the db at the end of the day.
    As soon as the report has been requested by the user, I want the pdf file(which is generated by the reports) to also be stored onto the DB.
    My problem (which i apologize has been repeated already 2wice above) is that I basically lose control once redirected through the servlet to the report call. There is no way i can instruct Jdev, from the reports side, that the pdf has been generated and now has to be stored onto the DB, as i have lost the session context by redirecting to a different servlet.
    Any help would be GREATLY appreciated.
    Cheers
    K

    Hi,
    its quite some time ago that I a looked Oracle Reports, however, I think that the event mechanism is quite complex to achieve
    I want it to be done within the scope of a single request.
    Which means that if Oracle Reports hangs, the user session follows.
    As in, the entire process should be complete through one cycle.
    Unfortunately you don't control how long reports run, which means that there is no sense in stopping the page lifecycle for this
    I don't want to keep a day end sort of procedure that inserts into the db at the end of the day.
    Fair enough, but as far as I remember there is an eventing in Reports that would allow you to have the Oracle Reports Server triggering the upload
    So I think, the architecture I would go for is:
    - user requests report
    - report generates PDF output
    - reports uploads to DB
    - reports_processing table holds user ID and reports ID plus flag to update when report is done
    - If using JSF, you could use af:poll to check frequently for the report to be finished.
    This here may help: http://www.oracle.com/technology/documentation/reports.html
    Frank

  • Pdf reports on webtoGo ? urgent plz

    Hi ,
    I developed a webtogo offline application and successfully generated the jasper pdf reports on local jdeveloper.Now i am publishing the same on olite server.
    The pdf report first save in /report folder and then open on popup in a new window(works fine on local machine with jdev).
    Now i have a doubt if the same works on server too?
    Does my code works or not?
    becoz i am getting some null pointer exception.The same code i have deployed which is working on local machine.
    error log:
    java.lang.NullPointerException
         at purchasing.pages._error._jspService(_error.java:54)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.JspRunner.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.MimeServletHandler.handle(Unknown Source)
         at oracle.lite.web.JupApplication.handle(Unknown Source)
         at oracle.lite.web.JupApplication.service(Unknown Source)
         at oracle.lite.web.JupHandler.handle(Unknown Source)
         at oracle.lite.web.HTTPServer.process(Unknown Source)
         at oracle.lite.web.HTTPServer.include(Unknown Source)
         at oracle.jsp.runtime.OraclePageContext.include(OraclePageContext.java:514)
         at purchasing.pages._main._jspService(_main.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.JspRunner.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.MimeServletHandler.handle(Unknown Source)
         at oracle.lite.web.JupApplication.handle(Unknown Source)
         at oracle.lite.web.JupApplication.service(Unknown Source)
         at oracle.lite.web.JupHandler.handle(Unknown Source)
         at oracle.lite.web.HTTPServer.process(Unknown Source)
         at oracle.lite.web.HTTPServer.forward(Unknown Source)
         at com.osi.sew.servlet.SEWControllerServlet.doDispach(SEWControllerServlet.java:89)
         at com.osi.sew.servlet.ReportServlet.doPost(ReportServlet.java:111)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.AppServletHandler.handle(Unknown Source)
         at oracle.lite.web.JupApplication.handle(Unknown Source)
         at oracle.lite.web.JupApplication.service(Unknown Source)
         at oracle.lite.web.JupHandler.handle(Unknown Source)
         at oracle.lite.web.HTTPServer.process(Unknown Source)
         at oracle.lite.web.HTTPServer.handleRequest(Unknown Source)
         at oracle.lite.web.JupServer.handle(Unknown Source)
         at oracle.lite.web.SocketListener.process(Unknown Source)
         at oracle.lite.web.ClientListener.process(Unknown Source)
         at oracle.lite.web.SocketListener$ReqHandler.run(Unknown Source)
    Thanks

    r.jsp ----------------- <%@ page contentType="text/html;charset=windows-1252"%> <% String path = com.osi.sew.utils.SEWConstants.SEW_KEYS.CONTEXT_PATH;%> <script type="text/javascript">
    function populateDetails(){
    var processKey = populateDetails.arguments[0];
    var args = populateDetails.arguments[1];
    var ajaxIndex = populateDetails.arguments[2];
    if(processKey == 'advisedby'){
    // <![CDATA[
    function display(obj,id1,id2,id3) {
    txt = obj.options[obj.selectedIndex].value;
    document.getElementById(id1).style.display = 'none';
    document.getElementById(id2).style.display = 'none';
    document.getElementById(id3).style.display = 'none';
    if ( txt.match(id1) ) {
    document.getElementById(id1).style.display = 'block';
    if ( txt.match(id2) ) {
    document.getElementById(id2).style.display = 'block';
    if ( txt.match(id3) ) {
    document.getElementById(id3).style.display = 'block';
    // ]]>
    var url1='<%=(String)request.getAttribute("jasperPrint")%>';
    function open_on_entrance()
    url1 = '<%=(String)request.getAttribute("jasperPrint")%>';
    if(url1 != null)
    window.open(url1, 'iuiu', 'menubar,resizable,status,width=900,height=550,left=30,top=30');
    window.onload = function(){
    if(url1 == 'null'){
    //alert('url is null');
    }else{
    open_on_entrance();
    </script>
    <form action="%3C%=path%20+%20">" method="post" id="reportForm" name="reportForm" &gt;
    <table width="540" cellspacing="0" cellpadding="2">
    <thead>
    <tr>
    <td class="title">Report Type:</td>
    <td class="field"><select name="reportName">
    <option>Please select:</option>
    <option value="vendorReport">Gate Pass - Material Return to Vendor</option>
    <option value="report2">Report 2</option>
    <option value="report3">Report 3</option>
    </select></td>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <td class="align-center" colspan="2"><input type="submit" value="Submit" id="submit" name="submit" class='submit'>
    <input type="reset" value="Reset">
    </td>
    </tr>
    </tfoot>
    <tbody id="report2" style="display: none;">
    <tr>
    <td class="title">B'First Name:</td>
    <td class="field"><input type="text" name="fname" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">B'Last Name:</td>
    <td class="field"><input type="text" name="lname" size="15">
    </td>
    </tr>
    </tbody>
    <tbody id="report3" style="display: none;">
    <tr>
    <td class="title">G'First Name:</td>
    <td class="field"><input type="text" name="fname" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">G'Last Name:</td>
    <td class="field"><input type="text" name="lname" size="15">
    </td>
    </tr>
    </tbody>
    <tbody id="vendorReport" style="display: none;">
    <tr>
    <td class="title">PO Number:</td>
    <td class="field"><input type="text" name="poNumber" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">Receipt Number:</td>
    <td class="field"><input type="text" name="receiptNumber" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">Advised By:</td>
    <td class="field">
    <div><input size="25" type="text" id="advisedBy" name="advisedBy">
    </div>
    <span id="spanEmp" name="spanEmp" class='hidespan'></span></td>
    </tr>
    <tr>
    <td class="title">Prepared By:</td>
    <td class="field">
    <div><input size="25" type="text" id="preparedBy" name="preparedBy">
    </div>
    <span id="spanEmp2" name="spanEmp2" class='hidespan'></span></td>
    </tr>
    </tbody>
    </table>
    </form>
    Servlet.java --------------------------------
    public class ReportServlet extends SEWControllerServlet { private static final String CONTENT_TYPE = "text/html; charset=windows-1252"; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request,response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String key4nav = request.getParameter(SEWConstants.SEW_KEYS.PARAM_KEY); System.out.println("key4nav..report servlet"+key4nav); String key4next = key4nav; System.out.println("key4next"+key4next); boolean statusFlag = false; JasperReport jasperreport; Connection conn = null; try { if(key4nav.equals(SEWConstants.MODULE_PURCHASING.REPORT)) { String submitBtn = request.getParameter("submit"); String reportName = request.getParameter("reportName"); String location = SEWLoggedInUser.getLocation(); Map parameters = new HashMap(); if(request.getParameter("reportName").equalsIgnoreCase("vendorReport")) { String poNumber = request.getParameter("poNumber"); String receiptNumber = request.getParameter("receiptNumber"); String advisedBy = request.getParameter("advisedBy"); String preparedBy = request.getParameter("preparedBy"); String reportPath= request.getRealPath("/reports"); String reportImagepath= request.getRealPath("/images"); System.out.println("reportImagepath&gt;&gt;"+reportImagepath); jasperreport = JasperCompileManager.compileReport(reportPath+ "/vendor_report.xml"); parameters.put("poNumber",poNumber); parameters.put("receiptNumber",receiptNumber); parameters.put("location",location); parameters.put("advisedBy",advisedBy); parameters.put("preparedBy",preparedBy); parameters.put("reportImagepath",reportImagepath); conn = SEWConnectionManager.getConnection(); // response.setContentType("application/pdf"); // response.setContentLength(0); // ServletOutputStream out = response.getOutputStream(); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperreport, parameters, conn); byte[] bytes= JasperExportManager.exportReportToPdf(jasperPrint); response.setContentType("application/pdf"); //response.addHeader("Content-Disposition", "inline;"); //open in current window response.setHeader ("Content-Disposition","attachment;filename=\"report.pdf\""); //open in new browser window response.setContentLength(bytes.length); ServletOutputStream ouputStream = response.getOutputStream(); ouputStream.write(bytes, 0, bytes.length); ouputStream.flush(); ouputStream.close(); if(conn!=null){ conn.close(); } }
    Here i am the report Image and report xml path using
    String reportPath= request.getRealPath("/reports");
    String reportImagepath= request.getRealPath("/images");
    Does this work on webtogo?How does it look for the location of reports folder and then the xml file?
    Can you tell me how you are getting pdf in your application
    Edited by: rbojja on Jul 14, 2009 1:01 PM
    Edited by: rbojja on Jul 14, 2009 1:02 PM
    Edited by: rbojja on Jul 14, 2009 8:42 PM

  • Creating a PDF report within a popup window

    bq. Hi, \\ Within my application i've a page which uses JasperReports to generate a simple PDF report within prerender(): \\ public void prerender() { \\ try { \\ this.planned_bar_tripsDataProvider1.refresh(); \\ if (this.planned_bar_tripsDataProvider1.cursorFirst()) { \\ getApplicationBean1().*jasperReport* \\ ("PlannedBarTripsReport", "application/pdf", \\ getSessionBean1().getPlanned_bar_tripsRowSet1(), null); \\ } \\ } catch (Exception ex) { \\ log("Exception generating report", ex);} \\ } \\ jasperReport() is taken from the Sun PDF tutorial (http://developers.sun.com/jscreator/learning/tutorials/2/reports.html) \\ Now, when this page is opened within the application (browser) window the PDF report successfully renders. \\ However, when the page is opened within a popup window, using the (onclick) Javascript function: \\ function generateReport() { \\ window.open('PlannedBarTripsReport.jsp') ; \\ window.event.returnValue = false; \\ } \\ the PDF report fails to render. The result is a brief pause followed by a blank popup. No exception. No Abobe embedded window. No clues as to what's gone wrong. \\ Any advice would be greatly appreciated. \\ Ta.

    Hi Venkatv and everyone.
    This is the link where I found about Including Dynamic Images in a Report.
    http://www.oracle.com/technetwork/testcontent/apexprnt2-otn-098981.html
    It's so easy and clear to do.
    Good Luck!!!
    Regards.
    Ayrem

  • Problem while generating Encrypted PDF in batch

    Hi PPl
    I am generating encrypted PDF in batch. I have one requirement to generate about 1 lakh PDFs.
    But when i start my batch initially it works fine but after generating round about 25 PDF my program get
    stuck at Document.copyToFile method and after that it again generates around 5-6 PDF and stops for a while
    at the same place.
    I have tried the same program to generate PDF without Encryption and it works very fine.
    Guys i need your help to solve this issue.
    Waiting for your valuable inputs.
    Thanks

    Moved to the Java Development - Crystal Reports forum.
    Ludek

  • While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra positi

    While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra position and also pdf generated from this word file also contains the same.

  • Report: generate to file pdf format

    Hi folks,
    I have made a report which displays all data on preview and on printer. But when I use generate to file PDF option it misses data from columns at right hand side. The report has more than 15 columns and uses smaller font size.
    Kindly somebody help me in this regards.
    Tahir Abbas

    Do the column headings display ok but the data does not?
    If so it may be related to the font size. i.e. the whole report may not fit on the page when scaled for pdf output.

  • How to generate multiple output pdf's from one oracle reports

    how to generate multiple output pdf's from one oracle reports.
    I have a report where I have to generate more than one output files from the same report based on a parameter.
    Each output file is for each parameter.
    Is this possible in oracle reports, is so how ?

    You can better post your question in the reports forum instead of this pl/sql forum.

  • Generate multiple Oracle Applications pdf reports in one batch

    hi,
    we are working in oracle applications 11i.
    we have a custom salary slip report that is built with Oracle Reports Builder and run as a PDF report in Oracle HRMS.
    I need to find a solution to generate the reports/pdf files of all employees in one run/click, name each output file according to employee number and month in the report, save them all in a folder.
    How can I do this from either, reports builder, or Oracle applications?
    Regrads,

    Hi,
    I need to find a solution to generate the reports/pdf files of all employees in one run/clickYou can write a PL/SQL program which will dynamically submit the concurrent request for the report multiple times with different parameters. You will need to run the calling PL/SQL program only once.
    name each output file according to employee number and month in the reportThe output files generated are named according to Oracle EBS convention(like o<req_id>.out). I do not know of any way by which the output file names can be changed. You can however generate the report title dynamically, depending on the input parameter.
    save them all in a folderOutput files are generally stored in $APPLCSF/$APPLOUT. This location can be changed but it will affect all concurrent programs and not just your report.
    Regards,
    Sujoy

  • Pdf reports not getting generated

    Hello All,
    We are having an issue in generating the pdf reports.. we are getting errors as mentioned below
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    We went through the below mentioned note as well :
    REP-0069, REP-57054, REP-3000 in R12
    Our's is a multi tier Oracle E-Business suite setup with multiple nodes as mentioned below:
    a , b -- Web and forms
    c, d -- Concurrent tier nodes
    e, f -- Database tier nodes
    In the $APPL_TOP we did the below command to see what is setting for the DISPLAY environment variable.
    grep DISPLAY *.env
    it gave the results as mentioned below :
    instancename_a.env : export DISPLAY=a:311.0
    instancename_b.env : export DISPLAY=b:311.0
    instancename_c.env: export DISPLAY=c:311.0
    instancename_d.env: export DISPLAY=d:311.0
    Could someone please advise and help us regards this as to what all needs to be checked and verified for a multiple node instance ..we are not able to get which is that environment setting which is incorrect or missing which is causing these seeded report related error messages.
    thanks

    Please post the details of the application release, database version and OS.
    Can you reproduce the issue with PS reports?
    Please review these docs.
    Intermittent Oracle Reports REP-0069: REP-57054: Error [ID 1237834.1]
    Reports Fail With REP-0004 REP-3000 REP-0069 REP-57054 On a Cloned R12 (12.0.4) Instance [ID 742122.1]
    REP-1924, REP-0069, REP-57054, REP-1924 - Errors When Generate Reprts By PDF Style [ID 1053091.1]
    After Upgarde to R 12.1.2 Running Any PDF Reports: Get: REP-3000,REP-0069 and REP-57054 [ID 1204553.1]
    Concurrent Processing - Concurrent Reports Failing With Errors REP-0004,REP-0082 and REP-0104 [ID 844976.1]
    Thanks,
    Hussein

  • How to generate PDF report in Sharepoint Office 365

    Hi,
    We are building a custom webpart using sandbox solution and would like to generate report in PDF. Anyone have a clue?
    Thanks in advance ;
    Cheers, IXI solution

    You can use SSRS reports which can be saved in any format. Refer to the following post for more information
    http://sharepoint.stackexchange.com/questions/86100/best-way-to-generate-pdf-report
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/7a1b7d4d-c55d-4621-88d2-619a1ab23448/export-sharepoint-chartsreports-to-pdf?forum=sharepointadminprevious
    Alternatively, you could also try this solution from CodePlex
    http://pdfreport.codeplex.com/
    --Cheers

Maybe you are looking for

  • How can I have multiple WINDOWS (NOT tabs) with INDEPENDENT content?

    How can I have multiple '''windows''' (''not ''tabs) with '''independent''' content? I used to be able to open separate windows with Firefox, and the content could be completely different in each window. No matter what I did in any window, no OTHER w

  • Frame in MAIN window

    Hi, in my print program i´ve got something like: LOOP AT itab. l_counter = l_counter + 1. IF l_counter <= 13. CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = 'SMALLFRAME' WINDOW = 'MAIN' EXCEPTIONS OTHERS = 1. ELSE. CALL FUNCTION 'WRITE_FORM' EXPORTIN

  • IMac reads DVDs, but not CDs

    My computer will mount and open DVDs, no problem, but will not mount CDs, and will eventually eject them. I tried several CDs, including DiskWarrior, and music CDs. They are all ejected, except DW sometimes will just keep going (never getting past th

  • 'don't replace' vs 'keep both files'

    How do I get the 'Don't replace' option presented in Snow Leopard and previous vs the 'Keep both files' found in Lion when copying duplicate files to a folder?  I save copies to multiple devices and syncing them is so much slower now that I must choo

  • System control manager in GS70 2PC Stealth error

    Hello, I bought the laptop several days ago and it works fine. But after updating the version of the software from the official MSI site and updating all the windows updates I have occured an error with the SCM. I though if I repaired the .net framew