Pdf report..need argent help pls....

hi everybody,
Pls. tell me some solution of this problem i am really tired with this problem.I am using iText for pdf report.And using table in the report.But if i am printing 2 or 3 records,it's working fine but if i am printing record directly for database,it show me this error...
ExceptionConverter: java.io.IOException: The document has no pages.
     at com.lowagie.text.pdf.PdfPages.writePageTree(Unknown Source)
     at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)
     at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
     at com.lowagie.text.Document.close(Unknown Source)
     at org.apache.jsp.Noname1$jsp._jspService(Noname1$jsp.java:160)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
     at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
     at java.lang.Thread.run(Thread.java:534)
and here is my code:
<%     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
     conn = DriverManager.getConnection ( "jdbc:odbc:unsoda_project" ,"unsoda_webproject" ,"project");
str="select * from general_soil where FAMILY like 'sandy, mixed frigid Pachic Haplaboroll'";
     pst3 = conn.prepareStatement(str);
     rs3 = pst3.executeQuery();
Document document = new Document();
try {
PdfWriter.getInstance(document, new FileOutputStream("test1.pdf"));
document.open();
Table datatable = new Table(13);
datatable.setPadding(4);
datatable.setSpacing(0);
Cell cell = new Cell(new Phrase("UNSODA DATABASE",FontFactory.getFont(FontFactory.HELVETICA, 24, Font.BOLD)));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setLeading(30);
cell.setColspan(13);
cell.setBorder(Rectangle.NO_BORDER);
cell.setBackgroundColor(new Color(0xC0, 0xC0, 0xC0));
datatable.addCell(cell);
               datatable.setDefaultCellBorderWidth(2);
datatable.setDefaultHorizontalAlignment(Element.ALIGN_CENTER);
datatable.setDefaultColspan(13);
               datatable.addCell("GENERAL PROPERTIES");
               datatable.setDefaultCellBorderWidth(2);
datatable.setDefaultHorizontalAlignment(1);
               datatable.setDefaultRowspan(1);
datatable.setDefaultColspan(1);
datatable.addCell("Family");
datatable.addCell("Series");
datatable.addCell("Texture");
               datatable.addCell("Structure");
datatable.addCell("Depth Upper");
datatable.addCell("Depth Lower");
               datatable.addCell("Horizon");
               datatable.addCell("Depth GWater");
               datatable.addCell("Location");
               datatable.addCell("Site ID");
               datatable.addCell("Annual Rain");
               datatable.addCell("Avg Temp in Jan");
               datatable.addCell("Avg Temp in Jul");
               datatable.endHeaders();
               datatable.setDefaultCellBorderWidth(1);
datatable.setDefaultRowspan(1);
               while(rs3.next()){
                    datatable.addCell(rs3.getString("family"));
                    datatable.addCell(rs3.getString("Series"));
                    datatable.addCell(rs3.getString("Texture"));
                    datatable.addCell(rs3.getString("Depth Upper"));
               datatable.addCell(rs3.getString("Depth Lower"));
                    datatable.addCell(rs3.getString("Horizon"));
                    datatable.addCell(rs3.getString("Depth GWater"));
                    datatable.addCell(rs3.getString("Location"));
                    datatable.addCell(rs3.getString("Site ID"));
                    datatable.addCell(rs3.getString("Annual Rain"));
                    datatable.addCell(rs3.getString("Avg Temp in Jan"));
                    datatable.addCell(rs3.getString("Avg Temp in Jul"));
               document.add(datatable);
catch(Exception e) {
e.printStackTrace();
document.close();
%>
pls. tell me some solution.
Thanks
Sonika

I found a solution to this problem. You need to 'fragment' your table the following way:
Add the existing table to the document (after, say, 50 rows)
Remove all rows from the existing table
Set skipFirstHeader() to true (or the header will repeat)
Add new rows to the table until you hit the threshhold
At the end, add the final table fragment to the documentThe issue apparently stems from memory management within i-Text and the amount of data that can be held in a stream. You can find a code example at:
http://itext.sourceforge.net/examples/com/lowagie/examples/objects/tables/pdfptable/FragmentTable.java
Happy rendering.
- Saish

Similar Messages

  • I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    Dear Ones,
    I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    see if this is helpful : [http://support.mozilla.org/en-US/kb/Opening%20PDF%20files%20within%20Firefox Opening PDF files within Firefox]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • HT201304 I don't what is wrong with my card I can't buy anything on apple store even free ones I can't download, they said my previous purchase have a problem but I don't how wil I do to solve this problem, I need a help pls

    I don't what is wrong with my card I can't buy anything on apple store even free ones I can't download, they said my previous purchase have a problem but I don't how wil I do to solve this problem, I need a help pls

    What is the exact error message you're receiving?

  • Japanese in reports-- needs urgent help

    I am using aplication server 9.0.2.0.1 basically i want to use report services with it.
    I am facing some problems in generating reports with japanese character. Infracture and application are installed on different m/c character setting for infracture is UTF8.
    Not applied any patch. OS is win2000 pro.
    NLS_LANG for application server in registry is set to JAPANESE_JAPAN.JA16JIS
    Now the problems i am facing are:
    1. In pdf japanese character are comming as junk character but not "?????". I did every thing a/c
    to doc http://otn.oracle.com/products/reports/htdocs/pdfenh.htm#uifont but not working.
    MY M/c default regional setting is Japanese
    2. In HTML i need to change the encoding of browser to UTF8 to get the report correctly. What can be done to this?
    so that one will not have to change the encoding.
    Now when i envoked the servlet for displaying environment variable NSL_LANG is displayed as JAPANESE_JAPAN.UTF8 and not JA16SJIS. PDF characters are displayed as html before changing the encoding of browser to UTF8.
    Can any one let me know how to change that to JA16SJIS i have already tried changing that in registry!!
    Can any one please help me with this??
    Thanks in advance.
    Thanks and regards,

    Dear Sripathy!!
    As i have already mentioned changing NLS_LANG to SJIS on server m/c is not reflecting so font alising is not working. i changed it in registry. It is showing as UTF8 on the environment setting page. Can u tell me how to change that in SJIS for using the first option.
    for using the second option it works only with true type font. but in my case it showing as type1 what should i do??
    Since we already have the lisence for the said version i can't go for the third option.
    If you can help me with this will be of great help.
    You can directly send me the option on [email protected]
    Thanks in advance

  • Showing prompt value in report - Need Urgent help

    Hi All,
    I have created a query that has a prompt (it is not the dashboard prompt) that has " in Between" operator. It is on date column. When i am generating report by passing the prompt value the data is coming properly.
    I have downloaded the report in excel format and it is coming perfect. But i am not able to provide the data that he has selected in the prompt.
    Like on top of page i need to show - The report is genrated for Date1 to Date2.
    And then the data.
    Thanks in advance for any clue. I am not able to figure out how to do this.
    Thanks
    Ashok

    Hi Ashok,
    It seems it's possible, but not with the Filters view... but with Narrative View....
    If you have Calendar Date (which contains all dates till today) column in your model, then... if you want to show only the date prompt values on top even though you have all other prompts...
    For above mentioned criteria... you can't show only one date using filters view...
    Now... go with Narrative View,
    In that particular report add Calendar Date column 2 times...
    On one column apply Max(date) and on another column apply Min(Date)....
    Hide those...
    Now note down the positions of these above 2 columns in criteria... say 6 & 7... respectively...
    Now you write in narrative view...
    Selected Date between @ and @6
    So... based on the dates you selected.. the calendar date populate with the values and would hold the max and min i.e. what... selected values of your prompts...
    So by using this.. you can only show.. one prompt.... not all the prompts which you have...
    May helpful to you when you have .. Calendar Date only... remember ;)
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Nov 20, 2008 7:52 PM

  • Error while executing the Report( Need your help gurus) !!!

    Hi,
    Today morning when i was checking the report for monthly data i,e from 1sept to 28th sept.
    I got this below error msg. Can you pls guide me why its throwing an error.
    <b>Error      SQL Error: 1555
    Error      Error when generating the SQL statement
    Error      Error reading the data of InfoProvider POS_IS1
    Cancel      System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01-</b>
    Points Assured.
    Urs,
    RK.

    hi,
    There is some time limit set for the request to run when you run a program in the foreground or in the background. If the time limit exceeds this will occur, run the program again then this might not happen.
    This might be related to table space issue, or roll area or memory. Show the short dump (ST22) to your Basis person and tell me to adjust/increase the respective tablespace .
    Regards
    Pankaj

  • Newbie report. need some help.

    I bit the bullet and installed ArchLinux on a 'clean' laptop. Prior to Arch, I had a dual-boot system running Ubuntu 7.04 and XP. I was planning to install ArchLinux, and run WindowsFLP (I still got apps that only work in Windows) under VirtualBox.
    I got around to installing ArchLinux using FTP install - not my original plan.   I'm glad to have backed up my data to an external drive because after I repartitioned the whole disk, I got stupid and somehow ruined my installer disc during the process. . I'm glad to have an old puppylinux disc at hand, so I managed to download the software I need to install 64-bit Arch via USB stick.
    Right now, I'm not very sure whether to be happy about it or not. I've been on Ubuntu for several years now and it was the only distro that made me stick with Linux 98% of the time. What I liked about Ubuntu is that in most cases, I don't have to bother with most things. They just work. (Or at least, the things I wanted did.)
    Now I have Arch installed with XFCE. Unfortunately, I'm beginning to get tired of having to install everything I wanted one package at a time. Though I like the control and the latest program versions I get; but I'm not really an expert so I miss the 'friendliness' of Ubuntu. For example, after I got my DE running (thanks to the great wiki and forum) I have to get a browser (epiphany), and then an office suite (openoffice), next is drawing program (inkscape). I still have lots of packages to work on (Bluetooth, Gramps, VirtualBox, etc, etc.)
    I'm kinda irritated that not everything is working smoothly. Flash is not working. I can't get Firefox to run. Some of Epiphany's icons are missing (I only got an image with a red 'X' in its place). check this image:
    I haven't decided on whether it's for keeps - it's like a day-old only and still the only OS running on my computer. I'll give Arch a go and compare it with Ubuntu 8.04 when it comes out three weeks from now.
    I hope for some feedback. Thanks.
    EDIT
    - icon problem resolved by changing to Tango icon pack
    - still working on Flash
    Last edited by GOwin (2008-04-09 00:30:55)

    sudo pacman -Sy flashplugin
    Tried it but it's not working. Got this "error: 'flashplugin': not found in sync db"
    As for my Icon problem. Changing the Icon set didn't work out.
    As you can see, there are other icons missing. Here's a screen shot of the toolbar editor with highlights on missing icons.
    Last edited by GOwin (2008-04-08 13:26:39)

  • I NEED A HELP PLS

    My phone wont stop talking and  my screen just stop talking what can i do to stop it

    I have kids like that!
    Seriously, I have no idea what you're asking here?  Your phone is talking?
    Also, I notice you have your phone number listed in your profile. It is unwise to post your phone number there for all the Internet world to see and possibly harvest for spam use. At the top of the page click on My Settings and go to personal information and remove your phone number.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Crystal report - need some help

    Hi
    I'll try to explain my problem simply. Basically we have a support line in our company and i am putting report on a screen that will show missed calls ( that part is done) and was the call returned(here is the problem).
    We have 3 inbond phone queues and 1 outbound. I am connecting to orderlystats database which is supplying me with the missed calls and the queue id. It is supplying as well, was the missed call called back or not, but marking that only if missed caller call back again, if we call back him the orderlystats is not marking that missed call as called back.
    Now what i want to do is check in the outbound queue, was there a call with the same callerid that have been missed and if there was a call like that, mark the missed call as returned.
    Here is some info about the database:
    acdqueueid (Number)      (1 = outbound queue, 7 = inbound queue, 8 = inbound queue, 10 = inbound queue)
    callerid (String)
    calledback (Number) (0 = no, 1 = yes)
    At the moment the report is not displaying the outbound queue at all as we want just the inbound missed calls. The question is how i can compare the callerid from 3 inbound queues and check was there the same callerid in the outbound queue and mark that in called back variable?
    Current SQL Query:
    SELECT `orderlystats_call1`.`calledback`, `orderlystats_call1`.`entry`, `orderlystats_call1`.`agentid`, `orderlystats_call1`.`acdqueueid`, `orderlystats_call1`.`holdtime`, `orderlystats_call1`.`callerid`
    FROM   `orderlystats`.`orderlystats_call` `orderlystats_call1`
    WHERE  (`orderlystats_call1`.`acdqueueid`=7 OR `orderlystats_call1`.`acdqueueid`=8 OR `orderlystats_call1`.`acdqueueid`=10)
    I hope all this make sense.
    Thanks in advance for any suggestions.
    Karol

    I honestly got lost in translation, but, I would think you could leave the main report as is.
    Add a sub report, add a link to the sub-report,  link by the call id.
    In the subreport, make your db connection the Callback database.
    you could then pull info from the Callback DB, based on the value of the Call ID from the main report.
    Hope that makes sense.

  • S2110 tablet, "no SIM card found" and modem replacement...need tech help pls!!!

    Hello!
    I just found a way to recover Lenovo S2110/Vodafone Smart tab II 10 from bootloop.
    Here's the guide:
    http://forum.xda-developers.com/showthread.php?t=2603726
    BUT coming from an original Vodafone firmware I've lost 3g with the "SIM card not found" error.
    After checkign partitions details and finding that the /dev/block/mmcblk0p1 is the modem, I've got it extracted from the original Vodafone firmware and replaced on my system, but nothing...still can't find the SIM card!
    Is there someone with deeper technical knowledge that can give me any advice and suggestion ?
    Thank you in advance ;-)
    Have a nice day !
    *** nothing is impossible ***

    Actually I suspect the SIM card was not detected even before flashing the Lenovo firmware over the Vodafone one !
    *** nothing is impossible ***

  • HT201401 I need your help. I use iPhone 4 . I've just downloaded new iOS for while. Today my phone couldn't on and off . When I' was home and tried to connected with USB ,but it wasn't necessary. Pls help me.

    I Need your help ,pls. I can't use my iPhone . It can't on and off , no display anymore.

    Hello Apple_Addict22,
    Thank you for your question. iOS 7 requires iTunes 11.1.  First, I recommend trying to obtain the update by going to the iTunes menu and selecting Check for Updates.
    iTunes: How to install the latest version
    http://support.apple.com/kb/ht5654
    If you continue to get the message that iTunes is up to date, you can download the latest version of iTunes here:
    Download iTunes
    http://www.apple.com/itunes/download/
    Once the file downloads, double click on the installation file that downloaded to initiate the installation.
    Best,
    Sheila M.

  • PM BAPIs COMPONENT_INSTALL and  COMPONENT_DISMANTLE  Help pls

    Good Day  experts
    Need your help pls regrding the below 2  SAP FMs
    COMPONENT_DISMANTLE
    and
    COMPONENT_INSTALL
    _the data or parameters available is
    AUFNR =  Refrance PM Order
    TPLNR = functional location
    EQUNR = Equipment No. to be dismantled or Installed
    MATNR = Material No
    SERNR = Serial No,
    LGORT  = Storage Location
    OBJNR = Object No for the Equipment
    HEQUI = Superior Equipment No
    TPLMA = Superior functional location
    CALL FUNCTION 'COMPONENT_INSTALL' "
    EXPORTING
      iv_simulation =             " xfeld         Checkbox
    TABLES
      it_goodsmvt_serialnr =         " bapi2017_gm_serialnumber  _BAPI Communication Structure: Create Mat. Doc., Serial No.
    CHANGING
      cs_ipw4_com =                    " ipw4_com      Communication structure for Equipment install/removal trans.
      cs_goodsmvt_header =        " bapi2017_gm_head_01  BAPI Communication Structure: Material Document Header Data
      cs_goodsmvt_item =             " bapi2017_gm_item_create  BAPI Communication Structure: Create Material Document Item
      cs_goodsmvt_code =           " bapi2017_gm_code  MMIM: New Key Assignment GM_CODE to Transaction of Inv. Mgmt
      cs_sequi =                            " v_equi        Generated Table for View V_EQUI
      cs_hequi =                            " v_equi        Generated Table for View V_EQUI
      cs_hiflo =                              " iflo          Table generated for View IFLO
      ct_log_handle =                    " bal_t_logh    Application Log: Log handle
    is any one have ever used them before I need ur help how can I populate the required data in these tables do i just have to pass the values  ?
    Thanks alot
    Edited by: Nora2000 on Dec 17, 2011 3:04 PM
    Edited by: Nora2000 on Dec 17, 2011 3:04 PM

    Error message at installation | CS3

  • PLS HELP ME TO CALL ANOTHER PDF REPORT FROM PDF REPORT

    function F_PO_NOFormatTrigger return boolean is
    BEGIN
    SRW.SET_HYPERLINK
    ('http://server:8888/reports/rwservlet?server=XREPORT&destype=cache&userid=pibs/pibs@ora9i&desformat=PDF&report=RPT_PURCHASE_DETAILS.PDF'||'&LXWHERE='||' WHERE PO_NO='||''''||:PO_NO||''''||'&FACILITY_DESC='||:FACILITY_DESC);
    return (TRUE);
    end;
    but when i click on link it show me blank pls help

    function F_PO_NOFormatTrigger return boolean is
    BEGIN
    SRW.SET_HYPERLINK
    ('http://server:8888/reports/rwservlet?server=XREPORT&destype=cache&userid=pibs/pibs@ora9i&desformat=PDF&report=RPT_PURCHASE_DETAILS.PDF'||'&LXWHERE='||' WHERE PO_NO='||''''||:PO_NO||''''||'&FACILITY_DESC='||:FACILITY_DESC);
    return (TRUE);
    end;
    but when i click on link it show me blank pls help

  • How to embed images in PDF reports - help!

    i have gone through the demo at http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt2_otn.htm and this works fine UNLESS the image is bigger than say 8Kb.
    How do i accomplish embedding an image in a PDF report if these images are (substantially) bigger??
    I have tried asking this on this forum a number of times with no success. Is there ANYONE out there that can help me in this urgent matter?
    Any help would be venerated.
    regards,
    stafford

    Before entering into XSL-FO, I would strongly advise using XML-Spy or a similar product to check the validity of the XSL-FO code.
    Also, I found the process to be highly iterative, building up the XSL-FO piece by piece. For this purpose I created a test harness in which I could enter the XML data and the FO sheet and generate the PDF outside of Apex. This saved quite a lot of time as I did not have to delete the report query each time I wanted to apply a change.
    Anyway heres the XSL-FO for a letter generated by the system.
    I use a bit map for a logo, I checked the size of it and it is 56k.
    I'll submit a further post with the test harness.
    Also, let me know if you need help installing FOP.
    Cheers
    Paul
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:ora="http://www.oracle.com/XSL/Transform/java/" xmlns:xdofo="http://xmlns.oracle.com/oxp/fo/extensions" xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions" xmlns:xdoxliff="urn:oasis:names:tc:xliff:document:1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="master1" page-height="29.7cm" page-width="21cm" margin-top=".5cm" margin-bottom=".5cm" margin-left="1cm" margin-right="1cm">
    <fo:region-before region-name="region-header" extent="0cm"/>
    <fo:region-body region-name="region-body" margin-top="1cm" margin-bottom="1cm"/>
    <fo:region-after region-name="region-footer" extent="2cm" display-align="after"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block>
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Gov Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">A Unit</fo:block>
    <fo:block padding="15pt"></fo:block>
    <fo:block>
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/>
    </fo:block>
    <xsl:for-each select="//ROWSET4/ROWSET4_ROW">
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL" />/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    <fo:block>
    <xsl:for-each select="//ROWSET1/ROWSET1_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    <fo:block padding-top="15pt">
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_TELNO'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_EMAIL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'URL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="140pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Our ref: <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>Date: <xsl:value-of select="//ROWSET3/ROWSET3_ROW/TODAY" xdofo:field-name="TODAY"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <!--
    -->
    <fo:block padding-top="20pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Dear <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row padding-top="10pt">
    <fo:table-cell text-align="center">
    <fo:block>EGG MARKETING REGULATIONS - EGG PRODUCTION SITE ID APPROVAL - <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>I am writing to inform you that your production facility at</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row space-after="4pt">
    <fo:table-cell>
    <xsl:for-each select="//ROWSET5/ROWSET5_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block padding-after="5pt">has been accepted. Your production site has been allocated the following code(s)</fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding="10pt" margin="10pt" >
    <xsl:for-each select="//ROWSET8/ROWSET8_ROW">
    <fo:table>
    <fo:table-column column-width="270pt"/>
    <fo:table-column column-width="270pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_7"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_SCO"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>What the numbers mean</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>0UK - "Organic" production system permitted to use the marketing term "Organic Eggs".</fo:block>
    <fo:block>1UK - "Free Range" production system permitted to use the marketing term "Free Range Eggs".</fo:block>
    <fo:block>2UK - "Barn" production system permitted to use the marketing term "Barn Eggs".</fo:block>
    <fo:block>3UK - "Cage" production system permitted to use the marketing term "Eggs from Caged Hens".</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>The number located between the UK and SCO is tyour unique production site code. The SCO and or 7 suffiix denotes that the production site is located in Scotland.</fo:block>
    </fo:flow>
    </fo:page-sequence>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block space-after="30pt">
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Rural Payments and Inspections Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">Eggs and Poultry Unit</fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL"/>/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Stamping</fo:block>
    <fo:block space-after="10pt">All Grade A eggs must be stamped with the relevant producer code. Failure to do so would render the eggs unmarketable for human consumption.</fo:block>
    <fo:block font-weight="bold" space-after="5pt">Records</fo:block>
    <fo:block space-after="5pt">Records <fo:inline font-weight="bold">MUST</fo:inline> be kept for <fo:inline font-weight="bold" text-decoration="underline">EACH HOUSE</fo:inline> showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of housing and the number of birds placed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The age of birds at the time of housing</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Mortality figures for the life of the flock</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of the depletion and numbers depleted</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The number of eggs produced and forwarded to egg packing centres</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block space-after="5pt">Where feed claims are made records <fo:inline font-weight="bold">MUST</fo:inline> be kept showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The use of the feed claim</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Quantities of feed used</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Type of feed supplied of mixed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Source of the feed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Date(s) of delivery</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Notification of Changes</fo:block>
    <fo:block space-after="10pt">You are required to inform this Government Department, without delay, of any changes concerning registered data supplied in your original application, including additional housing and/or birds.</fo:block>
    <fo:block padding-top="30pt">
    </fo:block>
    <fo:block space-after="40pt">Yours sincerely</fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_OFFICER" xdofo:field-name="RPID_OFFICER"/></fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_JOB_TITLE" xdofo:field-name="RPID_JOB_TITLE"/></fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>

  • Stand alone oracle report - need help asap

    Hi,
    We are in ORACLE Apps 11i. We started using ORACLE BI Publisher to create templates for the Oracle Reports. How we are doing reports now is
    1) create data definition XML which has all the queries embedded.
    2) Create Data definition in XML Publisher Admin responsibility.
    3. Attach the Data definition XML to that.
    4. Create a concurrent program definition for the report with XML Type and run the report and save the data file with tags.
    5. Create the template ,rtf in Word and export data using ORACLE BI Publisher. 6. Create template definition in the XML Publisher Admin responsibility and attach this .rtf to that and run the report.
    Now I have a requirement stating that the REPORT SHOULD BE AN ORACLE STAND ALONE REPORT AND THE REPORT NEEDS TO BE RUN THROUGH CONCURRENT PROGRAM SCREEN. I am planning on doing the following steps.
    1. I have to create an .rdf using report builder.
    2. Create concurrent program executable and definition for the report.
    3. Create data definition in XML Publisher admin responsibility.
    4. Run the report in apps.
    5. Create the tempalte .rtf in word and export data with the XML Data file with tags,
    6. Run the report.
    Am I correct? Any help is appreciated asap.
    Thanks
    Akil

    You said,
    standalone report ?? is that mean without using bipublisher ??
    1st method.
    create concurrent program, output xml,
    create data template, create datadefintion , attach Datatemplate.
    run the cc pgm, get xml, design RTF , create template definition , attach RTF,
    run the cc pgm, you get the pdf output.
    2nd method.
    create rdf,
    create concurrent program, output xml,
    run the cc pgm, get xml, design RTF ,
    create datadefintion , create template definition , attach RTF,
    run the cc pgm, you get the pdf output.
    , both requires, cc pgm, rtf, data defintion , template definition.
    only differnece is , how do you get the data, i mean, xml...
    data template or RDF.

Maybe you are looking for

  • Making sense of wsdl code generation (BetFair API)

    Hi all, I must warn you in advance that my Java knowledge is basic - I am learning as I go along, and some parts have a steep learning curve! I have imported the BetFair wsdl (from https://api.betfair.com/betex-api-public-ws/v2/BFService.wsdl )and ge

  • HT1212 iPod touch disabled but I HAVE the passcode...

    Is there any way I can restore it with out erasing all the data? my son lucked out of his iPod touch (4th)... but I have his passcode... the problem is that I haven't synced it with iTunes in ages... (bad mommy...) and all of his games progress are g

  • Number precision too large

    THE FOLLOWING SIMPLE CODE IS GIVING ERROR even though i have given the definition (2,3) which is larger than the length of value 3.14 ? declare pi constant number(2,3):=3.14; r number(5) ; a number(5); begin r:=2; a:=pi*power(r,2); dbms_output.put_li

  • After importing my iPhoto images to Aperture, edited RAW files render strangely

    Hi, Yesterday I imported my iPhoto 09 library to Aperture 3. I have a problem with my RAW files (from a Sony Alpha 55). I have done some edits to these photos in iPhoto 9 and these edits did carry over to Aperture. Unfortunately the resulting image l

  • I have installed Adobe Premier Elements 11 Trial version, can't find program

    I have downloaded this multiple times through the Download Assistant, the program does not then automatically install, but I went to the folder where I had directed the download and double clicked on the Setup file.  Then the installation process hap