Foxtable(狐表)用户栏目专家坐堂 → PDF文件显示


  共有4252人关注过本帖平板打印复制链接

主题:PDF文件显示

帅哥哟,离线,有人找我吗?
刘林
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:八尾狐 帖子:1936 积分:14844 威望:0 精华:0 注册:2016/4/28 9:58:00
PDF文件显示  发帖心情 Post By:2020/2/1 13:26:00 [只看该作者]

Dim e As RequestEventArgs = args(0)
Dim wb As New WeUI
wb.InsertHTML("<script src='./js/pdfobject.js'></script>")
wb.InsertHTML("<div style='position:fixed;width:100%;height:120px;top:0px;left:0px;'>")
wb.InsertHTML("<div style='width:100%;height:40px;line-height:40px;margin-top:30px;text-align:center'>新型冠状病毒感染的肺炎</div>")
wb.InsertHTML("<div style='width:100%;height:40px;line-height:40px;text-align:center'>公众指南</div>")
wb.InsertHTML("</div>")
wb.InsertHTML("<div id='dispdf' style='width:100%;heigth:100%;margin-top:100px;border:1px solid red;'>")
wb.InsertHTML("</div>")
wb.InsertHTML("<script>PDFObject.embed('./pdf/gzzl.pdf', '#dispdf');</script>")
e.WriteString(wb.Build)
e.Handled=True

老师,我在网上找了个例子在hbulider中是可以,转到FT中这样试就不显示呢PDF内容呢,哪里有问题,请指教,谢谢
[此贴子已经被作者于2020/2/1 13:27:07编辑过]

 回到顶部
总数 21 1 2 3 下一页