Using Dynamic Images in PDF Reports

There are a number of threads in the forum where we talked about dynamically including images in PDF reports before. In order to illustrate one technique you can use for doing this, I put together a sample application that illustrates how to dynamically include images that are stored in BLOB columns. I installed the application on apex.oracle.com and made it available for download and local install. You can find the link and login information for this application as well as the download link here:
http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html

Based on a discussion we had today in another thread, I think it makes sense to add to this thread that the XSL-FO snipped used to get BI Publisher to render images is used when referencing images in a report column, e.g. you included them in your RTF layout using the BI Publisher Desktop Insert->Table option. In this case, the column is referenced with “value-of select”:
<fo:instream-foreign-object content-type="image/jpg">
<xsl:value-of select="LOGO"/>
</fo:instream-foreign-object>
On the other hand, if you want to dynamically include a company logo, or other data that’s not necessarily repeating, e.g. there’s only one value, then you would use the BI Publisher Desktop Insert->Field option . And you would reference your field as follows:
<fo:instream-foreign-object content-type="image/jpg">
<?LOGO?>
</fo:instream-foreign-object>
So in this case LOGO refers to either a single-value field, or a single-row report column value.
Regards,
Marc

Similar Messages

  • Dynamic Images in PDF Report

    Hi,
    I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
    "ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
    it seems like a buffer problem.
    could you pls help to solve this problem
    Thanks,
    Ribhi

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Dynamic Images in PDF and Escaping Special Characters

    I used the following to create my own PDFs with dymnamic images:
    http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
    I have installed this application on Oracle's free workspace to test.
    The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
    I'm a complete novice with xml. Any help with this is greatly appreciated.
    Thanks,
    Glen

    I have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
    XMLCdata(replace(description,''&'',''and'')) description,
    The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
    Does anyone know of a way to get the & to display correctly?
    Thanks again,
    Glen
    The complete code I am using is below:
    declare
    l_print_layout clob;
    l_xml_data clob;
    begin
    -- load print layout from database
    for c1 in (
    select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
    ) loop
    l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
    end loop;
    -- generate XML data
    for c2 in (
    select dbms_xmlgen.getxml('
    select
    id,
    file_name,
    mime_type,
    XMLCdata(replace(description,''&'',''and'')) description,
    -- description,
    blob2clobase64(image,''Y'') image
    from eba_pdfimg_images
    ') xml_data from dual
    ) loop
    l_xml_data := c2.xml_data;
    end loop;
    -- download print document
    wwv_flow.g_page_text_generated := true;
    apex_util.download_print_document (
    p_file_name => 'image_demo',
    p_content_disposition => 'ATTACHMENT',
    p_report_data => l_xml_data ,
    p_report_layout => l_print_layout,
    p_report_layout_type => 'rtf',
    p_document_format => :P1_FORMAT
    end;

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • How to use dynamic parameter when a report is created using Stored Procedures

    Hi all,
    any one have the idea of how to use dynamic parameter in crystal report XI R2
    when report is created using Stored Procedure.
    Regards
    shashi kant chauhan

    Hi
    You can create an SQL command in Database Expert > Expand your datasource > Add command
    Then enter the SQL query that will create the list of values to supply to the user
    eg select field1,field2 from table
    Then edit the parameter of the report.  These will be the SP parameters adn can be seen in field explorer.
    Change the parameter type to Dynamic
    Under the word Value click on Click here to add item
    Scroll down to your Command and select one of the values that you want to appear in the list
    e.g field1
    Then click on the Parameters field - this is essential to create the param
    You can edit other options as required
    That should do it for you.
    I must say that i use CR 2008 connected to Oracle 10g SP, but i reckon this will work for SQL DB and CR XI as well
    Best of luck

  • How to display the Image in PDF report by using iText Report

    Hi
    Im trying to display the image which is very big one.
    This is my code
    Document document=new Document();
    PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf"));
    document.open();
    Image image = Image.getInstance ("1.bmp");
    document.add(new Paragraph("Images in PDF"));
    document.add(image);
    document.close();
    But the image "1.bmp" is displayed partially. Its not spanning to the next page.
    Can anyone help me to solve this one?
    Thanks in Advance
    dhilip

    Do you actually want the image to span multiple pages? I am not sure that will be possible without splitting the image; the itext mailing list would be the place to ask.
    You could make the the page size big enough for the image using Document.setPageSize()

  • Dynamic Images in Crystal Reports

    I have a report with Dynamic Images. I am able to run the report but once I try to export it or try to browse through the pages I get the following error:
    Application popup: Crystal Reports - [Inventory Graphics Report.rpt]: crw32.exe - Application Error : The exception Integer division by zero.
    (0xc0000094) occurred in the application at location 0x2c03a410.

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

  • 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>

  • How to insert a dynamic image in a report

    Hi,
    I want to insert the image of a student in a report toghether with all other student's data. The image's file name is in a field of the students' table and the file is stored in a directory of the web application. I am using Visual studio 2010 and the reports are prepared with Crystal Reports 2008 (full product). At design time, when I try to insert an image on the report, it immediately asks for an image file on the computer, so I cant figure out how to insert an image whose path and file name come from a data source.
    Thank you

    Hi Don,
    As I said, when I insert any field in the report, say for instance the Student ID, and then link it to a database field containing the name of the image file to display (I have to concatenate the path to this file name as well), it first shows the report with the Student ID. If I click on it, because of the hyperlink defined at design time, it opens the file (an image in this case) in Internet Explorer, not on the report.
    The same happens if I put an image as an object on the report at design time. In this case as soon as I put the image object on the report it forces me to select an initial image to show on the report. Anyway, I define an hyperlink for this image, pointing it to the image file of the Student, using the database field containing the image file name. When I show the report I see the initial image I was forced to use and when I click it, the hyperlink takes me to the right student image, but even in this case it shows me the right image opening an Internet Explorer session and not on the report. On the report the initial image is still there and never changes.
    What I actually need is a way to put the student's image on the report as soon as it shows the other student's data, as the name, age, ***, and so on, without having to click somewhere to show the student's image.
    Thanks

  • Using dynamic referencing in PDF Form with Checkboxes

    I have created a checklist that contains approx 60-70 steps. About 20 of them are to have a checkbox that fills an adjacent field with the date, and another with the user name. I have already got this functioning as a stand alone process.
    aaa = checkbox
    aaadate = field for date
    aaaname = field for name
    [code]
    function test() {
    var one = this.getField("aaa");
    var two = this.getField("aaadate");
    if (one.value == 'Yes') {
    if (two.value == "") {
         this.getField("aaadate").value = util.printd("dd-mmm-yy",new Date());
         this.getField("aaaname").value = identity.name;
    }} else if (one.value == 'Off') {
         this.getField("aaadate").value = "";
         this.getField("aaaname").value = "";
    [/code]
    I do not want to write a piece of code for each checkbox so I am trying to figure out how to use dynamic referencing so that when i check on a checkbox, the code takes the checked checkboxes' name (aaa) and is able to determine the two other fields name by appending/concatenating (name + "date"  = aaadate)
    I have tried various methods and done tremendous research; I'm not sure if I lack the knowledge to incorporate what I've found properly, if I just have been looking in the wrong places for the wrong things. It seems like this should be possible in a PDF form...
    Please help

    You need to inject the part of the field name that changes as a variable. So your code would be something like this:
    function test(base) {
        var one = this.getField(base);
        var two = this.getField(base+"date");
        if (one.value == 'Yes') {
            if (two.value == "") {
                this.getField(base+"date").value = util.printd("dd-mmm-yy",new Date());
                this.getField(base+"name").value = identity.name;
        } else if (one.value == 'Off') {
            this.getField(base+"date").value = "";
            this.getField(base+"name").value = "";
    And you would call it like so:
    test("aaa");
    test("bbb");
    etc.

  • Dynamic images in PDF (Adobe interactive form)

    Hi All,
            I have stored image in database using BLOB.
    I retrieve the image using
         WDWebResourceType.getWebResourceTypeForFileExtension(extn);//get Type
         IWDResource res = WDResourceFactory.createCachedResource(CSVFile, Filename, type1,true);
            res.getUrl(0);
    Where CSVFile is of type InputStream.
    But when I give this link to the image field in interactive form, the image is not getting displayed. (But it is getting displayed in the image UI element of web dynpro.)
    What should I do to show images in PDF from BLOB?
    Please let me know.

    Hi,
    Solve the problem .
    I have created the New node for dropdown. also i have one node already for table.
    The new node i bind to dropdown, the table same for table.
    Its working fine
    Boopathi M

  • Images in PDF reports

    I have a report that indicates the health of a project by showing an image, like a stop light. The query looks like this:
    select     "PM_PROJECTS"."ID" as "ID",
    '<img src="#APP_IMAGES#'||lower(HEALTH)||'.gif">' health_image,
         "PM_PROJECTS"."OWNING_TEAM" as "OWNING_TEAM",
         "PM_PROJECTS"."PROJECT_NAME" as "PROJECT_NAME",
    "PM_PROJECTS"."PHASE" as "PHASE",
         "PM_PROJECTS"."HEALTH" as "HEALTH"
    from     "PM_PROJECTS" "PM_PROJECTS"
    where "PM_PROJECTS"."ID" <> 144
    The client likes paper reports, so I have a link to "print" the report to PDF. However, the image does not appear on the PDF version of the report, just an empty column. Is there a way to display the image in PDF output?
    Thanks in advance!

    Hi
    I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
    I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
    Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
    Regards,
    Vidar

  • How to export dynamic images into pdf

    Hi,
    I need to export a image into PDF which we are getting it from DBase. This returns me the image as BLOB and this we are putting it in between the xml tags. I am passing the xml to xsl-fo. While i tried to export the xml data into pdf using xsl-fo, the content is getting exported into pdf but not the image. I am using FOP, and i have added fop.jar, batik.jar, avalon-xx.jar, jai_codec.jar and jai_core.jar to my class path. I am putting my sample xsl and xml here.
    xml:
    <RTFDrugReport>
    <ImagePath>http://www.thomson-pharma.com/tp/images</ImagePath>
    <NewsEdge>
    <NewsItem>
    <StoryId><![CDATA[200705223600.15_2774000daba43be0]]></StoryId>
    <HeadlineText><![CDATA[NeuroLogica's CereTom Supplies On Site Post-Fight Brain CT During De  La Hoya-Mayweather Weekend]]></HeadlineText>
    <ItemTime><![CDATA[05/23/2007 03:22:24 AM EDT]]></ItemTime>
    </NewsItem>
    </NewsEdge>
    </RTFDrugReport>
    xsl:
    <fo:static-content flow-name="xsl-region-before">
    <fo:block font-family="Helvetica" font-size="14pt" text-align="left" white-space-collapse="false">
    <xsl:variable name="imageName" select="concat(//ImagePath,'/logo_thomson_pharma.png')"/>
    <fo:external-graphic src="'{$imageName}'"/>first
    <fo:external-graphic src="url('{$imageName}')"/>second
    <xsl:value-of select="'{$imageName}'"/>thrid
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fourth
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fifth
    <fo:instream-foreign-object src='url("///file:/D:/Customization/collage.jpg")' height="3cm" width="3cm"/>
    </fo:block>
    </fo:static-content>
    Any help would be appreciated.

    hi,
    all the UI elements in the adobe form are generally connected to your web-dynpro Context.
    whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".
    that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.
    Likewise you can clear the form by setting all context attributes to blank eg ""
    <b>interactive form has two imp properties:-</b>
    <b>*dataSource</b>
    data source points to the node all whose context attributes will be made available in the interactive form
    <b>*pdfsource</b>
    points to the context attribute which will hold the pdf.
    note that the type of this pdfSorce attribute will be binary.
    if you still have doubts.
    give me your gmail mail id. i 'll send a tutorial.
    with regards,
    -ag.

  • Displaying images in pdf reports

    a question please..
    can one display only .gif type images or can they also be .jpgs?
    also, is there a limit to the size of the image one displays?
    also, can one control the size of these images in the reports.
    sorry about the above. I have looked around for answers with very little success.
    thanks in advance.

    Hi
    I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
    I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
    Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
    Regards,
    Vidar

  • Problems using Dynamic parameters with Crystal Reports and SBO 8.8

    Has anyone been able to successfully use a dynamic parameter in Crystal Reports with 8.8 using the Business One connector? When we try we get an additional logon to the database that pops up and the logon fails.
    We need this because we want to return live lists of PO documents from the server for selection. We are also trying to use nested dynamic parameters, because we want to first return the PO document based on the PO number, and then chose specific rows based on a field value in POR1.
    It works if we don't use the Business One connector, but then the report doesn't function properly inside of SAP.
    Any ideas would be appreciated.

    I have tried using tokens but they are too simple. I need something like a subselect where you first select one value and then another that is a subset of those values. Apparently the tokens can't even use a "where" clause.
    SAP dances around Dynamic parameters, but won't come out and say that they can't be used with the B1 connector. If that is the case then they should just say so and stop wasting our time. Apparently Crystal is not truely interfaced with B1, just sort of hanging out with it.
    I don't really care other than I have to do this select, subselect. If someone has a way to do that with tokens I would love to hear it.
    Thanks,
    Roy

Maybe you are looking for