如何使用asp.net,c#将pdf文件保存在Visual Studio2010的本地文件夹中
问题描述:
尊敬的先生,
如何使用asp.net,c#将pdf文件保存在我的Visual Studio本地文件夹中?
当我转换pdf文件时,它将存储我的本地文件夹和
访问该文件以发送电子邮件.
如果有人知道,请发送详细信息.
通过mohan.
Dear sir,
how to save pdf file in my local folder of visual studio using asp.net,c#?
When i am converting pdf file it will stored my local folder and
access this file to email purpose.
If anyone known please sent details.
By mohan.
答
,您需要使用Sever.mappath
you need to use Sever.mappath
string a = HttpContext.Current.Server.MapPath("~/App_Data/Example.pdf");
您需要在此路径中保存PDF.然后,您可以使用相同的路径附加PDF.然后您可以将其删除.
you need save a PDF in this path. Then you can attach the PDF using same path. Then u can delete it.