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编辑过]