日期:2014-05-17 浏览次数:20760 次
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String id = "1";
%>
<html>
<head>
<title>dsoframer测试</title>
<script type="text/javascript">
var docurl = "";
function load(){
//document.all.oframe.CreateNew("Word.Document"); //此处是新建一个word
document.all.oframe.Open("<%=basePath%>/upload/1.doc",false,"Word.Document"); //此处为打开给定地址的word
}
</script>
</head>
<body onload="load()">
<div>
<object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" codebase="dsoframer.ocx" id="oframe" width="75%" height="100%">
<param name="BorderStyle" value="0">
<param name="Titlebar" value="1">
<param name="Toolbars" value="1">