protected void PageOfficeCtrl1_Load(object sender, EventArgs e) { PageOfficeCtrl1.ServerPage = Request.ApplicationPath + "/pageoffice/server.aspx"; PageOfficeCtrl1.SaveFilePage = "SaveNewFile.aspx"; PageOfficeCtrl1.AddCustomToolButton("保存", "Save()", 1); PageOfficeCtrl1.JsFunction_BeforeDocumentSaved = "BeforeDocumentSaved()"; //创建文件 PageOfficeCtrl1.WebCreateNew("somebody", PageOffice.DocumentVersion.Word2003);//可创建不同版本的word文件 }