求在线浏览pdf文件解决方案
求在线浏览pdf文件解决方案
------解决方案--------------------
我是先把PDF转成SWF格式的,在网页上浏览的是FLASH文件。 转换器网上有的下。
FLASH播放器代码网上也可以找到。我那代码是后台的,给你做个参考
if (sSuf == "swf")
{
string obj = "";
obj += "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
obj += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\"";
obj += " ID=\"" + this.ClientID + "\" name=\"" + this.ClientID + "\" WIDTH=\"" + this.Width.ToString() + "\" HEIGHT=\"" + this.Height.ToString() + "\" ALIGN=\"\">";
obj += "<PARAM NAME=movie VALUE=\"" + client_sfwurl + "\">";
obj += "<PARAM NAME=menu VALUE=" + ShowMenu.ToString().ToLower() + ">";
obj += "<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=" + ColorTranslator.ToHtml(this.BackColor) + ">";
obj += "<param name=\"wmode\" value=\"Opaque\" />";
obj += "<EMBED wmode=\"transparent\" src=\"" + client_sfwurl + "\" menu=" + ShowMenu.ToString().ToLower() + " quality=high bgcolor=\"" + ColorTranslator.ToHtml(this.BackColor) + "\" WIDTH=\"" + Width.ToString() + "\" HEIGHT=\"" + Height.ToString() + "\" swLiveConnect=true ID=\"" + this.ClientID + "\" NAME=\"" + this.ClientID + "\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>";
obj += "</OBJECT>";
html = obj;
}
------解决方案--------------------
PDF.Web.Viewer.NET 1.0.17
RAD PDF Release 2.7
------解决方案--------------------现在浏览器一般都装了 Adobe 的阅读插件的,
所以 直接 访问 ×××.pdf 就可以了
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------