Exporting the values in List to excel

后端 未结 12 1445
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 18:36

Hi I am having a list container which contains the list of values. I wish to export the list values directly to Excel. Is there any way to do it directly?

12条回答
  •  鱼传尺愫
    2020-12-05 19:25

    List<"classname"> getreport = cs.getcompletionreport(); 
    
    var getreported = getreport.Select(c => new { demographic = c.rName);   
    

    where cs.getcompletionreport() reference class file is Business Layer for App
    I hope this helps.

提交回复
热议问题