读书人

访问服务起路径有关问题

发布时间: 2013-04-02 12:35:26 作者: rapoo

访问服务起路径问题
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>

读书人网 >asp.net

热点推荐