private void ImportFromString(string input) { #region radwordsprocessing-formats-and-conversion-rtf-rtfformatprovider_1 RtfFormatProvider provider = new RtfFormatProvider(); RadFlowDocument document = provider.Import(input); #endregion }
private void ImportFromFile() { #region radwordsprocessing-formats-and-conversion-rtf-rtfformatprovider_0 RtfFormatProvider provider = new RtfFormatProvider(); using (Stream input = File.OpenRead("Sample.rtf")) { RadFlowDocument document = provider.Import(input); } #endregion }
public void Writecoment(DataRow row) { if (row == null) { return; } String id = row["id_comment"].ToString(); RtfFormatProvider rtf = new RtfFormatProvider(); String comment = _viewModel.FillRecoTextBox(id).ToString(); if (comment == "") { CommentReader.Document = new RadDocument(); return; } CommentReader.Document = rtf.Import(comment); }