trichview.support
Merge cell table corruption? |
Author |
Message |
Franco Skrzypczak |
Posted: 07/26/2004 13:18:57 Hi there, I have downloaded the demo code and wrote a small wysiwyg editor. Everything works fine except table cell merges. I copied the code used for merging cells in the demo app and the cells does get merged. The problem however, is that AFTER I merged a cell in a table I get a few problems. 1.) If I try to set the color of a single cell in a table ALL the cells in the table get the same color. 2.) If I close the application I get an exception in the TRichView package. 3.) If I export the table in HTML format and open it in a browser, it displays correctly. But if I copy this table, it is not possible to paste it into the richview component. To me it seems like the table item gets corrupted. Maybe I am doing something wrong since I am not so familiar with this component set yet. Below are the source used for cell merging. 7: begin SetUndoGroupMode(False) rve.BeginUndoGroup(rvutModifyItem); rve.SetUndoGroupMode(True); table.MergeSelectedCells(True); table.DeleteEmptyRows; table.DeleteEmptyCols; rve.SetUndoGroupMode(False); Any help will be appreciated thanks! |
Powered by ABC Amber Outlook Express Converter