Xml Publisher ---RTF Format

Hi,
I am creating a report using XML publisher and output is an RTF File,I want to wrap coloumns how it can be done.
Thanks in advance.

Hi,
If you are on 11i, please see (Oracle XML Publisher User's Guide), Page 2-40 and 2-41
Oracle XML Publisher User's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
Thanks,
Hussein

Similar Messages

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • XML Publisher rtf output not consistent with the rtf created

    I am using XML publisher to generate a custom report.
    The approach I folllowed:
    1) AM Class: Write the VO data to XMLNode using vo.writeXML() method
    2) XML Publisher Administrator Responsibility: Create a data template and attach the xml created in step1 as "Preview Data"
    3) XML Publisher Administrator Responsibility: Create a rtf template (contains images and text), attach the data template (step 2) and attach the rtf created.
    4) Controller class: Use TemplateHelper.processTemplate() method, passing the rtf template and the XML data from VO.
    5) Verify the rtf output in application.
    Issues I am having are as follows:
    1) Major issue is page format. I have saved my rtf file with a different page format as below:
         File->Page Setup->Paper->Width:255 pt
                   ->Height:165 pt
         File->Page Setup->Margins->Top: 12 pt
                        ->Bottom: 0.1 pt
                        ->Left: 0.1 pt
                        ->Right: 12 pt
    When I open my document from the application, the margins and page setup rtf output is not retained (as given in teh doc), hence my whole layout is disturbed.
    Thus, I am getting a very weird layout when I open my rtf output from application.      
    How can I retain the page settings?
    2) I added a image, and the size of the image also is not retained as well.
    And if I set the layout wrapping style anything other than "In line with text", the image does not show up in the output.
    Would greatly appreciate if someone can put some light on this.

    RTF & PDF output can't be exact same, we can minimize the difference by eliminating all extra spaces(Ex: from table rows, in between form fields etc.) from RTF while generating RTF output.
    For reference:
    BUG:8662322 - RTF FORMAT DOES NOT SHOWS WITH FIXED HEIGHT OF ROW
    Thanks,
    Sandeep

  • IN Operator in xml publisher RTF

    Hi,
    I am working on XML Publisher reports ( r12 EBS, Database 10g). Is there any way i can use 'IN' operator in RTF.
    I have following requirement.
    my rtf:
    <?count?> --paramter
    name1 name2 name3 name4
    <?for each-group?> <?name1?> <?name2?> <?name3?> <?name4?> <?end for-each?>
    if i enter count 1, i want to display 'name1'
    if i enter count 2, i want to display 'name1 and name2'
    if i enter count 3, i want to display 'first 3 names'
    if enter count 3, i want to display all names.
    Could somebody help me how to achieve this. Can i use 'IN' Operator in RTF.
    Thanks in advance.

    You can use the 'contains' function. Check out the following:
    Re: Using Wild Card % in the IF condition of RTF templates
    Re: Syntax for IN / NOT IN Commands
    Thanks,
    Bipuser

  • Parse Error in XML Publisher .rtf template during "preview"

    I've created a template based upon a working one with a few tweaks, but it does not work. It validates okay in XML PUblisher but the preview fails with this error:
    Caused by: oracle.xdo.parser.v2.XMLParseException: Attribute 'select' not found in 'xsl:for-each'.
    at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
    at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
    ... 14 more
    Since I don't have explicitly "xsl" anywhere, the actual problem is unclear to me. I have attached the template. I'd appreciate any sugestions. All I need to do is
    1. Loop through all Campus Community checklist items
    2. Loop through all STDNT_TEST_COMP rows
    As I cannot attach the template or sample data, I"m pasting below the relevant portion of the template, even though it may look odd in plain text.
    <?for-each-group:row_CHECKLIST_ITEMS;./fld_CHECKLIST_CD?>
    APP Materials     Associated ID
    <?for-each:current-group()?><?sort:fld_CHKLST_ITEM_CD;'ascending';data-type='text'?> <?if:fld_ITEM_STATUS='I'?> fld_CHKLST_ITM_DESCR
    fld_NAME
    fld_ASSOC_ID_DESCR
    <?end if?><?end for-each?>
    <?end for-each-group?>
    <?for-each:row_APU_AD_UG_EXT_TEST_SCORES?>
    TEST     COMPONENTS     SCORE     TEST DATE     DATE RECD
    <?B.TEST_ID?>     <?B.TEST_COMPONENT?>     <?B.SCORE?>     <?format-date:B.TEST_DT;'MM-DD-YYYY'?>     <?format-date:B.DATE_LOADED;'MM-DD-YYYY'?>
    <?end for-each?>
    Thanks.
    Ken

    Pl post details of OS, database and EBS versions.
    Have you checked the XML Publisher Developer Guide and Designer Guide ?
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdoig.pdf
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdorg.pdf
    HTH
    Srini

  • XML Publisher - RTF Template - No of Rows Fixed

    Hi,
    We are printing a report which is developed in XML Publisher, but user requirement is to print 10 lines in each page under one group.
    I have did the following code, The code is compiled successfully, but output is not generating as per user requirement.
    I have followed this example Never name it.: Limit rows per page
    <?for-each:G_SUB_INVENTORY_INFO?>
    Sub-Inventory:
    <?SUBINVENTORY?>
    Locator:
    <?STOCK_LOCATOR?>
    <?for-each:LIST_G_ITEM_DETAIL?>
    Tag # <xsl:variable name="rowlimit" select="number(10)"/>
    Item Code
    Item Description
    Lot #
    Expiry Date
    MOH
    Status
    Counted Qty
    F TAG_NUMBER
    ITEM_CODE
    ITEM_DESCRIPTION0.00
    LOT_NUMBER
    EXPIRY_DATE
    <?position()?>
    <?if:(((position()-1) mod $rowlimit=0) and position()>1)?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?>
    E
    <?for-each:xdoxslt:foreach_number($_XDOCTX,1,$rowlimit-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
    <?position()?>
    <?end for-each?>
    <?end for-each:LIST_G_ITEM_DETAIL?>
    page breakend <?end for-each:G_SUB_INVENTORY_INFO?>
    Please guide me where I am getting wrong.
    Regards,
    Waqas Hassan

    Hi,
    I have found the solution,
    I was missing a number function.
    Before:        <?for-each:xdoxslt:foreach_number($_XDOCTX,1,$rowlimit-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
    After:          <?for-each:xdoxslt:foreach_number($_XDOCTX,1,number($rowlimit)-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
    Thanks

  • Help needed in XML Publisher rtf file

    Hi,
    My RTF is like, In first Page I will get Customer details, after that in the same page I will get invoice details, You can find my RTF srtucture from fallowing.
    Customer Name               Phone Number:
    Address
    Invoice_Number     Inv_Date     Inv_Amount
    My RTF output is fine. But I have another requirement like if Invoice details are going to second page then I need to show message 'Continued' in the first page bottom right side, I need to show this before the last page.
    How can I control the number of Invoice lines per each page and how can I show that 'continued' message?
    Could you help me in this?
    Thanks in advance

    Hi,
    Thanks for your help. I tried with that solution. But after page break I have another page which is like
    If you have any queries contact us
    Yours faithfully
    Emploee Name.
    This page is cominng repeatedly after each page break.
    Suppose If I give the variable value=4 then, this last page is coming one time for each page before the Invoice lines.
    Could you help me in this?
    Thanks

  • Urgent help on conditional formatting using XML publisher

    Folks can any one help me. I am trying to do conditional format in my xml publisher rtf template and I am having issues to render data in specific format. Please see the sample xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <ColTrn:CollegeTranscript xmlns:AcRec="urn:org:pesc:sector:AcademicRecord:v1.0.0" xmlns:ColTrn="urn:org:pesc:message:CollegeTranscript:v1.0.0" xmlns:UseExt="urn:org:pesc:useextensions" xmlns:core="urn:org:pesc:core.CoreMain:v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:org:pesc:message:CollegeTranscript:v1.0.0 http://www.regents.state.oh.us/articulation_transfer/AT/ATC/XML/Standards/Postsecondary/Transcript/v1.0.0/CollegeTranscript_v1.0.0.xsd urn:org:pesc:useextensions http://www.regents.state.oh.us/articulation_transfer/AT/ATC/XML/Standards/Postsecondary/Transcript/v1.0.0/OBRExtensions_v1.0.0.xsd">
    <Student>
    <Person>
    <SchoolAssignedPersonID>0001567740</SchoolAssignedPersonID>
    <Name>
    <FirstName>WENDELL</FirstName>
    <MiddleName>ROBERT</MiddleName>
    <LastName>MORRISON</LastName>
    </Name>
    </Person>
    <AcademicRecord>
    <AcademicAward>
    <AcademicAwardLevel>2.4</AcademicAwardLevel>
    <AcademicAwardDate>2004-03-20</AcademicAwardDate>
    <AcademicAwardTitle>BACHELOR OF SCIENCE IN EDUCATION</AcademicAwardTitle>
    <AcademicCompletionIndicator>true</AcademicCompletionIndicator>
    <AcademicCompletionDate>2004-03-20</AcademicCompletionDate>
    <AcademicAwardProgram>
    <AcademicProgramType>Major</AcademicProgramType>
    <AcademicProgramName>INTEGRATED SOCIAL STUDIES (BS6308)</AcademicProgramName>
    </AcademicAwardProgram>
    <AcademicAwardProgram>
    <AcademicProgramType>Minor</AcademicProgramType>
    <AcademicProgramName>PSYCHOLOGY (OR4101)</AcademicProgramName>
    </AcademicAwardProgram>
    <NoteMessage>EDUCATION AND HUMAN SERVICES</NoteMessage>
    <AcademicSummary>
    <AcademicSummaryType>SenderOnly</AcademicSummaryType>
    <AcademicSummaryLevel>Undergraduate</AcademicSummaryLevel>
    <GPA>
    <GradePointAverage>2.835</GradePointAverage>
    </GPA>
    <ClassRank>408</ClassRank>
    <ClassSize>533</ClassSize>
    </AcademicSummary>
    </AcademicAward>
    <AcademicAward>
    <AcademicAwardLevel>2.4</AcademicAwardLevel>
    <AcademicCompletionIndicator>false</AcademicCompletionIndicator>
    <AcademicAwardProgram>
    <AcademicProgramType>Minor</AcademicProgramType>
    <AcademicProgramName>HISTORY (OR4211)</AcademicProgramName>
    </AcademicAwardProgram>
    </AcademicAward>
    </Student>
    </ColTrn:CollegeTranscript>
    I am trying to generate the output in the below format -
    [ The University Degrees Conferred section is printed if  /AcademicRecord/AcademicAward/AcademicCompletionIndicator = true and  AcademicProgramType = 'Major' Then ]
    ********** UNIVERSITY DEGREE(S) CONFERRED ******************
    DATE : Mar 20, 2004 => <AcademicAwardDate>
    COLLEGE : EDUCATION AND HUMAN SERVICES => <NoteMessage>
    DEGREE : BACHELOR OF SCIENCE IN EDUCATION => <AcademicAwardTitle>
    PROGRAM(S) : INTEGRATED SOCIAL STUDIES (BS6308) => <AcademicProgramName>
    ACCUM GPA : 2.835 => AcademicSummary/GPA/GradePointAverage
    GRAD RANK : 408 IN TOTAL OF 533 => <ClassRank> and <ClassSize>
    [ The below section should print if the student has AcademicProgramType = 'Minor' and Academiccompletionindicator = true ]
    ******OTHER UNIVERSITY PROGRAM(S) COMPLETED******
    DATE Mar 16, 2002 PROGRAM : PSYCHOLOGY (OR4101) => <AcademicProgramName> where AcademicProgramType = 'Minor'
    [ The below section should print if Academiccompletionindicator = false print all majors and minors.
    CURRENT PROGRAM(S) OF STUDY
    PROGRAM(S) : HISTORY (OR4211)
    => AcademicProgramName where AcademicAward/AcademicCompletionIndicator = 'false'
    Please help me guys. I really appreciate your help.
    Thanks
    Pradeep

    I have sent you a modified template. Please take a look.
    Assign points and close out the thread if you are satisfied.
    Thanks,
    Bipuser

  • Sort Date format in Oracle XML Publisher

    Hi All,
    I have a requirement like trx_date sort. i have taken trx_date in dd-mon-yyyy format. now i given sort option like this..
    <?for-each:G_TRX_ORDER_NUMBER?><?sort:TRANSACTION_TYPE?><?sort:DUE_DATE;'ascending';data-type=date?> <?sort:TRX_NUMBER?>
    now i have 3 dates
    07-NOV-10
    20-MAY-11
    20-DEC-10
    using above sort option.. this dates are not coming as per the ascending order.
    Can any one tell me what i have to ?
    Thanks

    What is your application release?
    Does the sort work for other data types?
    What if you change "<?sort:DUE_DATE;'ascending';data-type=date?>" to "<?sort:DUE_DATE;'ascending';data-type='date'?>", does it make any difference?
    Few examples about the sort can be found in these docs/links.
    How to Group Data Dynamically at Runtime in a BI/XML Publisher RTF Template? [ID 1062816.1]
    Sorting Data In eText Template [ID 1263511.1]
    Oracle XML Publisher User's Guide
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
    Thanks,
    Hussein

  • XML publisher - page number not displaying

    Hi,
    I am creating a report using xml publisher rtf template ,The result is being displayed in a table if the no of rows are more the table may extend to several pages, I want to display page numbers like 1 of 5 on First page,2 of 5 on 2nd page and so on, also is it possible that the table headers are repeated on next page?
    Thanks in advance....

    Hi,
    Use <?start:body?> for defining your header and it will repeat on every page.
    Also add <?end body?> as closing, for footer logic.
    BR
    Magnus

  • Image not showing in XML Publisher [works on windows, not unix]

    I have an xml publisher RTF template that references an image from a URL passed in from the xml data file. The report definition references the image as follows:
    <fo:external-graphic>
    <xsl:attribute name="src">
    <xsl:value-of select="//fld_FILE_PATH_NAME"/>
    </xsl:attribute>
    The XML produced for the report correctly contains one single element to resolve to the URL:
    <fld_FILE_PATH_NAME>file:////i01_02/psoft/90/finsys/appserv/FSDSYS90/files/OZ57_EX_E0445_0000000303.png</fld_FILE_PATH_NAME>
    When running in PeopleSoft on a windows application server the process works fine and I can see the image. When I run this in our unix solaris environment, PT 8.49, the report runs but the image does not display. I have checked that the image does exist in the correct location I ran firefox in gnome and pasted the file location below and it resolved fine.
    I am referring to the file using a 'file' URL as follows:
    file:////i01_02/psoft/90/finsys/appserv/FSDSYS90/files/OZ57_EX_E0445_0000000303.png
    Any ideas?
    Glenn

    OK, this was a confusing one, and I suspect is a bug.
    In the end, after using the xdo.log [debugger], we saw that the xml publisher engine is stripping off two slashes as the beginning of the URL construct. So, the solution, is to add two additional slashes.
    So, the URL which ended up working is:
    file://////opt/oracle/90/findev/appserv/FSDDEV90/files/OZ57_EX_E0445_0000000303.png
    which resolves to the file /opt/oracle/90/findev/appserv/FSDDEV90/files/OZ57_EX_E0445_0000000303.png
    FYI - our environment is Solaris 10 using the Oracle Application Server, PT 8.49

  • Unable to view image if the size is more than 3KB using XML Publisher.

    Hello,
    We are printing PO approver signature using xml publisher (rtf) on a pdf.
    If the size of the image is 3KB or less, the image gets printed.
    But, if the size is more than 3KB the image does not get printed.
    Additional Info:
    1. The signature is stored as jpg image in fnd_lobs table.
    2. On following code is mentioned in the rtf
    <fo:instream-foreign-object content-type="image/jpg">
    <xsl:value-of select="IMG_SIGNATURE"/>
    </fo:instream-foreign-object>
    3. We are using the following function that converts BLOB to CLOB.
    CREATE OR REPLACE FUNCTION XX_BLOBTOBASE64
    b IN BLOB
    RETURN CLOB
    IS
    sizeb PLS_INTEGER := 4080 ;
    buffer RAW(4080);
    offset PLS_INTEGER DEFAULT 1;
    RESULT CLOB;
    BEGIN
    -- dbms_lob.createtemporary
    -- lob_loc => RESULT
    -- , cache => FALSE
    -- , dur => dbms_lob.CALL
    -- LOOP
    -- BEGIN
    -- dbms_lob.READ
    -- ( lob_loc => b
    -- , amount => sizeb
    -- , offset => offset
    -- , buffer => buffer
    -- EXCEPTION
    -- WHEN no_data_found
    -- THEN
    -- EXIT;
    -- END;
    -- offset := offset + sizeb;
    -- dbms_lob.append
    -- ( dest_lob => RESULT
    -- , src_lob => to_clob(utl_raw.cast_to_varchar2(utl_encode.base64_encode(buffer)))
    -- END LOOP;
    DBMS_LOB.createtemporary(lob_loc => RESULT, CACHE => FALSE, dur => 0);
    Wf_Mail_Util.EncodeBLOB ( b, RESULT );
    RETURN RESULT;
    END;
    Requesting any of you to let us know if there is any method to resolve this issue.
    Thanks,
    Angelica.

    Hi,
    Are you using Outlook.com to send/receive emails? Based on my research, we can only add an image/ picture in your e-mail signature that’s Web based (picture that is available in existing websites or stored in an online storage). See:
    http://answers.microsoft.com/en-us/outlook_com/forum/osettings-oemailset/add-logo-to-outlookcom-signature/4455facf-0926-42a6-aad7-756de662a865
    Since this forum is for general questions and feedback related to Outlook desktop application, if you are using Outlook.com, I'd recommend you post your question in the Outlook.com forum:
    http://answers.microsoft.com/en-us/outlook_com/forum?tab=Threads
    The reason why we recommend posting appropriately is you will get the most
    qualified pool
    of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • XML Publisher report output in RTF format does not display full page

    Hi,
    We have one XML Publisher report, the output of report in RTF format is not getting displayed in Full Page in normal way (MS Word -->View menu --> Print layout) but we can see full page display when we do MS Word -->View menu --> Outline.
    Appreciate your valuable inputs on this.
    Is this a template issue or any profiles needs to be set.
    Thanks
    Vijay

    Do you have any header and footer on your template?
    If you have any header and footer then try to adjust it as of to display full page.
    Thanks
    Yasar

  • Wordpad object in rtf format - XML publisher

    We are trying to insert a Wordpad OLE object(Printer Signature Escape code Sequence) in the xml template and trying to generate the xml report in rtf format. When we generate the report or preview in rtf format the inserted Object Contents are not displaying. Any one faced this issue in xml publisher.
    This is what I did.
    1.Open the XML template. In Word under Insert option Selected Object . Select the object type as Word Pad Object(In Create new Tab). Type somethinng.. I typed this as printer escapecode sequence ~(4B~(s1p53v0s
    2.Loaded the XML data and tried to preview in RTF format the Object disappears and nothing displays in the place of Obejct.
    When I preview in PDF format this displays. but PDF format is not supported by our troy printer.
    This is we are doing to get the signature with printer escape code. It would be great if any one have any alternatives?. They are not going to give the Signature as an image.

    This is the General XML forum.
    The homepage description says :
    Discussion of the general XML language, standards (XSLT, XQuery, XMLSchema, etc.) and application management issues, suggestions and tips.
    The BI Publisher forum is here :BI Publisher
    So please mark this post as answered and ask again over there.

  • In XML Publisher ....unable to load .RTF

    Hi ,
    I have just installed MS windows XML publisher as BI publisher download link not working.
    I started the xml server ,
    went to the url through firefox
    created/added a new data source through admin option
    crated a simple data model as
    select ename,job from emp
    created a new layout in .rtf format.
    when i upload the .rtf it uploads the same and then I have it .....
    but after saving the .rtf i can't see it in the layout as uploaded ...
    DO I have to specify some directory in the XML server where all .rtf will be saved ???
    this is my first installation ....hence no clue...
    I am using WINDOWS XP ?.....can someonw suggest please ?
    ta
    s

    i am using xml publisher for general report writing NOT FOR EBS...
    following is my data template which works fine and generates xml data
    <dataTemplate name="A_SIMPLE_REPORT">
    <properties>
    <property name="xml_tag_case" value="upper"/>
    </properties>
    <parameters>
    <parameter name="P_PARM" dataType="character"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="QUERYNAME">
    <![CDATA[
    select empno EMPNO
    , ename ENAME
    , job JOB
    from
    scott.emp
    where 'XYZ' = nvl(:P_PARM, 'XYZ')
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_UPPERGROUP" dataType="varchar2" source="QUERYNAME">
    <element name="EMPNO" dataType="varchar2" value="EMPNO"/>
    <element name="ENAME" dataType="varchar2" value="ENAME"/>
    <element name="JOB" dataType="varchar2" value="JOB"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Now I opened a ms word document :
    1)added a table with 3 columns and 2 rows
    2) added the below column headings with their subsequent tags in row 1 and 2 respectively for the table ?
    EMPNO     ENAME     JOB
    <?for-each:G_UPPERGROUP?> <?ENAME?> <?JOB?>
    <?EMPNO?> <?end for-each?>
    is my code correct ?
    ta
    s

Maybe you are looking for