I'm running into a problem that I can't seem to figure out. The scenario is:
- Download a bunch of text data as an HTML string
- Use an HTML-to-Xaml converter to parse the HTML string and create a
List<Block>
(Windows.UI.Xaml.Documents.Block). - Display the collection of
Block
s as aRichTextBlock
control that's available in WinRT.
All of that works well. The problem is, I want to export this data as either a doc/docx or pdf file. Is there a way to export either the RichTextBlock
directly or add these Block
s to a RichEditBox
or even use the original HTML string to export to the file?
I looked at the Syncfusion Essential Studio, that offers the RichTextBoxAdv control, that's used as:
xmlns:rtba="using:Syncfusion.UI.Xaml.RichTextBoxAdv">
<Grid>
<rtba:SfRichTextBoxAdv>
</rtba:SfRichTextBoxAdv>
</Grid>
But so far as I can tell, there is no way to import Block
data or use an HTML string. The latter used to exist in WPF but it's not there anymore. Any suggestions?
` for those horizontal partitions, and `
` for line breaks.
– Khawar Nadeem Mar 29 '16 at 17:55