RTF templates and word cell padding.

Hi.
I'm having a problem with numbers in an XML Publisher report. Generated RTF templates don't seem to retain the cell padding properties.
Has anyone got any suggestions on how to get round this?
Thanks.
Steve.

Well there appears to be a bug in the RTF generator.
It appears that Oracle want to use paragraph left and right indentation properties to pad text in cells away from cell borders. There is a bug in the rtf reader in word that causes problems if cell padding properties are used so paragraph indentation appears a sensible work round.
By default there appears to be a left hand indentation of 5 applied to all paragraphs in cells. If a left hand cell maring is applied to cells then the left hand cell margin in the report increases in size.
However, right hand cell margins appear to be ignored and NOT written as attributes to cell paragraph text in the the generated report, and this causes problems when trying to print an RTF report as numbers in cells get clipped by cell borders.
Edited by: user7137712 on 18-Mar-2010 03:21

Similar Messages

  • .rtf template and bi server repository failure (newbee tutorial)

    I've installed BISE1 on Windows Server 2003 and followed the tutorial. I successfully fulfilled all the excercises except the last one: the creation of Oracle BI Publisher Report from BI Server Metadata. I have created .rtf template in Word. The preview of the template is working showing data. But when I connect to BI Publisher and open From BI Server report and click View I get the message: "The report cannot be rendered because of an error, please contact the administrator." And as the error detail: String index out of range: -1
    What could be the reason of that problem? Or where to search for the solution of that problem?
    Any help for newbee will be appreciated.
    Regards
    Adam

    Hi,
    I am having the exact same issue.
    I've created a .rtf template using Oracle BI Publisher Desktop. I insert a very simple table and a very simple Chart (a bar graph) just to test it out. The table and the chart wwere showing correct data in the rtf and the pdf when I preview it on the BI server located on my local machine, and when I click on validate template in word, no errors were found. However when I run the pdf in the client BI Publisher Server, the charts doesn't show up in the pdf output while the other contents (headers, tables) are displayed correctly. If I select the html output in the client BI Publisher server, it gives the same error mention above: The report cannot be rendered because of an error, please contact the administrator." And as the error detail: String index out of range: -1
    What security configurations do I have to check? If anyone can give a more detail explanation on this will be greatly appreciated. Thanks in advance!

  • RTF Templates and report file (.xdo)

    Hi all,
    I use Oracle report and I would like to migrate from that software to Oracle BI Publisher. During my tests, I encountered various problems like the following:
    I create my report (.xdo file is generated) in development with one RTF template. I load my template in the report and the system copy the rtf file is the same directory as the .xdo file. Also, the system modify the .xdo file to add a line like:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    When my report and template are ok, I update my customer to install them in production mode. When they are installed, my customer would modify the RTF template so he duplicates the RTF template, modify the file and load it in the report. Now, in the report, I have two lines:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    <template label="stkcinv2" type="rtf" url="stkcinv2.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    For my part, I modify the report in development to add a new value in the datamodel. Then I update another time my customer and erase the standard report by the new.
    the problem is that doing that, if I look at the .xdo file, I see that in the <templates> section, I have:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    So the templates loaded in the .xdo file is lost and my customer must reload it in the new report. If my customer has 100 reports, each time I update the soft, he will have to reload all templates... Amazing...
    How can I do to avoid that problem ?

    Well there appears to be a bug in the RTF generator.
    It appears that Oracle want to use paragraph left and right indentation properties to pad text in cells away from cell borders. There is a bug in the rtf reader in word that causes problems if cell padding properties are used so paragraph indentation appears a sensible work round.
    By default there appears to be a left hand indentation of 5 applied to all paragraphs in cells. If a left hand cell maring is applied to cells then the left hand cell margin in the report increases in size.
    However, right hand cell margins appear to be ignored and NOT written as attributes to cell paragraph text in the the generated report, and this causes problems when trying to print an RTF report as numbers in cells get clipped by cell borders.
    Edited by: user7137712 on 18-Mar-2010 03:21

  • Calculations in RTF Template

    Hi All,
    I am new to BI Publisher and I am trying to create a template that will calculate growth for various fields.
    The data is split like (ignore # - using to show structure of XML):
    <YTDKPI>
    ###<YTDKPI_ROW>
    ######<FIELD 1>(Val)</FIELD 1>
    ######<FIELD 2>(Val)</FIELD 2>
    ######<FIELD 3>(Val)</FIELD 3>
    ###</YTDKPI_ROW>
    ###<YTDKPI_ROW>
    ######<FIELD 1>(Val)</FIELD 1>
    ######<FIELD 2>(Val)</FIELD 2>
    ######<FIELD 3>(Val)</FIELD 3>
    ###</YTDKPI_ROW>
    </YTDKPI>
    There are two <YTDKPI_ROW>, one for 2009, one for 2008.
    Within the template, I would like to calculate the growth year on year for each of the fields.
    My template so far looks like (again ignore #):
    |## KPI ###|##<?for-each-group@column:YTDKPI;./YEAR?>#####<?YEAR?><?end for-each-group?>##|
    |## YEAR ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?>#<?YEAR?><?end for-each-group?>##|
    |
    |## KPI 1 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD1?><?end for-each-group?>##|
    |
    |## KPI 2 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD2?><?end for-each-group?>##|
    |
    |## KPI 3 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD3?><?end for-each-group?>##|
    |
    When previewed, this results in a 3 column table with the KPI's for 2008 in column 2 and the KPI's for 2009 in column 3 (names in column 1)
    If possible, I would like a 4th column to calculate the % change between 2008 and 2009.
    I would like to do this within the template as the above is a very simplified version of the actual and to have fields within the data for each of the growths would not be the preferred method.
    From the above I hope I have communicated exactly what I need!
    I think the problem I face is in specifying a particular row number within the data to perform a calculation?
    I may have started off completely wrong, so any advice would be useful.
    Please Help!
    Many Thanks
    note: the data is generated via an Answers report and the template has been created as an RTF template using Word 2007.

    Hi Vetsrini,
    That didn't work either. I think we need to take a step back to ensure I have not missed something.
    Please see below for a sample xml and the code from word:
    <DATA>
    <YTDKPI>
    <YTDKPI_ROW>
    <YEAR>2008</YEAR>
    <SALES>100</SALES>
    <PERCENT_TO_PLAN>0.8</PERCENT_TO_PLAN>
    </YTDKPI_ROW>
    <YTDKPI_ROW>
    <YEAR>2009</YEAR>
    <SALES>150</SALES>
    <PERCENT_TO_PLAN>0.85</PERCENT_TO_PLAN>
    </YTDKPI_ROW>
    </YTDKPI>
    </DATA>
    YEAR     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?YEAR?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/YEAR div /YTDKPI/YTDKPI_ROW[2]/YEAR)?>
    SALES     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?SALES?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/SALES div /YTDKPI/YTDKPI_ROW[2]/SALES)?>
    PERCENT TO PLAN     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?PERCENT_TO_PLAN?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/PERCENT_TO_PLAN div /YTDKPI/YTDKPI_ROW[2]/PERCENT_TO_PLAN)?>From loading the xml data into word, copying and pasting the code into word (2007) and previewing I get:
    YEAR
    2008
    2009
    NaN
    SALES
    100
    150
    NaN
    PERCENT TO PLAN
    0.8
    0.85
    NaN
    If I use the other suggestion, for the calculation, it returns a blank cell.
    Please Help! What do I need to do?
    Again Many Thanks,
    Edited by: user11240727 on 17-Sep-2009 02:06

  • 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

  • How to select specific rows in rtf template for complex calculation

    Hi,
    I want custom calculation in my rtf template and for this i need to select specific cell's value OR specific row's value. Any one please suggest how can I get this. Below is the example i have plotted using excel. My target is to get field 8 and 9 using sum and minus. We can calculate column over column, is there any way to calculate row over row? If I use variables, then i have to create so many variables because I have more columns and rows to calculate (here i posted one sample table). Any one please help me how can I get expected result other than using variables! If "Using variables" is the only way then also give your valuable opinions.
    Row No
    Curr Qtr
    PQtr1
    PQtr2
    3
    B3
    C3
    D3
    4
    B4
    C4
    D4
    5
    B5
    C5
    D5
    6
    B6
    C6
    D6
    7
    B7
    C7
    D7
    8
    B8=SUM(B4:B7)
    C8=SUM(C4:C7)
    D8=SUM(D4:D7)
    9
    B9=B8-B5
    C9=C8-C5
    D9=D8-D5
    Thanks.

    Hi AlexAnd,
    Thanks for the reply, I got 0 using both codes. This is a dummy table and I plotted 3,4 to give an idea of row number (as like as excel). Rows are individual data sets combining different measures and dimensions with different values.
    Account
    Curr_Qtr
    PQtr1
    PQtr2
    Deposit
    10
    15
    20
    Loan
    15
    20
    25
    Earning
    20
    25
    30
    Assets
    25
    30
    35
    Total
    =SUM(15,20)
    =SUM(20,25)
    =SUM(25,30)
    Expense
    =SUM(15,20)-25
    =SUM(20,25-30
    =SUM(15,20)-25
    Is there any way to identify the range or individual cell's value? Using variables I have to create lots of variables for each cells, I want to avoid that and want to use rows in calculation! Is that possible, Pls share your valuable opinions!
    Thanks.

  • Suppress Blank Lines in RTF Template

    We are using <?if:count(current-group()[FIELD=$VARIABLE])?> in order to restrict data in a pivot table cell.
    The pivot table cell uses @cell:top XML level to produce fixed number of columns.
    There are two for-each-groups in the cell under the @cell tag.
    Using <?if:count(current-group()[FIELD=$VARIABLE])?> works fine to restrict data but there are many extra blank lines creating bad formatting. This is because the two for-each-groups under the @cell tag. Those groups get the correct data but since @cell is at the top node of the XML the for-each-groups are repeating too many times and creating the blank lines.
    Is there a way to suppress blank lines in an RTF template?

    I've already tried that and the results are the same. The blank spaces still exist. I even tried using that right after the for-each-groups that are under the @cell tag. No difference.
    Can I please send you the RTF template and XML? And two PDF files, one that shows the empty line spaces and one that shows correct formatting (without fixed number of columns).
    Thank you very much.

  • Page numbering in rtf templates

    Hi All,
    I have an rtf template and what I want is to display page numbers. I can achieve this with the following : <?fo:page-number?> but I want to display it by different way:
    For example if the total pages in the output is 10 pages I want the page number to be displayed as Page 1 of 10, 2 of 10, 3 of 10 etc.
    Any ideas?
    Thanks in advance,
    Konska tor

    Well, it's fixed itself. It still doesn't work on my home computer, but it does work on my work computer... as long as it works in Oracle eBus I'm happy :) Must be a certain version of word that causes the problem.

  • Issue in XMLP Template - MS Word

    I was working on some changes to an existing PDF Report. I made some minor changes to an existing RTF template and uploaded the same in Report Definition. When I ran the report, I was getting an error & the process went to No Success.
    I pressed the "Preview" button in the Report Definition page and I received the same error message. The XML source file was not having any issues.
    Now, when I tried giving "Preview" for the Old template file, the sample report was generated without any issues. This was when I decided the issue was in the template file & not in the XML source file.
    The next steps were pretty interesting. I downloaded the old template file (RTF), and "saved it as" as different name and uploaded the new file (without making any changes). When I gave Preview, again I received the same error. Though there was no change in the template file, still the error occurred.
    When I compared the file sizes, the old file was just 104KB while the new one was 174KB. I knew that the original file was designed using MS Word 2003, while I was working in MS Word 2007. I opened the original file in MS Word 2003, made the required changes and saved it. Now, when I uploaded this file, the Preview worked fine & the AE Program also went to Success with the Report Posted successfully.
    Has any faced a similar issue?? By chance, I got access to a system with Office 2003, hence I was able to make the changes, but in future it might not be possible. Is there a better solution for this issue??
    Thanks.
    JaG

    What is the error message you were getting?
    This may not be much help - but I only use Word 2007 and BI Publisher 10.1.3.4.1 and my reports work.
    In other words - Word 2007 may not be your problem.

  • Complex Header on RTF Template

    Hello all,
    I have an issue with an RTF template and I really hope you have a minute to help me out.
    I'm really new at this stuff. This is for Purchase Order (PO) printing on Oracle eBusinesss Suite.
    On the template I need the first rows from a table (which represents the PO number) to be repeated for each page when the number of rows on the table exceeds one page. Those rows are inside a for-each.
    I've tried:
    1. using Word Header, it won't let me put form fields, so I've tried with the XMLtag for the fields, but it allways repeat the first one when more than one PO exists.
    2. using Word Repeat Header Rows property, works fine with just one PO, but doesn't work for more than one.
    3. using <?start:body?> <?end body?> gives me an error, changed for <?body-start?> <?body-end?> which gave me no error but doesn't do anything.
    Could I have a version issue? I'm working with Oracle BI Publisher Template Builder for Word 10.1.3.4.1. and XMLP 5.6.3 on eBS 11i.
    Really appreciate if you shed a light over this.
    Thanks!

    Thanks for your reply, I think you understood the problem.
    We've tried what you suggested, but didn't work.
    It keep on repeating the first PO_NUM on every page, for the field above the start:body.
    The PO_NUM bellow the start:body (inside the for-each) is iterating OK as expected.
    This is what it looks like now:
    THIS IS MY HEADER
    <?POH_PO_NUM?>
    <?start:body?>
         <?for-each-group@section:G_HEADERS;./POH_PO_NUM?>
              <?POH_PO_NUM?>
              <?for-each:G_LINES?>
                   <?POH_LINE_QTY?>
              <?end for-each?>
              <?split-by-page-break:?>
         <?end for-each-group?>
    <?end body?>
    Any suggestion? I'm I missing something?
    Thank you very much!

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

  • Changing HTML head in RTF template?

    Hello everybody,
    I have a question concerning RTF templates and BIP's HTML output: Is it possible to add information to the <head> section of HTML pages generated by BI Publisher when creating the RTF template? And if it is, can somebody tell me how to do it?
    Thanks in advance!

    Hello Naveen,
    thank you very much for the link. Unfortunately this seems to be unsupported by BI Publisher.
    Instead of showing my report, BIP displays the following error message: +"element Header is not supported yet."+
    Thank you again for your efforts.
    kv12

  • Charts in RTF Templates

    Hi,
    i am trying to create an chart based on xml data....
               <SALES>
    <SALE>
      <YEAR>2006</YEAR>
      <SOFTWARE>1200</SOFTWARE>
      <HARDWARE>850</HARDWARE>
      <SERVICES>2000</SERVICES>
    </SALE>
    <SALE>
      <YEAR>2007</YEAR>
      <SOFTWARE>1000</SOFTWARE>
      <HARDWARE>800</HARDWARE>
      <SERVICES>1100</SERVICES>
    </SALE>
    <SALE>
      <YEAR>2008</YEAR>
      <SOFTWARE>900</SOFTWARE>
      <HARDWARE>1200</HARDWARE>
      <SERVICES>1500</SERVICES>
    </SALE>
    </SALES> I created a RTF template and clicked on Insert-->chart but Ok,Preview buttons are not highlighted!
    whats the reason ? i am using 10.1.3.3.2 version template builder...
    !http://img382.imageshack.us/img382/1195/chart.jpg!

    hey i got the solution ...i didn't select label field now i am able to get the graph..

  • Issue in grouping in RTF template

    HI ALL,
    I have a requirement as below.
    The report header part contains : Order number,
    Email_address,
    the report body part contains the details for each order like
    item number, item name
    Again the line section is based on the another group, so it should repeat for each group.
    My requirement is in header section for each order and email address i need to repeat the while header and line for a order.
    Ex: Header : Order_number :101
    Email :abc&gmail.com
    Line section :
    Here we have another group like demand_class
    DEMAND_CLASS : 'ABC'
    Item1: abc,
    item quantity1 :1
    DEMAND_CLASS : 'DEF'
    Item2: abc,
    item quantity2 :1
    Header : Order_number :101
    Email :def&gmail.com --------------------------------------same data only email changed
    Line section :
    Here we have another group like demand_class
    DEMAND_CLASS : 'ABC'
    Item1: abc,
    item quantity1 :1
    DEMAND_CLASS : 'DEF'
    Item2: abc,
    item quantity2 :1
    Another section : to display total calculation for each demand class for a order.
    So my requirement is to repeat the same data for each order and email address.
    Please help me on this

    If the demand_class group is under your first group, then you need to go one level up by using "../".
    So try using ../order_number, ../Email_address
    I really need to see your xml data structure.
    Send me the RTF template and xml file to [email protected] and I will try to help.
    Thanks,
    Bipuser

  • 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

Maybe you are looking for