I have an application that will gather information and then place it within a Word document. My goal is to have a PrintPreviewControl show a Print Preview of the document within the form which the user will verify and then print/save the document.
I'm not having good luck finding good info with this. Most sites I google are teaching me how to print the form I'm working on, not how to open an existing document for printing/preview.
My main problem is telling the printpreviewControl what I want to preview. In other words where do I set the path to tell it what I want previewed? I have tried tweaking many examples and the closest I got was to create a varible to a System.Drawing.Printing.PrintDocument class and then use the .name of the PrintDocument. But apparently all this does is name it, not tell it where it is, etc.
Any help would be greatly appreciated.
I'm not having good luck finding good info with this. Most sites I google are teaching me how to print the form I'm working on, not how to open an existing document for printing/preview.
My main problem is telling the printpreviewControl what I want to preview. In other words where do I set the path to tell it what I want previewed? I have tried tweaking many examples and the closest I got was to create a varible to a System.Drawing.Printing.PrintDocument class and then use the .name of the PrintDocument. But apparently all this does is name it, not tell it where it is, etc.
Any help would be greatly appreciated.