Solved

A simple Question on XSL-FO.(Is it possible to increase the cell or column width dynamically based on the value we kept in that cell?)

Posted on 2003-10-31
4
241 Views
Last Modified: 2013-11-18
Hi,


Is it possible to increase the cellwidth or column width using xsl-fo?
(I want to increase the cell width based upon the text, i kept in that cell?)

Hi,


Is it possible to increase the cellwidth or column width using xsl-fo?

I am trying  to increase the cell width based upon the value i kept in that cell?

<fo:table width="18cm" space-after="0.5cm" space-before="0.5cm">
  <fo:table-column column-width="0.1cm" />
  <fo:table-column column-width="2cm" />
      <fo:table-body>
            <fo:table-row height="0.3cm">
                 <fo:table-cell>
             <fo:block padding-bottom="5pt">
                   //here i will display text dynamically.
                         (at this place i wnt to increase/decreas dynamically the width equal   to content widthy)
                     </fo:block>
      </fo:table-cell>
            </fo:table-row>
       </fo:table-body>
</fo-table>



Thank you very much for your answer.

Eagerly waiting for your replys.

regards
coolguy

0
Comment
Question by:coolguy77
4 Comments
 

Accepted Solution

by:
maheshmandave earned 50 total points
ID: 9661827
It's not possible to increase cell width. Because we give format using <fo:table-column column-width="0.1cm" />
It is just like HTML <TD>.
I think if u remove the column-width attribute fo will adjust the width accordingly
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
The viewer will learn how to count occurrences of each item in an array.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now