I’m saving data as a .pdf with a program.
However, I can’t figure out how to open the .pdf I have just saved, to show it to the user.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you specify a WinForm application. Here a simple way that assumes Acrobar Reader (or other PDF reader) are instaled on the client machine running your app.
Use the ‘System.Diagnostics.Process’ class to start the PDF reader. You need only pass the path to your PDF resource. ex:
Process.Start("filename.pdf");There are other approaches discussed here:
Opening a PDF in WPF Application