using (WordprocessingDocument objWordDocument = WordprocessingDocument.Create(@"C:\******.docx", WordprocessingDocumentType.Document))
{
MainDocumentPart objMainDocumentPart = objWordDocument.AddMainDocumentPart();
Document objDocument = new Document() ;
Body objBody = new Body();
objDocument.Append(objBody);
objMainDocumentPart.Document = objDocument;
DocumentSettingsPart objDocumentSettingPart = objMainDocumentPart.AddNewPart<DocumentSettingsPart>();
objDocumentSettingPart.Settings = new Settings();
Compatibility objCompatibility = new Compatibility();
CompatibilitySetting objCompatibilitySetting = new CompatibilitySetting() { Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "14" };
objCompatibility.Append(objCompatibilitySetting);
objDocumentSettingPart.Settings.Append(objCompatibility);
}