Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WinForms-如何打开和显示刚刚使用iTextSharp保存的pdf?_Winforms_Visual Studio 2010_Pdf_C# 4.0_Itextsharp - Fatal编程技术网

WinForms-如何打开和显示刚刚使用iTextSharp保存的pdf?

WinForms-如何打开和显示刚刚使用iTextSharp保存的pdf?,winforms,visual-studio-2010,pdf,c#-4.0,itextsharp,Winforms,Visual Studio 2010,Pdf,C# 4.0,Itextsharp,我正在用程序将数据保存为.pdf格式 但是,我不知道如何打开刚刚保存的.pdf文件,以便向用户显示。因为您指定了WinForm应用程序。这里有一个简单的方法,假设运行应用程序的客户端计算机上安装了Acrobar阅读器(或其他PDF阅读器) 使用“System.Diagnostics.Process”类启动PDF阅读器。您只需传递PDF资源的路径。例: Process.Start(“filename.pdf”) 这里还讨论了其他方法: 什么样的节目?网络应用程序?Windows应用程序?显示保存的

我正在用程序将数据保存为.pdf格式


但是,我不知道如何打开刚刚保存的.pdf文件,以便向用户显示。

因为您指定了WinForm应用程序。这里有一个简单的方法,假设运行应用程序的客户端计算机上安装了Acrobar阅读器(或其他PDF阅读器)

使用“System.Diagnostics.Process”类启动PDF阅读器。您只需传递PDF资源的路径。例:

Process.Start(“filename.pdf”)

这里还讨论了其他方法:


什么样的节目?网络应用程序?Windows应用程序?显示保存的PDF.Windows窗体应用程序的两种不同方法。没有意识到这很重要:)