Save to HTML
Save to HTML
when i save to html the table becomes compress to the left, what did i miss? is it with richviewedit settings?
- Attachments
-
- Capture.JPG (68.93 KiB) Viewed 151451 times
-
- Site Admin
- Posts: 17805
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Save to HTML
Please send me this document as RVF and as HTML (to email richviewgmailcom)
-
- Site Admin
- Posts: 17805
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Save to HTML
This table does not have defined width (table.BestWidth = 0), and cells do not have defined widths as well (BestWidth = 0 for all cells).
Currently, TRichView and HTML browsers show such tables differently. HTML browsers use minimum possible width, while TRichView displays such a table as if it has width = 100%.
To avoid this problem, avoid using such tables:
- define width of at least one cell in each column in absolute units (pixels by default, assign BestWidth = 0)
and/or
- define table width (table.BestWidth)
Currently, TRichView and HTML browsers show such tables differently. HTML browsers use minimum possible width, while TRichView displays such a table as if it has width = 100%.
To avoid this problem, avoid using such tables:
- define width of at least one cell in each column in absolute units (pixels by default, assign BestWidth = 0)
and/or
- define table width (table.BestWidth)
Re: Save to HTML
By the way sir, can we assign the width of cells upon exporting to html? set table to autowidth?
-
- Site Admin
- Posts: 17805
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Save to HTML
For tables as a whole, assign table.BestWidth property. You can define width as
For cells, assign cell.BestWidth.
You can define width as
It has an example of generation of 4 sample tables.
- absolute units (pixels by default) or
- percent of document width
- default width (autosize)
For cells, assign cell.BestWidth.
You can define width as
- absolute units (pixels by default) or
- percent of table width
- default width (using remaining space after calculating width of columns defined in absolute units or percents)
It has an example of generation of 4 sample tables.
Re: Save to HTML
Happy New Year! May you and your family will be bless more with success and good health this 2025.