上传者: nndjay
|
上传时间: 2022-03-30 16:20:41
|
文件大小: 62KB
|
文件类型: -
DSOFile 修改文件文件摘要
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "regsvr32";
p.StartInfo.Arguments = "DSOFile.dll";
p.Start();
p.WaitForExit();
p.Close();
p.Dispose();
string path = @"C:\Documents and Settings\Administrator\桌面\Image\5-6-7-8.24.jpg";
DSOFile.OleDocumentProperties dso = new DSOFile.OleDocumentProperties();
dso.Open(path, false, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);
dso.SummaryProperties.Title = "This is the Title";
dso.SummaryProperties.Subject = "This is the Subject";
dso.SummaryProperties.Company = "RTDev";
dso.SummaryProperties.Author = "Ron T.";
dso.Save();