This question is locked. New answers and comments are not allowed.
Hello,
I have a RadRichTextBox that the user can enter formatted text, and save it to the database to view again later. I use richTextBox1.Document = rtfProvider.Import(formattedText) to populate the textbox, and rtfProvider.Export(richTextBox1.Document) to get the text to save to the database. This works just fine.
The problem I'm having is with paragraph line spacing. Say the user changes the line spacing to single, and the spacing after to 0, then saves the text. When it's loaded in the textbox again, the line spacing is single (correct), but the spacing after is 9.0 pt (incorrect).
Any ideas?
Thanks,
Justin
I have a RadRichTextBox that the user can enter formatted text, and save it to the database to view again later. I use richTextBox1.Document = rtfProvider.Import(formattedText) to populate the textbox, and rtfProvider.Export(richTextBox1.Document) to get the text to save to the database. This works just fine.
The problem I'm having is with paragraph line spacing. Say the user changes the line spacing to single, and the spacing after to 0, then saves the text. When it's loaded in the textbox again, the line spacing is single (correct), but the spacing after is 9.0 pt (incorrect).
Any ideas?
Thanks,
Justin
<telerik:RadRichTextBox DocumentInheritsDefaultStyleSettings="True" Height="140" HorizontalAlignment="Stretch" HorizontalScrollBarVisibility="Hidden" IsContextMenuEnabled="True" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="False" Name="richTextBox1" VerticalAlignment="Top" VerticalScrollBarVisibility="Hidden"></telerik:RadRichTextBox>// Loading TextboxString formattedText = //retrieve from databaseRtfFormatProvider provider = new RtfFormatProvider();richTextBox1.Document = provider.Import(formattedText);// Saving textRtfFormatProvider provider = new RtfFormatProvider();string formattedText = provider.Export(richTextBox1.Document);// save formattedText to database