Exemple #1
0
        public void Test()
        {
            var customReport = new CustomExcelTemplateReport();
            var info         = new CustomExcelTemplateReportInfo();

            info.Header           = new CustomExcelHeaderTemplate();
            info.Header.BeginDate = DateTime.Now.StartOfMonth().ToShortDateString();
            info.Header.EndDate   = DateTime.Now.ToShortDateString();

            info.Rows = new List <CustomExcelRowTemplate>();
            var row = new CustomExcelRowTemplate();

            row.GroupName = "Test";
            info.Rows.Add(row);

            customReport.Export(info);

            customReport.SaveReport("Test.xlsx");
        }
Exemple #2
0
        public void GetTemplateTest()
        {
            var customReport = new CustomExcelTemplateReport();

            Assert.NotNull(customReport.ExcelTempReport);
        }