using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class CreateWord_OpenWord : System.Web.UI.Page
{
    string fileName = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        fileName = Request.QueryString["fileName"].Trim();
        Literal_Subject.Text = Request.QueryString["subject"];
    }

    protected void PageOfficeCtrl1_Load(object sender, EventArgs e)
    {
        PageOfficeCtrl1.ServerPage = Request.ApplicationPath + "/pageoffice/server.aspx";
        PageOfficeCtrl1.SaveFilePage = "SaveFile.aspx";
        PageOfficeCtrl1.AddCustomToolButton("保存", "Save", 1);
        PageOfficeCtrl1.WebOpen(Server.MapPath("doc/") + fileName, PageOffice.OpenModeType.docNormalEdit, "somebody");
    }
}
