Сдана лаб4

This commit is contained in:
Данила Мочалов 2023-03-13 09:52:00 +04:00
parent 18a556781a
commit 65daaa324b

View File

@ -22,16 +22,14 @@ namespace LawFirmBusinessLogic.OfficePackage.Implements
var fonts = new Fonts() { Count = 2U, KnownFonts = true }; var fonts = new Fonts() { Count = 2U, KnownFonts = true };
var fontUsual = new Font(); var fontUsual = new Font();
fontUsual.Append(new FontSize() { Val = 12D }); fontUsual.Append(new FontSize() { Val = 12D });
fontUsual.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color() fontUsual.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color(){ Theme = 1U });
{ Theme = 1U });
fontUsual.Append(new FontName() { Val = "Times New Roman" }); fontUsual.Append(new FontName() { Val = "Times New Roman" });
fontUsual.Append(new FontFamilyNumbering() { Val = 2 }); fontUsual.Append(new FontFamilyNumbering() { Val = 2 });
fontUsual.Append(new FontScheme() { Val = FontSchemeValues.Minor }); fontUsual.Append(new FontScheme() { Val = FontSchemeValues.Minor });
var fontTitle = new Font(); var fontTitle = new Font();
fontTitle.Append(new Bold()); fontTitle.Append(new Bold());
fontTitle.Append(new FontSize() { Val = 14D }); fontTitle.Append(new FontSize() { Val = 14D });
fontTitle.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color() fontTitle.Append(new DocumentFormat.OpenXml.Office2010.Excel.Color(){ Theme = 1U });
{ Theme = 1U });
fontTitle.Append(new FontName() { Val = "Times New Roman" }); fontTitle.Append(new FontName() { Val = "Times New Roman" });
fontTitle.Append(new FontFamilyNumbering() { Val = 2 }); fontTitle.Append(new FontFamilyNumbering() { Val = 2 });
fontTitle.Append(new FontScheme() { Val = FontSchemeValues.Minor }); fontTitle.Append(new FontScheme() { Val = FontSchemeValues.Minor });
@ -125,15 +123,15 @@ namespace LawFirmBusinessLogic.OfficePackage.Implements
}; };
cellFormats.Append(cellFormatFont); cellFormats.Append(cellFormatFont);
cellFormats.Append(cellFormatFontAndBorder); 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() cellStyles.Append(new CellStyle()
{ {
Name = "Normal", Name = "Normal",
FormatId = 0U, FormatId = 0U,
BuiltinId = 0U BuiltinId = 0U
}); });
var differentialFormats = new DocumentFormat.OpenXml.Office2013.Excel.DifferentialFormats() var differentialFormats = new DocumentFormat.OpenXml.Office2013.Excel.DifferentialFormats(){ Count = 0U };
{ Count = 0U };
var tableStyles = new TableStyles() var tableStyles = new TableStyles()
{ {