- Use document properties word 2010 how to#
- Use document properties word 2010 install#
- Use document properties word 2010 update#
- Use document properties word 2010 code#
- Use document properties word 2010 series#
There will be another blog post regarding the updates of custom properties soon.įirst of all we added the Event Receiver to our document library and enabled versioning, as well as content approval.
Use document properties word 2010 update#
The UpdateFieldsOnOpen Attribute forces an update message when the user updates the document. When opening a word document in your client application custom properties need to be refreshed manually by the user.
Use document properties word 2010 code#
Use document properties word 2010 how to#
This exercise will not in depth explain on how to build and assign a SharePoint library event receiver so let us assume that there is already a receiver in place and it reacts on the library updated event.
Use document properties word 2010 install#
Please ensure that you install the SDK and the library is placed inside the Global Assembly Cache or is part of your SharePoint WSP package definition. Open XML SDKĭepending on the SharePoint Version you use, please download the appropriate Open XML SDK’s.
The document should provide us with information about the approver and publisher of our document, as well as the approval and publishing date times. The goal of this exercise would be to display document audit information inside our word document, as this information is not part auf Office/SharePoint quickpart integration. docx document using the Open XML SDK and SharePoint 2010/2013.įirst we should define a target. With this post I would like to give you a practical example on how to generate your own custom properties for a. You can find another related post about metadata Connections using default quickparts here: Connecting SP Metadata to Office
Use document properties word 2010 series#
Object Authorprop = typeDocBuiltInProps.InvokeMember( "Item", BindingFlags.Default| BindingFlags.GetProperty, null, _BuiltInProperties, new object ).This is the first part of an upcoming post series that should contain some tipps and tricks about embedding SharePoint Content in Office documents. Type typeDocBuiltInProps = _BuiltInProperties.GetType() Object _BuiltInProperties = docWord.BuiltInDocumentProperties Use the Documents.open() method for opening the Word document and use the BuiltInDocumentProperties property for retrieving it's inbuilt advanced properties.ĭocWord = ( ref Filename, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing) Document() ĭocWord.Close( ref missing, ref missing, ref missing) Initialize thbe Word application class and Word document objects OpenFileDialog dlg = new OpenFileDialog() ĭlg.Filter = "Word document |*.doc *.docx" Write code on the browse button click eventĬreate OpenFileDialog object and set the filter for Word documents. So let's start with taking a windows form and design like above. In this article we will read and set these properties and will learn how to make custom properties of any Word document. You can see or set the document properties by opening Advance Document properties section just like if you are working with Word 2010 you will see this like: Every Word document has some inbuilt properties and custom properties such as Title, subject, category, Author, comments etc. In this article we will discuss how to read a document's properties of any Word document in C#.