在IE中禁用打印并保存PDF加载选项 - c#web browser contros [英] Disable Print and save options of PDF loading in IE - c# web browser contros

查看:99
本文介绍了在IE中禁用打印并保存PDF加载选项 - c#web browser contros的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#web浏览器控件中加载pdf文件。我需要禁用所有与pdf相关的功能,如打印,保存等,并仅在Kiosk模式下加载pdf,这样用户就无法执行除读取之外的任何其他操作pdf文件。

I am loading pdf file in c# web browser control .I need to disable all the pdf related fucntions like Print,save etc and load the pdf only in Kiosk mode so that the user cannot perform any other action except reading the pdf file.

请帮助解决方案,禁用在Web浏览器控件中加载的pdf文件的打印和保存选项。

Please help with a solution to disable print and save option of pdf file that is being loaded in Web browser control.

推荐答案

在ASP.Net论坛上可能会更好地询问这个问题,该论坛涉及网络相关的所有内容。

This question might be better asked on the ASP.Net Forum, wich deals with everything Web related.

http://forums.asp.net/

但是我只能怀疑你想做什么的可能性。

如何显示pdf取决于浏览器是否正在使用插件。

所有要显示给用户的内容,必须已经下载到用户计算机。某些PDF阅读器插件可能会在某个地方隐藏该缓存,但这是他们可以做的最多。

However I can only doubt the possibiltiy of what you want to do.
How a pdf is displayed depends on wich Plugin is in use by the browser.
Everything to be dispalyed to the user, must already be downloaded to the users computer. Some PDF reader plugins might hide that cache someplace, but that is the most they can do.

即使您可以控制每个最后一个插件,用户也可能只是为该URL提供下载顺序。

Even if you could control every last plugin, the user might simply give a download order for that URL.

作为一名网络程序员,你无法控制浏览器/用户。你可以暗示某些行为,但客户所做的事情取决于他。

什么是"超级棒极了"。关于你的PDF它有价值显示,但没有值保存?我想不出一个有意义的案例。我认为你只是走错了路。

As a web programmer you have 0 control over the browser/user. You can hint at certain behavior, but what the client does is up to him.
What is so "super awesome" about your PDF that it has value to be displayed, but no value to be saved? I can not think of a case where that would make sense. I think you are just plain on the wrong track.


这篇关于在IE中禁用打印并保存PDF加载选项 - c#web browser contros的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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