Hi
I have a flow document in wpf which is designed as below(xaml).
<flowdocumentreader x:name="flowReader" xmlns:x="#unknown">
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
ScrollViewer.VerticalScrollBarVisibility="Auto" ViewingMode="Scroll">
<flowdocument name="flownew">
I have tried with the code but the thing is only paragraph headers are exporting into word instead i need to show its content also.
using (FileStream fs = new FileStream("D:\\test.rtf", FileMode.OpenOrCreate, FileAccess.ReadWrite))
{
TextRange textRange = new TextRange(flowReader.Document.ContentStart, flowReader.Document.ContentEnd);
textRange.Save(fs, DataFormats.Rtf);
}
Can any one please help me to export the flow document into word document with all the content.