Ejemplo n.º 1
0
 public void ExportTestUseTemplate()
 {
     try
     {
         SpreadsheetUtility <Test> su = new SpreadsheetUtility <Test>(Test.GetDatas());
         su.TemplateFile            = @"D:\GithubRep\OpenXml\OpenXml.Utils\test\OpenXml.UtilsTests\TestFile\PlanSapDataT.xlsx";
         su.TemplateRowIndexContent = 1;
         su.GenerateTableHead       = false;
         su.TemplateUseLastRowStyle = true;
         su.Export("tt.xlsx");
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }
Ejemplo n.º 2
0
        public void ExportTest()
        {
            SpreadsheetUtility <Test> su = new SpreadsheetUtility <Test>(Test.GetDatas());

            su.Export("cc.xlsx");
        }