PDF Report Form

My company has download a trial of Designer and we are trying to create a report that will span multiple pages. The number of pages will be dynamic as they will be creating a report from a database.
I have tried to create a simple PDF form with a field that is automatically filled in from the Database. I can effectively pull the records back using a next button but, it will only show me 1 record at a time (1 page). Basically, I need one form to be auto-filled from a database and then have that form repeated for each record.
I have been browsing through the help files and online for some answers but am having trouble trying to find what im looking for.
My question is, Is it possible to create a multi page report using LifeCycle and where do I need to look? I have been reading about repeating subforms but can't seem to get them to work. When I click on the "Repeat Subform for Each Data Item" button it seems to still only be creating one page.
Just looking for a point in the right direction..
Thanks
Justin

Typically, you would create a data connection to this data base (via an ODBC data connection) in Designer using the Data View palette.
Then you would create fields to display the information from the data connection (which displays the data nodes for a single record) on the form and you would bind each data node in the data connection to a field on the form. (You can get a head start with creating the fields and binding them by simply dragging the data nodes from the data connection in the Data View palette.)
If you wanted to display one record per page, you would first have to place all you bound fields in a subform and then place this subform inside a
flowed subform (this is probably the step you were missing). You can make a subform
flowed by using the Content property on the Subform tab in the Object palette. Once the subform which contains the bound fields (let's call it the data subform) is placed in a flowed subform, you can then select the data subform and make it repeatable (as you've done before).
Next, you would have two possibilities:
Make the data subform as big as the page subform such that when a new instance is created, as the records are imported from the data connection, it automatically flows onto the next page.
Use a conditional break set on the data subform (use the Conditional Breaks property on the Object palette's Pagination tab) which specifies an expression where a change in a record value (could be an index value which changes for every record) triggers a break to a new page.
Please let me know if you have any questions.
Stefan
Adobe Systems

Similar Messages

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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

  • How to add entire new row at the top of table in pdf report from c# windows forms using iTextSharp

    Hi for past 3 days i was thinking and breaking my head on how to add entire new at top table created in pdf report from c# windows forms with iTextSharp.
    First: I was able to create/export sql server data in form of table in pdf report from c# windows forms. Given below is the code in c#.
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Text;
    using System.Data;
    using System.IO;
    using System.Data.SqlClient;
    using System.Windows.Forms;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    namespace DRRS_CSharp
    public partial class frmPDFTechnician : Form
    public frmPDFTechnician()
    InitializeComponent();
    private void btnExport_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    PdfPTable inner = new PdfPTable(1);
    inner.WidthPercentage = 115;
    PdfPCell celt=new PdfPCell(new Phrase(new Paragraph("Institute/Hospital:AIIMS,NEW DELHI",FontFactory.GetFont("Arial",14,iTextSharp.text.Font.BOLD,BaseColor.BLACK))));
    inner.AddCell(celt);
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(inner);
    doc.Add(table);
    doc.Close();
    The code executes well with no problem and get all datas from tables into table in PDF report from c# windows forms.
    But here is my problem how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    As the problem i am facing is my title or Header(DCS Clinical Report-Technician wise) is at top of my image named:logo5.png and not coming to it's center position of my image.
    Second the problem i am facing is how to add new entire row to top of existing table in pdf report from c# windows form using iTextSharp?.
    given in below is the row and it's data . So how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    as you can see how i create my columns in table in pdf report and populate it with sql server data. Given the code below:
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    So my question is how to make my column headers in bold?
    So these are my questions.
    1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?
    I know that i have to do some modifications to my code but i dont know how to do it. Can anyone help me please.
    Any help or guidance in solving this problem would be greatly appreciated.
    vishal

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in generating PDF Based form - SUI Report

    Hi,
    We are running Quarterly reports for Unemployment reporting at USA using tax reporter.
    We are not able to see the complete spool output for the Wage Type Listings but only just 1 page. In the tax reporter log we get the error "Error in generating PDF Based form HR_F_WLIST_CA" for respective states.
    Any idea how to resolve this.
    We are on ERP 6.04.
    Thanks,

    Hi,
    I think its  Basis problem.Ask basis gyus to repair the connection and try again.
    Regards,
    Manoj.

  • Creating a PDF report from a Form

    Hi all,
    Is it possible to create a PDF REPORT from a table based Form?
    Thanks,
    Maurice Niezen

    You can NOT use FOP and the BI Publisher RTF editor to make templates for PDF output.. You need an XML style sheet editor to format the report layouts..: http://www.java4less.com/fopdesigner/fodesigner.php
    Thank you,
    Tony Miller
    Webster, TX
    Never Surrender Dreams!
    JMS
    If this question is answered, please mark the thread as closed and assign points where earned..

  • App Server 10g2 - PDF Reports called from Forms go to a background window

    Hi all
    We have Application Server 10g2 in use, mainly for legacy forms and reports. We also have the Secure Java Web.Show_Document bean (frmrwinteg.jar) installed. Since the application of the October 2008 CPU when a form calls a PDF report, it will pop in the background and leave the Internet Explorer window with the form at the front. We have not changed any configuration settings which could affect this.
    Is there a way to go back to the old behaviour, that of having the report appear in the foreground instead of behind internet explorer? We'd appreciate any tips on this. Thanks.

    Well I am not sure if this is the original question. Here is what SebastienL mentioned originally:
    Is there a way to go back to the old behaviour, that of having the report appear in the foreground instead of behind internet explorer?He also mentioned this:
    Before, the PDF window would open in front of IE, like any new window should. Now it opens in the background and IE stays in front.And it seems to be happening not just for him but for all users (on multiple client machines) as he mentioned this:
    This occured overnight after a CPU patch to everyone who uses the system.If I am interpreting it correctly (and I don't claim to be correct in my interpretation), the issue is not about having to open PDF in the same IE window as the Forms. I am guessing SebastienL is looking to have PDF document appear in foreground (on top of Forms IE window) vs. it showing up in background (behind the Forms IE window).
    Did I get it right SebastienL?
    It does sound very much client configuration issue but I doubt (if my above assumptions are correct). Let me dig around and see if I can find something.
    Thanks
    Shail

  • Help inserting a filled out pdf form into a pdf report.

    Why can I not insert a filled out pdf form into my pdf reports?  I am new to Adobe Acrobat X. 

    See what it says under: File > Properties > Description > PDF Producer
    If it's an XFA form, is should say something like "Adobe LiveCycle Designer [version#]"
    You can also open the interactive JavaScript console (Ctrl+J) and enter the following line of code:
    xfa
    and with the cursor on the line, hit Ctrl+Enter, of the Enter key on the numeric keypad.
    If it's an XFA form it will return:
    [object XFAObject]
    Otherwise, it will return "xfa is not defined" and other stuff.

  • R12 - How to customize the seeded Purchase Order PDF report

    Hi,
    We need to customize the layout AND the data of the seeded Purchase Order pdf report that is generated in PO Summary form when user picks drop-down menu Inquire->View Document. I know how to set up the Document Type with a customized layout but I do not know how to update the XML data that feeds the layout.
    Thanks, Mike

    Mike,
    Please review the following documents.
    Note: 374165.1 - How To Customize The PDF Output For Printed Purchase Order Report (Portrait) ?
    Note: 406094.1 - How To Diagnose Issues Within Oracle Purchasing PDF File Creation for Printing
    Regards,
    Hussein

  • Open PDF report on clicking a URL link

    Hello,
    I have a requirement to open a PDF report when clicking on a URL.
    Example : Open a Purchase Order PDF report when clicked on a URL from a different web based system (non APEX). I was able to open APEX pages from the web pages but i am not sure how to open a PDF report. I will have to pass PO number in the URL.
    I would really appreciate it If anyone can give me some direction. I have created PDF reports within APEX and called from within other Pages in APEX but not outside of APEX.

    Sorry I really didn't mean to be stupid ;)
    below is my requirement. We use oracle ebs and we use forms version. Our requirement is to open various PDF reports by clicking a buttons/menu in different forms with in Oracle apps forms. We have APEX developer who can create PDF reports in APEX easily but the technology on ebs side is complex to develop simple PDF in the way users want. So we were thinking if we create a PDF report in APEX..and call the apex report from ebs. Is this possible? Inow we can call other APEX web pages from EBS.

  • Control the page height and page width of pdf report using pasta_pdf.cfg

    Hi All,
    I've followed the note: 338990.1 (how to print publisher PDF reports via the concurrent manager) in metalink to print a PDF REPORT. Everything work fine except the page height and page width is used as default (8X11). Is there anyway that i can custom page height and page width size such as: legal (8.5X14).
    current set up in pasta_pdf.cfg
    [DEFAULT]
    %% ============== Preprocessing Command ==================== %%
    % Pasta can use a preprocessing command to invoke any executable
    % that supports an input file and an output file (a filter program).
    % You can use redirection. Pasta will invoke the filter program
    % to preprocess the Pasta output before passing it to the printing
    % command. By using the preprocess option, you can generate output
    % formats other than the formats Pasta currently supports. For
    % example, you can generate PCL output.
    % You can use {infile} and {outfile} in this option.
    % {infile} is the output file generated by Pasta. You can use
    % it as input for the preprocessing command. It is a temporary
    % file and will be deleted after being passed to the
    % preprocessing command. {outfile} is the output file generated
    % by the preprocessing command. Pasta names it temporarily and
    % it will be deleted after being passed to the printing command.
    % If you want to keep it, you can name it by using the '-o'
    % command line option. Pasta will copy {outfile} to the file you
    % specify.
    % Preprocess for PDF output
    % This is an example for PDF output to print.
    ; Xpdf
    preprocess=/usr/local/bin/pdftops {infile} {outfile}
    ; Ghost Script
    ; preprocess=pdf2ps {infile} {outfile}
    ; Acrobat
    ; preprocess=acroread -toPostScript -pairs {infile} {outfile}
    %% ============== Printing Command ========================= %%
    % You can specify the printing command and options you want
    % to use to print your report. Pasta will pass the final output
    % to this command. {printername} will be replaced by the
    % actual printer name passed through the command line option
    % (-pn), so in most cases you don't have to change these
    % options.
    % for UNIX platform
    printCommand=lp -c -d{printername}
    % for Windows platform
    ntPrintCommand=print /D:{printername}
    %% ============== Error Log File =========================== %%
    % This tells Pasta to create a log file. The default error
    % output is stderr.
    ;errorlogfile=pasta.log
    NOTE: pasta version 3.0.4
    form server 6.0.8.27.0
    third party tool is pdftops
    Thanks
    Kevin

    i think that can be down from the printing direver/styles/prt files when you added the printer at your apps system check the follwoign for more info.
    ( How to Implement Printing for Oracle Applications: Getting Started )
    Note:269129.1
    (Step By Step Guide to Set Up a Printer in Oracle Applications)
    ( Note:60936.1)
    fadi
    http://oracle-magic.blogspot.com

  • PDF report to display on new window

    Hi,
    I am working on JSF and jasper reports. I have the following requirement, When I click the h:command button I should get the report in a new window based on the parameters selected in the h:form. I am currently getting in the same window. Help is greatly appreciated.
    following is the action method code in the bean
    connection = DBConnect.getDBConnection();
                /* PDF report */
                String              jasperFileName = "";
                jasperFileName = "C:\\report8.jasper";
                // jasperFileName = FacesUtils.getRequest().getContextPath();
                // jasperFileName += "/jasper/ApplicantBiographic.jasper";
                Map<String, Object> parameterMap   = new HashMap<String, Object>();
                /* data input */
                File file = new File(jasperFileName);
                reportInputStream = new FileInputStream(file);
                //FacesContext fc;
                /* write to file */
                request  = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
                String selectedParam = request.getParameter("rpt1:selectParam");
                System.out.println("Param value"+selectedParam);
                response            = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
                servletOutputStream = response.getOutputStream();
                String     spParms   = "4";
                 parameterMap.put("prgmId_sel", spParms);
                /* load input parameters */
                //BigDecimal aacomasId = new BigDecimal("10014122008");
                //Integer    applYear  = new Integer(2008);
                // String     spParms   = aacomasId + ", " + applYear;
                //parameterMap.put("SP_PARMS", spParms);
                log.info("file: " + file);          
                log.info(parameterMap);
                /* call jasper method to run report. */
                JasperRunManager.runReportToPdfStream(reportInputStream,
                                                      servletOutputStream, parameterMap, connection);
                FacesContext.getCurrentInstance().responseComplete();
                servletOutputStream.flush();
                servletOutputStream.close();Thanks
    Sandeep

    Hi,
    You may convert the spool of your report into PDF quite simply, this has been discussed many times in this forum.
    If you want to provide additional functionalities, especially of your report consists in a table (well, that is generally the case, isn't it), you can use a tableView that provides sorting, filtering, ...
    Besides, it is also possible to turn the tableView content into Excel but you already have this one...  
    Any reason (release ?) you chose BSP over Web Dynpro ABAP ?
    Best regards,
    Guillaume

  • 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

  • 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

  • Arabic PDF Report generate issue with Arabic Letters

    Hi
    I have an issue with Arabic PDF report,its display Junk characters,
    where as English PDF report is working fine and Arabic Text report is working fine.
    I need help to fix the above issue.

    970649 wrote:
    Hi
    I have an issue with Arabic PDF report,its display Junk characters,
    where as English PDF report is working fine and Arabic Text report is working fine.
    I need help to fix the above issue.Please post the details of the application release, database version and OS along with the database characterset.
    Please see these docs/links.
    Fonts Displayed As Junk Characters In PDF Report Output [ID 1218354.1]
    How To Print XML Publisher PDF Reports From The Concurrent Manager [ID 338990.1]
    How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set [ID 443778.1]
    How to Generate PDF Output With UTF8 in R12? [ID 778970.1]
    Arabic Data Appears As Junk , Currently using Forms Patchset 16 & XML [ID 755786.1]
    Why Printer Print Junk characters when printing rtf Bi Publisher Report Out Put? [ID 1497767.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=PDF+AND+Junk&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

Maybe you are looking for