【发布时间】:2021-04-23 12:12:32
【问题描述】:
我想使用用户保存的默认 Windows 行为打开 PDF(例如 Internet Explorer、adobe 等)。
我找到了这个解决方案 Opening a .pdf file in windows form through a button click
并在这里实现:
ProcessStartInfo startInfo = new ProcessStartInfo("MyPdfPath");
Process.Start(startInfo);
很遗憾,我遇到了一个错误:
System.ComponentModel.Win32Exception: "The specified executable is not a valid application for this OS platform."
我试图用谷歌搜索这个错误,但前十个解决方案都没有奏效。
【问题讨论】: