From 65daaa324ba67023663e0dd6f95832f0f6951ecd Mon Sep 17 00:00:00 2001 From: Danila_Mochalov Date: Mon, 13 Mar 2023 09:52:00 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B0=D0=BD=D0=B0=20=D0=BB=D0=B0?= =?UTF-8?q?=D0=B14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OfficePackage/Implements/SaveToExcel.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/LawFirm/LawFirmBusinessLogic/OfficePackage/Implements/SaveToExcel.cs b/LawFirm/LawFirmBusinessLogic/OfficePackage/Implements/SaveToExcel.cs index 8939900..f6088a9 100644 --- a/LawFirm/LawFirmBusinessLogic/OfficePackage/Implements/SaveToExcel.cs +++ b/LawFirm/LawFirmBusinessLogic/OfficePackage/Implements/SaveToExcel.cs @@ -22,16 +22,14 @@ namespace LawFirmBusinessLogic.OfficePackage.Implements var fonts = new Fonts() { Count = 2U, KnownFonts = true }; var fontUsual = new Font(); fontUsual.Append(new FontSize() { Val = 12D }); - fontUsual.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color() - { Theme = 1U }); + fontUsual.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color(){ Theme = 1U }); fontUsual.Append(new FontName() { Val = "Times New Roman" }); fontUsual.Append(new FontFamilyNumbering() { Val = 2 }); fontUsual.Append(new FontScheme() { Val = FontSchemeValues.Minor }); var fontTitle = new Font(); fontTitle.Append(new Bold()); fontTitle.Append(new FontSize() { Val = 14D }); - fontTitle.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color() - { Theme = 1U }); + fontTitle.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color(){ Theme = 1U }); fontTitle.Append(new FontName() { Val = "Times New Roman" }); fontTitle.Append(new FontFamilyNumbering() { Val = 2 }); fontTitle.Append(new FontScheme() { Val = FontSchemeValues.Minor }); @@ -125,15 +123,15 @@ namespace LawFirmBusinessLogic.OfficePackage.Implements }; cellFormats.Append(cellFormatFont); cellFormats.Append(cellFormatFontAndBorder); - cellFormats.Append(cellFormatTitle); var cellStyles = new CellStyles() { Count = 1U }; + cellFormats.Append(cellFormatTitle); + var cellStyles = new CellStyles() { Count = 1U }; cellStyles.Append(new CellStyle() { Name = "Normal", FormatId = 0U, BuiltinId = 0U }); - var differentialFormats = new DocumentFormat.OpenXml.Office2013.Excel.DifferentialFormats() - { Count = 0U }; + var differentialFormats = new DocumentFormat.OpenXml.Office2013.Excel.DifferentialFormats(){ Count = 0U }; var tableStyles = new TableStyles() {