void IPersistable.Save(ExcelSaveContext context) { if (this._Theme != null) { PackagePart themePart = context.Package.CreatePart(ExcelCommon.Uri_Theme, ExcelCommon.ContentType_Theme, this._WorkBook.Compression); context.Package.GetPart(ExcelCommon.Uri_Workbook).CreateRelationship(PackUriHelper.GetRelativeUri(ExcelCommon.Uri_Workbook, ExcelCommon.Uri_Theme), TargetMode.Internal, ExcelCommon.Schema_Relationships + "/theme"); using (StreamWriter streamCore = new StreamWriter(themePart.GetStream(FileMode.Create, FileAccess.Write))) { this._Theme.Save(streamCore); } /* using (XmlTextWriter writer = new XmlTextWriter(themePart.GetStream(FileMode.Create, FileAccess.Write), Encoding.UTF8)) { context.Writer.WriteTheme(this, writer); } */ } //PackagePart themePart = context.Package.GetPart(ExcelCommon.Uri_Workbook).CreatePart(ExcelCommon.Uri_Theme, ExcelCommon.ContentType_Theme, this._WorkBook.Compression); //using (XmlTextWriter writer = new XmlTextWriter(themePart.GetStream(FileMode.Create, FileAccess.Write), Encoding.UTF8)) //{ // context.Writer.WriteTheme(this, writer); //} }
void IPersistable.Save(ExcelSaveContext context) { context.LinqWriter.WriteStyles(this); }
void IPersistable.Save(ExcelSaveContext context) { context.LinqWriter.WriteCore(); context.LinqWriter.WriteApp(); if (this._XmlPropertiesCustom != null) { context.LinqWriter.WriteCustom(); } }
void IPersistable.Save(ExcelSaveContext context) { context.LinqWriter.WriteComments(this); context.LinqWriter.WriteCommentsVmlDrawing(this); }