Hi,
I have a requirement in which I have to create a table in a richtext field.The table will be created programmatically.
I have to use this in a schedule agent.The agent will process all the documents in a view and will create a table based on certain condition.
I have written a code using Appendtable method, but it is not creating table on the existing documents but when I am composing a new document and then ussing Appendtable method then table is created.
Please help me.
Thanks in advance.
Subject: Programmatically Create table in Richtext field of selected document
help us help you, please post your code.
Subject: RE: Programmatically Create table in Richtext field of selected document
I suspect the difference between the old and the new documents, is that the field is not rich text in the old documents (or does not exist, and you are failing to check for that and create it). You can confirm this from the document properties dialog within a view. You agent must test whether the item exists and if it is rich text; if not, delete the old item (perhaps saving the existing contents) and create a new rich text item, inserting the old text followed by the new table.