G
Guest
I want to include a comment in an rtf file and save it through vb.net. My problem is that the comment will not save. Details follow
I referenced http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec.as
to find a way to add a comment in an RTF file. Below is an rtf file with a comment
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}
\viewkind4\uc1\pard\f0\fs20 This is text\pa
{\*\annotation How about some examples that deal with social science?
That's what this paper is about.}
When I load the file into an rft control, it works fine. I see the text and the comment is hidden. The problem is that when I save the file without any changes, the comment is lost. My load and save code are
Me.rtfDocumentation.LoadFile("c:\TestDoc.rtf"
Me.rtfDocumentation.SaveFile("c:\Testdoc.rtf"
Can I solve this problem by either changing the comment in the file or the command used to save the file?
I referenced http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec.as
to find a way to add a comment in an RTF file. Below is an rtf file with a comment
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}
\viewkind4\uc1\pard\f0\fs20 This is text\pa
{\*\annotation How about some examples that deal with social science?
That's what this paper is about.}
When I load the file into an rft control, it works fine. I see the text and the comment is hidden. The problem is that when I save the file without any changes, the comment is lost. My load and save code are
Me.rtfDocumentation.LoadFile("c:\TestDoc.rtf"
Me.rtfDocumentation.SaveFile("c:\Testdoc.rtf"
Can I solve this problem by either changing the comment in the file or the command used to save the file?