Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------Proforma Lista towarów-----------//
- //tworzenie tabeli
- //border
- TableBorderModel tbm = new TableBorderModel
- {
- StyleName = "Test",
- BorderColor = MigraDoc.DocumentObjectModel.Colors.Black,
- BorderWidth = 0.2
- };
- //definicja kolumn
- TableColumnsModel tcm = new TableColumnsModel();
- var columns = new ListWithDuplicates();
- columns.Add("50", "center");
- columns.Add("200", "center");
- columns.Add("65", "center");
- columns.Add("55", "center");
- columns.Add("100", "center");
- columns.Add("65", "center");
- tcm.addColumns(columns);
- var table = new GenericTable(tcm, tbm);
- table.addHeader(
- new string[] { "Lp.", "Nazwa towaru/usługi", "Netto", "VAT", "Wartość VAT", "Brutto" },
- new string[] { "center", "center", "center", "center", "center", "center" }
- , Colors.LightSkyBlue);
- table.addContent(
- new string[,] {
- { "1", "Zasilenie stanu konta w serwisie", "30.00 PLN", "23 %", "6.90 PLN", "36.90 PLN" }
- },
- new string[,]
- {
- { "Verdana", "Verdana", "Verdana", "Verdana", "Verdana", "Verdana",}
- },
- new Color [] { Colors.AliceBlue }
- );
- ph.Add(table);
- //---------------koniec listy produktów--------------/
- //----------------Proforma Podsumowanie----------------//
- tcm = new TableColumnsModel();
- columns = new ListWithDuplicates();
- columns.Add("90", "center");
- columns.Add("65", "center");
- columns.Add("65", "center");
- columns.Add("70", "center");
- tcm.addColumns(columns);
- table = new GenericTable(tcm, tbm, 0, 0, 260, "right");
- table.addHeader(
- new string[] { "Według stawki VAT", "Netto", "Wartość", "Podsumowanie" },
- new string[] { "center", "center", "center", "center"}
- , Colors.LightSkyBlue);
- table.addContent(
- new string[,] {
- { "23 %", "30.00 PLN", "6.90 PLN", "36.90 PLN" },
- { "Do zapłaty", "30.00 PLN", "6.90 PLN", "36.90 PLN" }
- },
- new string[,]
- {
- { "Verdana", "Verdana", "Verdana", "Verdana"},
- { "Verdana", "Verdana", "Verdana", "Verdana"}
- },
- new Color[] { Colors.AliceBlue, Colors.AliceBlue }
- );
- ph.Add(table);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement