Monday, July 10, 2006 12:24 AM
I'm writing an application that puts the user through a long workflow setting up a large model with many complicated parameters. This application will be generating a report, most likely in xaml based format, and I would like to copy the state of the configuration controls to the report in a vectorized format. So a function like the RenderTargetBitmap but with xaml encoder would be good.
I've looked at :
but this saves refereces to my custom controls in the file, which isn't what I want.
Monday, July 10, 2006 9:13 AMHowdy..
Do you mean that you are going to spit out a heap of XAML and you want that to then show on the screen?
If this is the case, then I believe that you are almost on the right track and instead of looking at XamlWritter, you nead to be looking at XamlReader...
I am sorry that I dont have any samples for you but I vaguely rember reading something about this.
Monday, July 10, 2006 10:42 AMActually I want it the other way around. I want to take a screen capture of my application and put it in a Word document, but instead of putting a bitmap into my Word document I would like to paste in some vector based image format. That way the fonts, curves, etc all print nicely.
Monday, July 10, 2006 1:53 PMHave you thought about taking your output (not necessarily your application, just the meaningful output), and rendering it inside a FlowDocument? When you save a flow document, you can save it as an XPS (XML Paper Specification) file.. this means you can open that same flow document with WPF again, or you could open it in Word 2007.