Dieter Menne
Dieter Menne

Reputation: 10215

Open pdf from c# with Process.Start: Adobe Reader closes after 3 seconds

Using Process.Start("myfile.pdf") from main thread opens Adobe Reader with the correct file, but closes it after 3 seconds.

Same with Process.Start("myfile.txt") keeps Notepad open. When I switch to Chrome as the default pdf-viewer, the Window is also kept open.

How do I keep the Reader alive?

Upvotes: 1

Views: 272

Answers (1)

Dieter Menne
Dieter Menne

Reputation: 10215

The default application was not Adobe Reader as I mentioned, but Acrobat Version 7 (oldish). After installing the Reader and being forced to uninstall Acrobat (krrr, Adobe.....), things worked as expected.

Upvotes: 1

Related Questions