单击存在于网格中的图像按钮时,应显示一个与数据绑定项有关的pdf文件. [英] when the image button which is present in grid is clicked it should display a pdf file which is related to the data bound item .

查看:52
本文介绍了单击存在于网格中的图像按钮时,应显示一个与数据绑定项有关的pdf文件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我有一个包含数据绑定项的网格,单击网格"中的图像按钮时,图像"按钮应显示一个与数据绑定项相关的pdf文件.
在此先感谢您.

Hi Friends,
I have a grid which contains a databound item, Image button when the image button which is present in grid is clicked it should display a pdf file which is related to the data bound item .
Thank You in Advance.

推荐答案

如果您已经安装了Adobe Acrobat,请使用Web浏览器控件.获得pdf文件名后,只需浏览文件

webBrowser1.Navigate(Application.StartupPath + "\\Test.pdf");

我希望您知道如何获得单击的行,从而得到pdf文件名.如有疑问发表评论
If you have installed adobe acrobat then use a web browser control. Once get the pdf file name then simply navigate the file

webBrowser1.Navigate(Application.StartupPath + "\\Test.pdf");

I hope you know how to get the clicked row and thereby the pdf file name. If any doubt post comments


这篇关于单击存在于网格中的图像按钮时,应显示一个与数据绑定项有关的pdf文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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