Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
252 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 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Starting up a Project

926 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