最新成果 <script type="text/javascript"> function loadfile() { var dwgViewerCtrl= document.getElementById("dwgViewerCtrl"); dwgViewerCtrl.PutSourcePath("g:/Drawing1.dwg") } </script> </head> <body> <form id="form1"> <input type="button" onclick="loadfile()" value="loadfile" /> <div> <object id="dwgViewerCtrl" classid="clsid:6C7DC044-FB1E-4140-9223-052E5ABE7D24" width="100%" height="100%" data="DATA:application/x-oleobject;BASE64,RMB9bB77QEGSIwUuWr59JAAHAAARTAAArjAAAA=="> </object> </div> </form> </body> </html>
以上这个html页面在本地可以打开并完美显示,但如果放到IIS里(项目用asp.net),在dwgViewerCtrl.PutSourcePath("g:/Drawing1.dwg")会报错,除非把ie的安全设置设得很低 继续请求解决方案 |