<%@ page language="java"
	import="java.util.*,com.zhuozhengsoft.pageoffice.*;"
	pageEncoding="gb2312"%>
<%@ taglib uri="http://java.pageoffice.cn" prefix="po"%>
<%
PageOfficeCtrl poCtrl=new PageOfficeCtrl(request);
poCtrl.setServerPage(request.getContextPath()+"/poserver.zz");

// 添加一个自定义工具条上的按钮，AddCustomToolButton的参数说明，详见开发帮助
poCtrl.addCustomToolButton("测试按钮","myTest",0);

poCtrl.webOpen("doc/test.doc",OpenModeType.docNormalEdit,"张佚名");
poCtrl.setTagId("PageOfficeCtrl1");//此行必需
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <title>在自定义工具条添加按钮</title>
</head>
<body>
    <script type="text/javascript">
        function myTest() {
            alert("测试成功！");
        }
    </script>
    <form id="form1" >
    点击自定义工具栏中的“测试按钮”查看效果。<br />
    <img src="img/addbutton.jpg" />
    <div style=" width:auto; height:700px;">
        <po:PageOfficeCtrl id="PageOfficeCtrl1">
        </po:PageOfficeCtrl>
    </div>
    </form>
</body>
</html>

