static void Main(string[] args) { string strFilePath = @"C:\Users\97901\Project\Audi\Stab&Perf\test.xlsx"; Startup st = new Startup(); dynamic xlsx = new excel(); xlsx.filename = strFilePath; xlsx.sheets = new List <sheet>(); dynamic sheet1 = new sheet("stab"); dynamic sheet2 = new sheet("perf"); dynamic cell1 = new cell(1, 1, "1", ""); dynamic cell2 = new cell(1, 2, "2", ""); dynamic chart1 = new chart("test", "3D", ""); sheet1.content.Add(cell1); sheet1.content.Add(cell2); sheet2.content.Add(chart1); xlsx.sheets.Add(sheet1); xlsx.sheets.Add(sheet2); dynamic dynXlsx = xlsx; st.GenerateReoprtAsync(dynXlsx); }
static void Main(string[] args) { Startup st = new Startup(); dynobj dj = new dynobj(); st.GenerateReoprtAsync("C:\\Users\\97901\\Project\\ZD Data Logger\\test1.xlsx"); }