Lab3 finish
This commit is contained in:
parent
3ac908b925
commit
79e1bc2a5f
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user