I have a WPF application on wich the user can paste some data from Word inside a RichTextBox... but if that word data has an image, I need to remove it, how can I acomplish that? Since the FlowDocument is xml, maybe doing some linq magic could do it, but I don't know how :/
A:
There is a tool called WordtoXAML Converter (http://wordtoxaml.codeplex.com). You can use that to convert your Word document contents to XAML, use regular expression matching to identify the images and then strip them out.
Mamta Dalal
2010-09-22 03:28:26
Well, RichTextBox hosting FlowDocument will do the conversion when you paste from Word, so adding 3rd party tool to the solution won't make this task any easier.
DK
2010-09-23 21:02:34