如何使用asp.net,c#将pdf文件保存在Visual Studio2010的本地文件夹中 [英] how to save pdf file in my local folder of visual studio2010 using asp.net,c#

查看:131
本文介绍了如何使用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.


这篇关于如何使用asp.net,c#将pdf文件保存在Visual Studio2010的本地文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆