Monday, March 27, 2017

BI Publisher RTF Template Column Span

BI Publisher RTF Template, Merge Columns Dynamically


We shall see how to merge cells dynamically in Excel output with RTF template.
Use below code for defining the column span

<xsl:attribute xdofo:ctx="block" name="number-columns-spanned">        
       <xsl:value-of select="//CELL_TO_BE_MERGED"/>
</xsl:attribute>

In effect our RTF template will look as mentioned below:-

 Sample XML for testing is below:- 

<?xml version="1.0" encoding="UTF-8"?>
<CELLMERGE>
                <CELL_TO_BE_MERGED>3</CELL_TO_BE_MERGED>
                <CONTENT> THIS IS MERGED CELL </CONTENT>
</CELLMERGE>

Report output is shown below:-
Cells A1,B1,C1 are merged and content spans across 3 cells :-




4 comments:

  1. i just go through your article it’s very interesting time just pass away by reading your article looking for more updates. Thank you for sharing. Best Devops Training Institute

    ReplyDelete
  2. Good post and informative. Thank you very much for sharing this good article, it was so good to read and useful to improve my knowledge as updated, keep blogging. Thank you for sharing wonderful information with us to get some idea about that content.
    oracle training in chennai

    oracle training institute in chennai

    oracle training in bangalore

    oracle training in hyderabad

    oracle training

    oracle online training

    hadoop training in chennai

    hadoop training in bangalore

    ReplyDelete
  3. Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists.
    Salesforce Training in Chennai

    Salesforce Online Training in Chennai

    Salesforce Training in Bangalore

    Salesforce Training in Hyderabad

    Salesforce training in ameerpet

    Salesforce Training in Pune

    Salesforce Online Training

    Salesforce Training

    ReplyDelete