System.IO.Packaging using (Package package = Package.Open(packagePath, FileMode.Open,FileAccess.ReadWrite)) { Uri uriPartTarget = new Uri( /word/styles1.xml , UriKind.Relative); PackagePart newPackagePart = package.CreatePart(uriPartTarget, application/vnd.ms-word.styles+xml ); using (FileStream fileStream = new FileStream(stylePath, FileMode.Open, FileAccess.Read)) { CopyStream(fileStream, newPackagePart.GetStream()); } } 1.
{}