gpt4 book ai didi

wpf - 打开 PDF : WPF

转载 作者:行者123 更新时间:2023-12-04 20:31:07 27 4
gpt4 key购买 nike

我想通过单击按钮打开 PDF 文件。我会将 PDF 文件保存在项目的解决方案/命名空间中。谁能给我解决这个问题?

最佳答案

要启动标准 PDF 查看器,您只需启动一个外部进程:

Process proc = new Process( );
proc.StartInfo = new ProcessStartInfo( ) {
FileName = path //put your path here
};
proc.Start( );

要在您的应用程序中显示文件,您必须将 pdf 查看器用作 ActiveX 组件。

关于wpf - 打开 PDF : WPF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3967149/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com