易丰科技

标题: 取得档案详细的属性资料 [打印本页]

作者: Calvin    时间: 2011-10-1 09:34
标题: 取得档案详细的属性资料
使用 System.IO.FileInfo 只能取得档案部份的资料
比如像 word, excel 等,都还有其他的属性,要取得这些属性
可以参考使用
Microsoft Developer Support OLE File Property Reader 2.1 Sample (KB 224351)
下载位址:http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8422
原文介绍:
The Microsoft Developer Support OLE File Property Reader 2.1 Sample demonstrates how to use the IPropertyStrorage interface to read and write document properties of Microsoft Word, Microsoft Excel, Microsoft PowerPoint, and Microsoft Visio files, independent of the application that created the file. The sample includes a binary COM component and the component source code, which developers working in managed code (VB.NET or C#) or scripting languages (VBScript, JScript, ASP) can use to better enhance their ability to index, search, organize or edit the properties of Office files from custom projects.

The sample has been updated in version 2.1 to handle non-OLE files, such as the new Office 2007 file formats, if a custom property handler is available. This will allow users that have the Office 2007 Compatibility Pack to read/write document properties for Office 2007 files without actually having Office 2007 installed.


执行後的画面:







欢迎光临 易丰科技 (http://forum.yftek.com/) Powered by Discuz! X3