In our application we are using a RegEx to locate a ContentRange. We remove the text at that range and then at the range Start we insert a Table:
var position = range.LoadText(string.Empty).Start;
position.InsertRange(table.Content);
Viewing the resulting DOCX on a desktop version of Word generally looks fine. But trying to edit it at Word online (https://word.cloud.microsoft/) the tables are very narrow and squished:
It seems this method of inserting a table at a random location isn’t well supported by Microsoft. Is there a better way for us to do something like this?
This will calculate the cell and column widths based on GemBox.Document’s rendering engine, which might be slightly different from what Microsoft Word’s rendering engine calculates.