How to align a text in table columns?
To preserve alignment set this settings:
h.PreserveAlignment = True
This example of HTML table (horizontal alignment):
<table>
<TR>
<TD align="center">center</td>
<TD align="justify">left</td>
<TD align="right">right</td>
<TD align="left">justify</td>
</tr>
</table>
This example of HTML table (vertical
alignment):
<table>
<tr>
<td width="25%">non-aligned non-aligned<br>non-alignednon-aligned</td>
<td width="25%" valign="middle">align vertical center</td>
<td width="25%" valign="top">align vertical top</td>
<td width="25%" valign="bottom">align vertical bottom</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
Back
to top
Does the component support background
colors?
Yes, it supports background
colors for table columns and for text. To preserve background color
set:
h.PreserveTables = True
h.PreserveNestedTables = True
h.PreserveFontColor = True
h.PreserveBackgroundColor = True
Actually, the all triggers as 'PreserveBackgroundColor'
etc already set to 'True' by default. If don't want to preserve
colors, put :
h.PreserveFontColor = False
h.PreserveBackgroundColor = False
Here you can find the HTML
sample with background colors.
Back
to top
How can I adjust the table width?
You can set settings so that table will have the
same width as in HTML or expand to page's width.
For instance, <table width="500".......
To preserve this width, set:
h.PreserveTableWidth = True
Back
to top
|