I created FlowDocument.xaml in my current WPF project. What I want to do is when the user clicks the button, the XAML document will be loaded into the code behind, some data about the document will be changed, and then printed. I don't know how to load a stream document so that I can change it.
When I do this:
FileStream fs = File.Open("FlowDocument.xaml", FileMode.Open)
It says that he cannot find the file. The file is part of the project, and I assume that it will be packaged along with the rest of the project at compilation.
Any help is appreciated
Mikec source share