I have attached a Visual Studio solution that converts a Word document to a XAML package and displays the results. The Word document contains hidden text which is, but should not be visible in the converted document.
Would it be possible to make the text hidden by setting a foreground colour with an alpha value of 255 (transparent)?
Incidentally, this new feature—save as XamlPackage—is excellent. It means we can give a lovely preview of a Word document in WPF that reflows just like the real thing. We've tried all kinds of ways to get a preview of a Word document, and this is the best. I think this would be useful to a lot of people: it would be worth promoting more heavily, maybe with an example of how to use it.
We have been extremely impressed with your support. (I don't think I've ever had a company come back to me and ask how I'd like a feature to be implemented before!)
Yes, you're one step ahead of me there. The option to remove hidden text would be best.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
Thank you very much for the fix.
Is the new behavior controlled by an option, as discussed in the thread above? I can't find any up to date documentation on the XamlFlowSaveOptions object.
Also, it seems that performing the following steps still gives incorrect results.
- Turn on Track Changes in Word.
- Add some text.
- Format the text as hidden.
The resulting text is included in the XAML package; it should be omitted because it's hidden, and the fact that it's change tracked should make no difference. Actually, this may be a problem with the code that handles change tracking: it seems that changes to formatting that haven't yet been accepted don't get carried across, though the changes to the text itself are visible.