asp.net C# 文件摘要改变
一、下载 Dsofile.dll
二、引用Dsofile.dll库
三、asp.net C#代码
using DSOFile;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
HttpPostedFile hpf = Request.Files["photo-path2"];
HttpPostedFile FPhpf = Request.Files["photo-path1"];
string a = hpf.FileName.ToString();
OleDocumentPropertiesClass cfile = new OleDocumentPropertiesClass();
cfile.Open(a, false, dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);
string aut = cfile.SummaryProperties.Title;
cfile.SummaryProperties.Title = "bbbbbbbbbbbbbb";
string aut1 = cfile.SummaryProperties.Title;
cfile.Save();
cfile.Close(false );
}
}