1

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.

Anas Karkoukli
  • 1,342
  • 8
  • 13
Simon Verbeke
  • 2,905
  • 8
  • 36
  • 55

1 Answers1

3

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

Community
  • 1
  • 1
Anas Karkoukli
  • 1,342
  • 8
  • 13