首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

访问服务起路径有关问题

2013-04-02 
访问服务起路径问题DataSet dstMy bizmian_m.YbhIsCz(txtWorkCode.Text)DataSet dstCb ContdetailM.G

访问服务起路径问题
    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里面能导出。。但是把项目部署上去就 报错了 不知道是不是路径问题
求求救啊!
没有啊  就这个东西啊 

那看看<asp>

热点排行