dsoframer 上传的Word文件怎么解析保存在服务上?    dsoframer.HttpInit
    dsoframer.HttpAddPostFile "FileId", "c:\ee.doc"
    dsoframer.HttpPost "http://localhost/HyJy/Frame.aspx?Id=999&ftype=.Doc"服务器接收到上述方法提交的文件,服务端怎么解析保存?

解决方案 »

  1.   

    webOFFICE?
    应该跟保存文件一样吧。
      

  2.   

    在Frame.aspx增加代码
    private void Page_Load(object sender, System.EventArgs e)
        {
            //   在此处放置用户代码以初始化页面   
            
            string strFileName = Request.Params["Id"];
            string strFileType = Request.Params["ftype"];        if (strFileName == null)
            {
                return;
            }        if (Request.Files.Count == 0)
            {
                Response.Write("No File");
                Response.End();
            }        if (Request.Files[0].ContentLength == 0)
            {
                Response.Write("File Error");
                Response.End();
            }        //定义保存文件的物理路径 
            string strTmpPath = System.IO.Path.GetDirectoryName(Page.Request.PhysicalPath);        //定义保存文件的服务器路径 
            string strUpLoadFilePath = strTmpPath + @"\doc\";        string fullFileName = strUpLoadFilePath + strFileName + "." + strFileType;        Request.Files[0].SaveAs(fullFileName);
            Response.Write("OK");
            Response.End();     }
      

  3.   

    这里有完整的代码http://blog.csdn.net/qianym1211/article/details/7074685