如何自动显示特定的pdf文件 [英] How to automatically display specific pdf file

查看:118
本文介绍了如何自动显示特定的pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hello there. can you help me how to display a certain pdf file? for example  if i click the button1 then the 1.pdf and when i click the other button it will also show my 2nd pdf file. i want to show it inside my form. what can i use from toolbox to show that pdf? coz when i use the acrobat reader it only displays gray.. help me thanks.





我尝试过:



我尝试过使用pdf acrobat reader



What I have tried:

i've tried using pdf acrobat reader

推荐答案

Google Gods会用答案祝福你:如何自动显示具体的pdf文件 - Google搜索 [ ^ ] ...就像这样:在按钮上打开pdf / Word文件点击Vb.Net [ ^ ]
Google Gods will bless you with answers: How to automatically display specific pdf file - Google Search[^] ... like this one: Open pdf/Word file on Button Click Vb.Net[^]


你应该使用WebBrowser Control(Windows窗体) [ ^ ]



You shall use WebBrowser Control (Windows Forms)[^]

private void button1_Click(object sender, EventArgs e)
       {
           webBrowser1.Url = new Uri(@"D:\Design_Patterns.pdf");
       }


这篇关于如何自动显示特定的pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆