DataSet dstMy = bizmian_m.YbhIsCz(txtWorkCode.Text);
                DataSet dstCb = ContdetailM.GetAllBizContDetailByWorkCodeDS(txtWorkCode.Text);
                DataSet dstOther = bom.GetAllDtOther(txtWorkCode.Text);
                //Server.MapPath("~/WordModel/" + newFileName);
                string ModelPath = HttpRuntime.AppDomainAppPath.ToString() + "\\Template\\东方集团提单确认.xls";
                //string ModelPath = Server.MapPath("~/Template/东方集团提单确认.xls");
                //string ModelPath = "..\\Template" + "\\" + "东方集团提单确认.xls";
                excel = new Microsoft.Office.Interop.Excel.Application();
                LoadMyExcel(excel, ModelPath);                WriteExcel(dstMy, dstCb, dstOther);
                string strMesType = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\";
                if (!System.IO.Directory.Exists(strMesType))
                {
                    try
                    {
                        System.IO.Directory.CreateDirectory(strMesType);
                    }
                    catch
                    {                    }
                }
在vs里面能导出。。但是把项目部署上去就 报错了 不知道是不是路径问题
求求救啊!