Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
how to display Document Property in a word document (the way it is displayed when done manually) using c#?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
shoeb sayyed
12y
887
1
Reply
I am trying to display the document properties using c#. I have tried the following code :
contentControl.Range.Text = (wordDoc.Application.ActiveDocument.CustomDocumentProperties as Office.DocumentProperties)[1].Name;
but this just gives me the text. I actually want to add the document property in a way similar to the one which looks like when we add a document property manually. (by clicking on Insert=>quick parts=>Document property=>'Author').
Please check the image attached
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
NamedPipesClientStream Read\Write in two distinct threads
mysql connection time out expired?