惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

博客园 - KXLF

SharePoint 事件 2137 / 2138 :SharePoint 运行状况分析器检测到错误。驱动器的可用空间不足。 SharePoint 事件 7363:对象缓存:缓存使用的超级读者帐户没有足够的权限访问SharePoint数据库。 [转] geochart 地图控件官方示例 Outlook 2007 同步到本地的SharePoint文档库,点击不同文件夹时,总是弹出登陆框 [转]Publishing files stored in the file system through external list(使用bcs映射文件系统) SPContext.Current.Web.CurrentUser 为 null [转]Use PowerShell to Manage Lists, Views, and Items in SharePoint(使用PowerShell管理列表、视图、列表项) 连接TFS服务器记住密码。 [转]Login over HTTPS from HTTP pages(使用https登陆) [转]How to Handle Long PowerShell Statements(在PowerShell中使用多行模式) [转]How to use String.Format in PowerShell?(如何在PowerShell中使用string.format?) 推荐一个电子书网站,里面关于SharePoint的英文书籍有很多。 SharePoint 2010 术语表 [转]SharePoint 2010: Client Object Model for JavaScript (ECMAScript)(使用客户端对象模型) [转]Importing documents to Document Libraries with Mavention Import Document Library Contents(使用VS插件导出文档库内容定义) [转]Import List Instances and their data with Mavention Import List Instance(使用VS插件导出列表数据定义) [转]Content targeting for anonymous users with SharePoint Server 2010(给匿名用户配置外部配置文件) [转]Allowing anonymous users access to SharePoint user's profile pictures(允许匿名用户访问用户配置文件中的头像图片) [转][MS-MAVA]: Microsoft Office SharePoint Server (MOSS) Analytics View Access Protocol Specification
[转]how to programatically access built-in properties of open xml word doc(如何读取open xml格式文档属性)
KXLF · 2011-11-02 · via 博客园 - KXLF

 WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(filePath, true);

            Body body = wordprocessingDocument.MainDocumentPart.Document.Body;

            String message = string.Empty;

            ExtendedFilePropertiesPart appPart = wordprocessingDocument.ExtendedFilePropertiesPart;

            Manager = appPart.Properties.Manager.InnerText;

            if (Manager != null)

                message = "Manager : " + Manager + "\n";

            //Access company property

            Company = appPart.Properties.Company.Text;

            if (Company != null)

                message += "Company : " + Company + "\n";

            CoreFilePropertiesPart corePart = wordprocessingDocument.CoreFilePropertiesPart;

            XmlDocument xmlProperties = new XmlDocument();

            xmlProperties.Load(corePart.GetStream());

            //Access Title property

            Title = xmlProperties.GetElementsByTagName("title",DC).Item(0).InnerText;

            if (Title != null)

                message += "Title : " + Title + "\n";

            //Access Subject property

            Subject = xmlProperties.GetElementsByTagName("subject", DC).Item(0).InnerText;

            if (Subject != null)

                message += "Subject : " + Subject + "\n";

            //Access Author property

            Author = xmlProperties.GetElementsByTagName("creator", DC).Item(0).InnerText;

            if (Author != null)

                message += "Author : " + Author + "\n";

            //Access Keywords property

            KeyWords = xmlProperties.GetElementsByTagName("keywords", CP).Item(0).InnerText;

            if (KeyWords != null)

                message += "KeyWords : " + KeyWords + "\n";

            //Access Comments property

            Comments = xmlProperties.GetElementsByTagName("description", DC).Item(0).InnerText;

            if (Comments != null)

                message += "Comments : " + Comments + "\n";

            //Access Category property

            Category = xmlProperties.GetElementsByTagName("category", CP).Item(0).InnerText;

            if (Category != null)

                message += "Category : " + Category + "\n";

            MessageBox.Show(message, "Built-In Properties", MessageBoxButtons.OK, MessageBoxIcon.Information);

            wordprocessingDocument.Close();