trichview.com

trichview.support




Creating tables with no rows or cells


Return to index


Author

Message

Martin Holmes

Posted: 03/02/2005 16:19:21


Hi there,


I'm working on building tables from an XHTML structure. What I really

need to do is to create a table with no rows or cells, then add each row

and cell as I go along; this is because cells may be merged (colspan or

rowspan > 0), so it's not really possible to know how many cells there

will be in each row. What I'd like to do is this:


-Create a table with no rows or cells


-For each row in my source XHTML:


       -Add a row with no cells


       -For each cell in the XHTML row


               -Add a cell to my row, with the appropriate colspan/rowspan settings

read from the XHTML


The problem is that the help for TRVTableItemInfo.CreateExCreateEx says

"<Row Count> and <Column Count> must be > 0", and

TRVTableItemInfo.Create "creates new table with one row and one column".


Is there a way to create an empty table? Is there any risk in creating a

table with one row, then deleting that row?


Cheers,

Martin





Powered by ABC Amber Outlook Express Converter