title: How does one create a PDF from a Usercontrol in WPF MVVM
body: <p>I am creating a WPF application. I use MS Visual Studio 2010, C# and MVVM.</p>
  
  <p>On a usercontrol, I have a gridview. That gridview is populated with data from another class, via binding and itemsourceing etc... No problems there. I see the data and everything. I also have a few labels and textboxes around the usercontrol. These will be used by the user to fill in random data. Stuff like name, address and the such. You could call it an order form. The list of products in the gridview with the details provided below.</p>
  
  <p>Once the user clicks OK, the application should now create a PDF of the entire usercontrol. How do I do that? </p>
  
  <p>I can export a gridview to Excel just fine. But now I want to basically recreate the usercontrol into a PDF file.
  I have read online that I can create an image of the usercontrol and convert that image to PDF. Would that help? I know from screenshots that the textboxes still have the borders around them and such.</p>
  
  <p>But for now, how do I create a PDF from the usercontrol, using the MVVM approach? 
  And a side question. If I can use a save to dialog box, where the user can select where to save the file, can I get that location in a string to use it to open the PDF document in a report viewer on a seperate usercontrol?</p>
  
  <p>If there is a need for coding, images or anything else, please comment and I'll edit the question with the changes.</p>