What options needed to autofit a table to content?
What options needed to autofit a table to content?
What options needed to autofit a table to content?
if I set no Options/Bestwidth the table has the same width as the document and all cells have the same width and the width of all cells fit the table width.
What I "really" want is that a cell fit its content until a maximum width. When reaching maximum width content is word wraped.
Thanks in advance
if I set no Options/Bestwidth the table has the same width as the document and all cells have the same width and the width of all cells fit the table width.
What I "really" want is that a cell fit its content until a maximum width. When reaching maximum width content is word wraped.
Thanks in advance
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
But only to fit (as an example) first column of a table to its largest content is possible?
At the moment I have something like this
but I want something like this
Or with other words: What is to do to get the smallest column width without word wrap
At the moment I have something like this
Code: Select all
| |
||a |b |c ||
||a1 a2 |bbb1 |cc ||
||aaa1 |b1 |c ||
| |
Code: Select all
| |
||a |b |c | |
||a1 a2 |bbb1 |cc | |
||aaa1 |b1 |c | |
| |
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: What options needed to autofit a table to content?
If I wanted to do rvpaoNoWrap in rtf what would be the appropriate rtf code that would turn this on?
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: What options needed to autofit a table to content?
Unfortunately, AFAIK, RTF does not have keywords for turning off word wrapping in paragraph.
There is a keyword for cells, but it has limitation
There is a keyword for cells, but it has limitation
\clNoWrap :
Do not wrap text for the cell. Only has an effect if the table cell does not have a preferred \clwWidthN, which overrides \trautofitN.
Re: What options needed to autofit a table to content?
This is good to know.
What I want to do is make a table of say 20 columns with yhe width dependent on the size of the words. It does not need to fit to view.
What I want to do is make a table of say 20 columns with yhe width dependent on the size of the words. It does not need to fit to view.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: What options needed to autofit a table to content?
With default settings, MS Word does not wrap inside words. So, if each cell contains one word, it's like a no-wrap option.
Re: What options needed to autofit a table to content?
Good to know.
Basically it will be content built in rtf a single table maybe text above it put into a sql and loaded as individual rtf files in TRichView so just checking on how to make it right.
Basically it will be content built in rtf a single table maybe text above it put into a sql and loaded as individual rtf files in TRichView so just checking on how to make it right.