.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Advanced Basics: Set Word Document Properties Programmatically

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

At the beginning of another lovely day of writing courseware in mad pursuit of unrealistic deadlines, I received a frantic call from a business partner. He was at the end of a long consulting project and had several hundred Microsoft® Word documents, all of which required their document properties to be set identically, except the Title property of the document, which was to be based on the document file name, minus the .

Ken Getz

MSDN Magazine March 2006




View Complete Post


More Related Resource Links

Advanced Basics: Setting Word Document Properties the Office 2007 Way

  

The last time I wrote this column (March 2006), I shared an application that allows you to update all the Microsoft® Word documents in a folder and its subfolders. Each time the application finds a document in the specified path, it updates the document properties to match those you specified in the application.

Ken Getz

MSDN Magazine June 2006


Word 2010 Crashes When Editing Server or Document Properties

  
I don’t know if I’m doing something wrong or if this is a bug. We are using Metadata in our SharePoint 2010 implementation and I have linked this to the various document templates. If the template is a docx or dotx extension then, in a document library, going New Document and editing the Server or Document Properties causes Word to crash. Document templates based on .doc extensions work fine. Once the document has been created you can edit the properties but obviously this isn’t the best process. Does anyone have any advice on this? Thanks Neil

Search results doesn't show Word document Title Properties

  

The search result doesn't show the Word document's Title properties.

For example a Office 2007 Word document has Title properties as "Dell, Template (MN 520287) Test Method", the first word in the document is "Opearation".

The Search result shows the search result with the first word of the document as the search result as

Operation
The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (MN 520287) Test Method.docx

instead of

Dell, Template (MN 520287) Test Method
The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100) Test Method.docx 


Word 2007 properties not syncronizing with the SharePoint 2007 document library

  

Hi everyone.

Anyone ever had trouble with document properties that does not syncronize between a Word 2007 document and the SharePoint library where it is stored?

I have a SharePoint library, that contains two content types. When I upload a pdf file, and set the property values everything is perfect. When I create a Word document and set the Properties using the DIP, the values are stored in the Word document (I see them in the DIP, inside the word xml files and in the fileds in the document where they are displayed (using quickparts)), but not transfered to SharePoint when I save the document to the library.

If I upload a Word document to the library, I am able to choose content type and set all the property values. But when I open the document for editing, all the property values in the DIP are empty. The DIP do show the correct property fields for that content type.

After creating new libraries, content types and creating, transfering and uploading files all day, I have not been able to locate what is causing this issue.

My users have been using this library for several months and use the documents on a daily basis, and this problem just got raised. My users are feeling scared that they have to recreate their library or site (which will involve manually updating all the document properties ). I hope someone are able to

Charset Problem with dynamically generated Word Document

  

in my asp.net web application i am dynamically generating a word documnet out of a sql data. I have set the char set UTF-8 during the doument creation in code but still when i open the generated document and check it char set .. it is always windows-1252 not the one that i have set. My sql data in the document have special characters whihc can only be understandable using the UTF-8 charset otherwise its always ?T written in place of an apostrophy . Pasting my code here..

         HttpContext.Current.Response.Clear();
         HttpContext.Current.Response.ContentType = "application/msword";
         HttpContext.Current.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8;
         HttpContext.Current.Response.Charset = "utf-8";
         string strFileName = "Details" + ".doc";
        HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
        StringBuilder strHTMLContent = new StringBuilder();
        string strMessage = " ";
        DataView abstractview = (DataView)dsAbstract.Select(DataSourceSelectArguments.Empty);
        foreach (DataRowView row1 in abstractview)
        {
            strMessage += "<table border='1' cellspacing='0' cellpadding='5' width

How to insert Image (jpeg) into MS Word Programmatically using VB.NET

  

Hi there,

Can someone help me on How to insert Image (jpeg) into MS Word Programmatically using VB.NET..not C#.NET??? Sad

I could hardly find any articles for the coding. Preferably using Bookmark...can i have the sample code.

Thanks,

 


Embed word document inside excel

  

Hi,

I am using ASP.NET and C# 2.0 and working on web application.

I want to embed a word document inside a excel sheet.

How to embed word document inside excel.

Thank you

 

 


Advanced Basics: The ObservableCollection Class

  

Ken Getz shows how the CollectionChanged event lets you reflect changes to your underlying data source in your bound data controls.

Ken Getz

MSDN Magazine December 2008


Advanced Basics: The LINQ Enumerable Class, Part 2

  

This month Ken digs deeper into the System.Linq.Enumerable class and shows readers how to perform some magic data operations using System.Linq.Enumerable.

Ken Getz

MSDN Magazine September 2008


Advanced Basics: The LINQ Enumerable Class, Part 1.

  

Presented here is the LINQ Enumerable class, which allows you to manipulate data in any class that implements IEnumerable(Of T).

Ken Getz

MSDN Magazine July 2008


Advanced Basics: Office 2007 Files and LINQ

  

LINQ to XML and the Microsoft SDK for Open XML Formats simplify access to the parts of a 2007 Office system Open XML document when retrieving or modifying data, resulting in shorter, less complex code.

Ken Getz

MSDN Magazine March 2008


Advanced Basics: Reflection and Generics

  

This month Advanced Basics flaunts the power of generics and reflection and shows how you get more flexible and efficient development by combining the two.

Ken Getz

MSDN Magazine January 2008


Advanced Basics: Using RibbonX from Visual Basic

  

Ken Getz prepares Visual Basic developers to use RibbonX.

Ken Getz

MSDN Magazine June 2007


Advanced Basics: TableLayoutPanels

  

This month Ken Getz writes a demo-creation system for Windows-based applications, which he calls a switchboard.

Ken Getz

MSDN Magazine December 2006


Advanced Basics: Predicates and Actions

  

The System.Array and System.Collections.Generic.List classes provide methods that let you avoid writing code to loop through every element of an array or list to find the items you're looking for. Ken Getz explains.

Ken Getz

MSDN Magazine September 2006


Advanced Basics: Monitor Your Apps with System.Diagnostics

  

It never fails. The application you just deployed ran great on your development machine-but stumbles in production. The problem might show up right away or maybe it creeps up over time. Now what?

Brad McCabe

MSDN Magazine July 2006


Advanced Basics: IntelliSense Code Snippets

  

IntelliSense code snippets are one of the coolest new features in Visual Studio® 2005. Code snippets are highly customizable code fragments intended to accomplish simple to intermediate tasks quickly; they can be inserted into your code with just a few keystrokes.

Lorenzo Minore

MSDN Magazine April 2006


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend