Image substitution in a RTF template

Hi,
I'm trying to substitute an image on a RTF template.
I have placed a dummy image on the template, and on the web tab of Format Picture i've hardcoded the actual image directory path.
the entry is like
"url:{/u01/app/applricew/ricewappl/xx/11.5.0/reports/US/signature.jpg}"
Now, when I'm trying to preview the pdf output from XML Publisher, its displaying the dummy image on the output.
Does anyone have any idea what could be the problem.

sorry to bother you ..
it was simply my mistake .. I kept the double quotes which should not be there ..

Similar Messages

  • Images Behind Text in RTF Template

    While creating a few rtf templates, I noticed that if an image is to be shown behind text then the image will not render to back to .rtf by bi pub.
    If I put the image inline with text, it renders just fine.
    Am I missing a step that would allow me to render the image behind text or is it just working as intended?
    Oracle BI Publisher 10.1.3.4.1
    Thank you.
    Edited by: Crawler409 on Dec 17, 2010 2:49 PM
    Edited by: Crawler409 on Dec 17, 2010 2:50 PM

    Hi
    Can you pl. send me the RTF template and sample XML. I will try to fix the template.
    Thx
    chundi ([email protected])

  • Relative path for images in RTF templates

    Hi everybody!
    When I insert an image in a RTF template, I put its path into the web dialog, in order to see correctly the picture when I open the report from the xmlp server, in this way: url:{"http://servername/analytics/res/Images/image.bmp"}
    How can I make this path relative, in order to see the images even if the server name changes?
    Thanks so!
    Francesco

    Hi Tim,
    I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
    Steps:
    <?param@begin:CURRENT_SERVER_URL?>
    <xsl:value-of select="$ CURRENT_SERVER_URL"/>
    CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
    Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
    We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
    As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
    Thanks,
    Amit D

  • Insert Image in RTF Template Conditionally

    Can an image be inserted into an RTF Template using an If-Then statement? Like this:
    <?if:FIELD1='IMAGE1' 'insert IMAGE1' else 'insert IMAGE2'?>
    If this is possible what syntax needs to be where the example says 'insert IMAGE1'? The images are jpg files that exist on a local PC but the template will run on a Unix machine.
    Is there a way to do this? Thank you very much.
    James

    you can try like this
    <?template:image?>
    <?if:FIELD1='IMAGE1'?>
    IMAGE1
    <?end if?>
    <?if:FIELD1!='IMAGE1'?>
    IMAGE2
    <?end if?>
    <?end template?>
    use this tag where u need image <?call:image?>
    for image location or dynamic images check these links
    https://blogs.oracle.com/xmlpublisher/entry/dynamic_images
    https://blogs.oracle.com/xmlpublisher/entry/one_of_our_images_is_missing
    http://learnobi.blogspot.com/2012/08/dynamic-image-in-rtf-of-oracle-bi.html
    Signature image on template

  • Images in RTF template giving errors

    Hi,
    I am using "XML Publisher Template Builder for Word" ver 5.6 Build 45.
    My requirement says that i need to put all data values in a Rectangular BOX. I made the template and tested the same by using Priview option of Template Buider, and it looks Good.
    Now as soon as i am trying to upload the same template it gives me NPE, i am pasting the same here....
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.xdo.XDOException.getMessage(XDOException.java:128)
         at java.lang.Throwable.getLocalizedMessage(Throwable.java:266)
         at java.lang.Throwable.toString(Throwable.java:343)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:985)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:210)
    Now after this when i closed the instance and reopen it, i found the template is already added even after that exception.
    Now i when i am trying to run report it is compliting with error and in log life, error is shown as below...
    [9/21/06 2:45:46 PM] [UNEXPECTED] [186597:RT3517534] java.sql.SQLException: No c
    orresponding LOB data found :SELECT L.FILE_DATA FILE_DATA, DBMS_LOB.GETLENGTH(L.
    FILE_DATA) FILE_LENGTH, L.LANGUAGE LANGUAGE, L.TERRITORY TERRITORY, B.DEFAULT_LA
    NGUAGE DEFAULT_LANGUAGE, B.DEFAULT_TERRITORY DEFAULT_TERRITORY,B.TEMPLATE_TYPE_C
    ODE TEMPLATE_TYPE_CODE, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.START_DATE START_DA
    TE, B.END_DATE END_DATE, B.TEMPLATE_STATUS TEMPLATE_STATUS, B.USE_ALIAS_TABLE US
    E_ALIAS_TABLE FROM XDO_LOBS L, XDO_TEMPLATES_B B WHERE L.LOB_TYPE = :1 AND L.APP
    LICATION_SHORT_NAME= :2 AND L.LOB_CODE = :3 AND L.APPLICATION_SHORT_NAME = B.APP
    LICATION_SHORT_NAME AND L.LOB_CODE = B.TEMPLATE_CODE AND ( (L.LANGUAGE = :4 AND
    L.TERRITORY = :5 ) OR (L.LANGUAGE = :6 AND L.TERRITORY = :7) OR (L.LANGUAGE=
    B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ) )
    As there is no row returing in this query i thing there are some prasing issues with RTF templated with images as the same report works fine without images.
    Please tell me if you have any pointer how to resove the issue.

    Hi Tim,
    We have logged SR 5803815.992, and uploaded the RTF template and a sample XML data file.
    We are currently on 11.5.10 CU2 and 11i.XDO.H
    Please let us know if you need any other information.
    Thanks

  • Shared Folder Images in RTF Template?

    Hi, how to use images which are in shared folders like *\\\\path\\Trademarks\\test.jpg* into RTF templates? url:{} works only for http links and doesn't work for shared path. I need to have dynamic images, we have a logic in query that would give us the path like *\\\\usnbkb110p\\Trademarks\\testforuljp.jpg*. Not sure how to proceed further. Kindly advice.

    Any ideas on this? Any recommendation would be appreciated.

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • How to display a blob image in RTF template's Header.

    Hi,
    I want to display a blob image (logo company) in my RTF template,
    my problem is how i can display this image in the template's Header.
    I tried this
    <?
    <fo:instream-foreign-object content-type="image/jpeg" >
    <xsl:value-of select=".//LOGO"/>
    </fo:instream-foreign-object>
    ?>
    but was unsuccessful
    Thanks in advance.

    I tried this
    <?
    <fo:instream-foreign-object content-type="image/jpeg" >
    <xsl:value-of select=".//LOGO"/>
    </fo:instream-foreign-object>
    ?>
    but was unsuccessful
    sure
    what is red elements ?
    you template can be looks like
    ..... some data .....
    ( after  all data )
    <?template:footer_logo?>
    <fo:instream-foreign-object content-type="image/jpeg" ><xsl:value-of select=".//LOGO"/></fo:instream-foreign-object> (as field )
    <?end template?>
    <?call-template:footer_logo?> ( in header/footer )
    some remarks https://oralublog.wordpress.com/2014/10/04/bi-publisher-11g-footers-and-headers-in-rtf-template/

  • Rendering a dynamic image(blob) in a BI Publisher Report via an RTF templat

    Been working on this for a while and now at a dead end hoping the experts can direct me to try something new. There is lots in the forums on blobs and displaying in reports and from it all I have gleaned that I need to encode the blob in Base64 and then use this code.
    <fo:instream-foreign-object content type="image/jpg">
    <xsl:value-of select="IMAGE_ELEMENT"/>
    </fo:instream-foreign-object>
    I use this function to encode a 9KB jpeg into a clob (and my jpegs will be less then 32K.
    function encode_base64(p_blob_in in blob) return clob is
    v_clob clob;
    v_result clob;
    v_offset integer;
    v_chunk_size binary_integer := (48 / 4) * 3;
    v_buffer_varchar varchar2(48);
    v_buffer_raw raw(48);
    begin
    if p_blob_in is null then
    return null;
    end if;
    dbms_lob.createtemporary(v_clob, true);
    v_offset := 1;
    for i in 1 .. ceil(dbms_lob.getlength(p_blob_in) / v_chunk_size) loop
    dbms_lob.read(p_blob_in, v_chunk_size, v_offset, v_buffer_raw);
    v_buffer_raw := utl_encode.base64_encode(v_buffer_raw);
    v_buffer_varchar := utl_raw.cast_to_varchar2(v_buffer_raw);
    dbms_lob.writeappend(v_clob, length(v_buffer_varchar), v_buffer_varchar);
    v_offset := v_offset + v_chunk_size;
    end loop;
    v_result := v_clob;
    dbms_lob.freetemporary(v_clob);
    return v_result;
    end encode_base64;
    The xml is simple:
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <IMAGE_NAME>Test</IMAGE_NAME>
    <IMAGE_MIME_TYPE> image/jpeg </IMAGE_MIME_TYPE>
    <IMAGE_ELEMENT>…lots lines of encoded data… </ IMAGE_ELEMENT >
    </ROW>
    </ROWSET>
    Then when I put all together using BI Publisher Desktop 11.1.1.6 in an rtf template and preview the pdf, the preview fails with a long message ( can provide the whole thing if requested) but starting with:
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.xdo.common.image.ImageReader.checkFormat(ImageReader.java:130)
         at oracle.xdo.common.image.ImageReader.analyze
    I suspect the base64 encoding may be the problem but I am out of my realm in trying to debug this. Any help would be most appreciated…sorry for the length of this.

    I thank you again for continuing to try to help me. However, I regret to say that this function does not work. The same error results (see below). It is hard to believe that this cannot be done with APEX and BI Publisher. I would think that other APEX users have the need to display images and do not have the E-Business Suite.
    What I am doing is very straightforward....a small jpeg stored as a blob in an Oracle table that needs to be dynamically displayed from a report in APEX----created with BI Publisher and an rtf template.
    If you have any other ideas, please send them..your help is appreciated.
    Java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.xdo.common.image.ImageReader.checkFormat(ImageReader.java:130)
         at oracle.xdo.common.image.ImageReader.analyze(ImageReader.java:314)
         at oracle.xdo.common.image.ImageReader.load(ImageReader.java:510)
         at oracle.xdo.generator.pdf.PDFGenerator.createPDFImageReference(PDFGenerator.java:3261)
         at oracle.xdo.generator.pdf.PDFGenerator.getImage(PDFGenerator.java:3399)
         at oracle.xdo.generator.pdf.PDFGenerator.getImage(PDFGenerator.java:3388)
         at oracle.xdo.generator.ProxyStreamGenerator.getImage(ProxyStreamGenerator.java:121)
         at oracle.xdo.template.fo.area.AreaTree.getImage(AreaTree.java:779)
         at oracle.xdo.template.fo.area.InstreamForeignObjectArea.loadImage(InstreamForeignObjectArea.java:82)
         at oracle.xdo.template.fo.area.InstreamForeignObjectArea.init(InstreamForeignObjectArea.java:151)
         at oracle.xdo.template.fo.area.GraphicArea.<init>(GraphicArea.java:80)
         at oracle.xdo.template.fo.area.InstreamForeignObjectArea.<init>(InstreamForeignObjectArea.java:51)
         at oracle.xdo.template.fo.elements.FOInstreamForeignObject.doLayout(FOInstreamForeignObject.java:134)
         at oracle.xdo.template.fo.elements.FOInline.doLayout(FOInline.java:147)
         at oracle.xdo.template.fo.elements.FOInline.doLayout(FOInline.java:83)
         at oracle.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:330)
         at oracle.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:226)
         at oracle.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:140)
         at oracle.xdo.template.fo.elements.FOFlow.doLayout(FOFlow.java:84)
         at oracle.xdo.template.fo.elements.FormattingEngine.startLayout(FormattingEngine.java:250)
         at oracle.xdo.template.fo.elements.FormattingEngine.run(FormattingEngine.java:141)
         at oracle.xdo.template.fo.FOHandler.endElement(FOHandler.java:720)
         at oracle.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(XSLTHandler.java:595)
         at oracle.xdo.common.xml.XSLTMerger.startElement(XSLTMerger.java:51)
         at oracle.xdo11g.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:182)
         at oracle.xdo11g.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1322)
         at oracle.xdo11g.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:366)
         at oracle.xdo11g.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:312)
         at oracle.xdo11g.parser.v2.XMLParser.parse(XMLParser.java:218)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.xdo.common.xml.XDOSAXParser.invokeParse(XDOSAXParser.java:166)
         at oracle.xdo.common.xml.XDOSAXParser.parse(XDOSAXParser.java:122)
         at oracle.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:407)
         at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1218)
         at RTF2PDF2.runRTFto(RTF2PDF2.java:473)
         at RTF2PDF2.runXDO(RTF2PDF2.java:337)
         at RTF2PDF2.main(RTF2PDF2.java:230)

  • Multiple images in rtf template with out using url conditions

    Just iam taken 3 logos from system to make copy and paste in rtf file
    But i need to write the conditions for those logos depend upon ord_id (or) supplier_name?
    How can i write condition by taking the if/when between logos
    Any one knows pls replay this (or) send to my mail id "[email protected]"
    Thanks and Regards,
    Basha

    Hi Tim,
    We have logged SR 5803815.992, and uploaded the RTF template and a sample XML data file.
    We are currently on 11.5.10 CU2 and 11i.XDO.H
    Please let us know if you need any other information.
    Thanks

  • Problem in RTF template

    Hi all,
    I use Bi publisher version (11.1.6 )
    First Question : What is the best template type for making operational reports not statistical report ( RTF template or PDF template or others ) ? --
    Second Question :
    when i try to make report template using RTF template in ms-word by using Bi publisher desktop
    1- How can i make repeating header dynamically ( header contain data from data model ) ?
    2- when i insert an image in the header it did't appear in the runtime ?
    3- when i insert line in the header it did't appear completely just part of the line .

    First Question : What is the best template type for making operational reports not statistical report ( RTF template or PDF template or others ) ? --it will be clear if you look at "Table 2-6 Valid Output Formats for Each Layout Type" - http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_report_new.htm#layout_config
    Second Question :
    when i try to make report template using RTF template in ms-word by using Bi publisher desktop
    1- How can i make repeating header dynamically ( header contain data from data model ) ?did you try
    >
    To repeat header rows:
    Select the row(s) that you want to repeat on each page.
    From the Table menu, select Heading Rows Repeat.
    from http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#BHBFEJJI ?
    2- when i insert an image in the header it did't appear in the runtime ?
    3- when i insert line in the header it did't appear completely just part of the line .did you try "4.5 Defining Headers and Footers" http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#do_handf ?

  • BI Publisher pcl codes in rtf template

    Hi all,
    I am using Oracle Business Intelligence 11.1.1.6.9, with oracle database 11G on windows server 2008. I have need to embed pcl commands in rtf templates for printing purposes, but not sure how to do that.
    Only thing I found was PCL codes for use when check printing, but also a sentence saying that other pcl commands may work.
    There are two things I need if possible - on runtime, depending on value of a filed to change font color (let us say that signature must be sometimes red, sometimes green (font color) in same document), and other is if there is a option for "highlight" saying printer from which ink to print picture (let us suppose that original image is black, but for large xerox printers with black + one color  you say use that other color).
    PCL printer I try to use for now is on HP laserjet MFP 375 pcl printer, with pcl5 and pcl6 drivers installed.
    Should I use in rtf field or can I type these codes in text like xsl commands?
    Do I have to use {{beginPCL}}  and {{EndPCL}}?
    Is it enought to use escape sequences like this? <pcl><control><esc/>&l2S</control></pcl>
    Thanks and greetings
    Mario

    Hey Vijay,
    You cannot query in RTF using select :)..
    You have to mess/play with RDF to do it ;)
    Oh wait, did i say , we cannot in RTF, we can , but that is difficult approach to go with., keep this as an end of the world option.

  • Fix Cheque position in RTF Templates for AP Payments R12

    Hi,
    I created rtf template for check printing. I have to print invoices details first and after that check at the bottom of the page. I need to print invoices on the cheque page only when total invoice count < = 3 which I am able to control. I am facing issue when for 3 invoices the table height is variable, depends on invoice description this table size is changing. How I can give the fixed-height for invoice table or how I can specify exact place for check (at the bottom of each page )
    Thanks
    Mital

    Hi Prakhar,
    Please note the cheque is not an image its in a table.
    Even if I fix a table using table positioning in the output it doesnot print at the fixed position which I have provided in my RTF.
    Please let me know if you would want to see the sample XML Data and RTF that I have created which can be easier to debug.
    Thanks for your help,
    Mital

  • Problem: Creating Charts in RTF Templates

    I am using BI Publisher Template Builder for Word. I am using Word 2007 and the patch 9821068 of the Template Builder.
    I am attempting to create a chart in an rtf template using the chart wizard. I can go through the wizard fine and preview my chart and changes using the preview button.
    However, when hit ok a static image of the preview of the chart is inserted into the rtf file and not a bi pub chart “object”. When I right click on the “chart” I do not see the “BI Publisher Chart..” menu item.
    When I create a report on the BI Server using the chart template I created above, the chart is not updated. It is just the static image that was inserted by the Template Builder. I tried various data sources for the report and the chart never changes.
    Anyone have any ideas whats wrong?
    Thanks,
    -Matt
    Edited by: user12869451 on Jul 22, 2010 4:04 PM

    Hi Matt,
    Send me the template and xml, fusion{DoT}object[AT]gmail[dOt]com

  • To attach a RTF template(Report for printing ) in the master detail form

    I have an application in which I have 3  master detail forms  of which one of the form is a gate pass form . Now this gate pass form has a report region as the detail.
    All that i need help is to print the Gate Pass with few fields as information in the gate pass form , where an image or picture of the visitor is also a filed .
    Now I have created an RTF Template  which is the Gate pass layout with the pic.
    So ultimately I have the application for the gate pass form and the RTF template ready with me .. Fixing this template with the application with a BUTTON called PRINT is the challenge am facing !
    SELECT XVH.GPDATE
           , TO_CHAR(XVH.VISITORTIMEIN, 'HH:MI') VISITORTIMEIN --, (XVH.VISITORTIMEIN )
           , (TO_CHAR(XVH.VISITORTIMEOUT, 'HH:MI'))VISITORTIMEOUT
           , XVH.VISITOR_NAME --, = XVH.PERSON_ID
           , XVH.COMAPANY_NAME
           , XVH.PURPOSE_OF_VISIT
           , (SELECT A.FULL_NAME
                FROM PER_ALL_PEOPLE_F A
               WHERE A.PERSON_ID = XVH.PERSON_ID
                 AND SYSDATE BETWEEN A.EFFECTIVE_START_DATE AND A.EFFECTIVE_END_DATE) To_meet
           , XVH.VISITOR_PHONE
           ,APPS.GETBASE64 (XVH.VISITOR_PHOTO)
      FROM xxcdot.XXBCT_VGPF_HEADER XVH
    WHERE XVH.GP_HEADER_ID =  :P_HEADER_ID
    This is the query for the template ..
    Please help me with this. I am very new to apex and learning it with help of online tut

    Pars I need another Help
    I am working with a master detail form where in the form region i have a Radio group . Lets say the Radio group is
    o Returnable
    o Non Returnable
    o Other
    so when i select Non returnable I want a particular column called
    Line Status to get Disabled .
    I have done that by a dynamic action - using jquery statement (.Disable) .
    Defining the element attributes as Disable .
    Now the problem is that ,, Line status is getting disabled on the selection of Non returnable radio button. but unless and until i dont press the Add row button it does not work ,, else i will have to switch over between the radio buttons to get this action done !!

Maybe you are looking for