Ok, so I have a RichTextBox user control in which the user can enter any number of Rich Text elements which then converts the contents to HTML. At the moment, I am working on tables specifically. For the most part, they work pretty easily, but when I try to save the RTF to a file and then load it again, the \trautofit1
control word disappears and the table width is reduced.
To save to an RTF file, I'm using: TextRange.Save(fileStream, DataFormats.Rtf);
I'm pretty sure the issue comes with how the RTF is saved, because the file that results from this has the shrunken table as well.
Here is the table before the save:
Here is the table after the save and load:
So the question: Is there anyway in which to counter this behavior, or is there a better way to get the RTF, or should I be using a different control word to autosize the width of the table?