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?
Using the CSV idea, if it's just a list of Strings. Assuming l is your list:
l
using System.IO; using(StreamWriter sw = File.CreateText("list.csv")) { for(int i = 0; i < l.Count; i++) { sw.WriteLine(l[i]); } }