如何在给定容器中启动进程? (如何在组框中启动 acrobate reader?)在 VB.Net 中
我希望在我的应用程序中显示 pdf 和 xps 文件的预览。所以我希望能够运行一个进程并给它“位置”或它应该运行的容器。
有办法做到这一点吗?
我现在可以启动任何我想要的应用程序,并使用必要的 ProcessStartInfo 打开文件,但我需要将应用程序包含在特定控件中,而不是作为独立的应用程序。
例如,我没有找到允许我这样做的 .Parent 属性。 如果您有想法,请告诉我。
提前致谢。
I would like to have a preview of pdf and xps files displayed in my application. So I would like to be able to run a process and give it the "location" or the container where it should run from.
Is there anyway to do that?
I presently can launch whatever application I want, with the necessary ProcessStartInfo to open the file, but I would need the application to be contained within a particular control, rather than being a standalone application.
I didn't find a .Parent property for example, that would allow me to do it.
If you have an idea, let me know.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一些发现:
首先在这里:http://www. dreamincode.net/forums/topic/148658-embedding-another-program-into-app/
第一个解决方案:使用网络浏览器控件:
第二个解决方案(在这里找到: http://www.tek-tips.com/viewthread.cfm?qid=1598720 )
上面的代码正在运行,并且可能会得到改进。
我还在努力呢!
Some findings:
first here: http://www.dreamincode.net/forums/topic/148658-embedding-another-program-into-app/
first solution: use a webbrowser control with:
Second solution (found here: http://www.tek-tips.com/viewthread.cfm?qid=1598720 )
The code above, is working and could probably be improved.
I'm stilling working on it!