Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/303.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/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
如何在C#Net中打开或启动PDF文件?_C#_Filestream_.net - Fatal编程技术网

如何在C#Net中打开或启动PDF文件?

如何在C#Net中打开或启动PDF文件?,c#,filestream,.net,C#,Filestream,.net,如何在C#应用程序自己的流程中以编程方式启动PDF 最初:我想在点击C#.Net中的按钮时打开PDF文件?你说的“打开PDF文件”是什么意思?如果您需要阅读所有字节,更简单的方法是: byte[] byteArray = System.IO.File.ReadAllBytes(@"c:\file.pdf"); 如果您想在WinForm上显示它-look我假设您只想打开该文件。试试下面的方法 System.Diagnostics.Process.Start(@"c:\file.pdf"); 为

如何在C#应用程序自己的流程中以编程方式启动PDF

最初:我想在点击C#.Net中的按钮时打开PDF文件?

你说的“打开PDF文件”是什么意思?如果您需要阅读所有字节,更简单的方法是:

byte[] byteArray = System.IO.File.ReadAllBytes(@"c:\file.pdf");

如果您想在WinForm上显示它-look

我假设您只想打开该文件。试试下面的方法

System.Diagnostics.Process.Start(@"c:\file.pdf");

为您的问题提供第三种可能的答案:


如果您想编辑PDF文件,可以使用类似或

的库,您需要打开它进行阅读吗?编辑?图像提取?PDFToolkit是我通常用于所有这些东西的工具,不知道你是否可以在c#thoMark the ans中使用它,如果你得到它的话。它帮助别人