Lab3 finish

This commit is contained in:
grishazagidulin 2024-12-16 16:08:17 +04:00
parent 3ac908b925
commit 79e1bc2a5f
2 changed files with 5 additions and 4 deletions

View File

@ -31,17 +31,17 @@ internal class DocReport
if (includeMaster)
{
builder.AddParagraph("Мастера")
builder.AddHeader("Мастера")
.AddTable([2400, 2400, 1200, 2400], GetMasters());
}
if (includeMaterial)
{
builder.AddParagraph("Материалы")
builder.AddHeader("Материалы")
.AddTable([2400, 1200, 1200], GetMaterials());
}
if (includeProduct)
{
builder.AddParagraph("Изделия")
builder.AddHeader("Изделия")
.AddTable([2400, 1200, 1200, 2400], GetProducts());
}
builder.Build();

View File

@ -27,7 +27,8 @@ internal class WordBuilder
{
var paragraph = _body.AppendChild(new Paragraph());
var run = paragraph.AppendChild(new Run());
//TODO прописать настройки под жирный текст
var runProperties = run.AppendChild(new RunProperties());
runProperties.AppendChild(new Bold());
run.AppendChild(new Text(header));
return this;
}