public ReportPrinter(NPOIPrinter.Company company, DateTime dTP5, DateTime dTP6) { this.company = company; this.dTP5 = dTP5; this.dTP6 = dTP6; report1 = new NPOIPrinter(company); //создадим объект книги для постройки отчета, пока без имени листа }
public void test() { List <Cell> Header = new List <Cell>(); List <Cell> Table = new List <Cell>(); Header.Add(new Cell("№ п/п", Cell.Style.bold)); Header.Add(new Cell("Наименование организации ", Cell.Style.bold)); Cell cell = new Cell(); cell.Value = "123123"; NPOIPrinter report1 = new NPOIPrinter(); report1.NameTable("Перечень арендаторов АО \"Компания Импульс\", "); report1.HeadTable(Header); Table.Add(cell); Table.Add(cell); report1.BodyTable(Table); }
public void newWorkBook() { report1 = new NPOIPrinter(company, fileNameExcel); }