RTF not saving DocParameters.Comments
Posted: Tue Jul 06, 2021 3:23 pm
Using trial version 19.2. I have both RTF and RVF set to save and load DocParameters in their respective options.
Problem: I have a test RTF file. When I save it, I'm doing this:
RichViewEdit1.DocParameters.Comments := Memo1.Text;
RichViewEdit1.SaveRTF(ExtractFilePath(Application.ExeName) + 'test.rtf',false);
RichViewEdit1.DocParameters.Comments := '';
When I load it, I do this:
RichViewEdit1.ClearAll;
RichViewEdit1.DeleteUnusedStyles(true,true,true);
RichViewEdit1.LoadRTF(ExtractFilePath(Application.ExeName) + 'test.rtf');
Memo1.Text := RichViewEdit1.DocParameters.Comments;
DocParameters.Comments are always empty after saving RTF from my test app. If I check the file in Word after saving it from my test app, it also shows Comments as empty. If, however, I add a comment to the test file in Word, and then load it in my test app, the comment shows up. But if I save from my app again the comment is wiped out.
RVF is working as expected with the same basic code.
Any ideas on what is wrong? Thanks!
Problem: I have a test RTF file. When I save it, I'm doing this:
RichViewEdit1.DocParameters.Comments := Memo1.Text;
RichViewEdit1.SaveRTF(ExtractFilePath(Application.ExeName) + 'test.rtf',false);
RichViewEdit1.DocParameters.Comments := '';
When I load it, I do this:
RichViewEdit1.ClearAll;
RichViewEdit1.DeleteUnusedStyles(true,true,true);
RichViewEdit1.LoadRTF(ExtractFilePath(Application.ExeName) + 'test.rtf');
Memo1.Text := RichViewEdit1.DocParameters.Comments;
DocParameters.Comments are always empty after saving RTF from my test app. If I check the file in Word after saving it from my test app, it also shows Comments as empty. If, however, I add a comment to the test file in Word, and then load it in my test app, the comment shows up. But if I save from my app again the comment is wiped out.
RVF is working as expected with the same basic code.
Any ideas on what is wrong? Thanks!