SinYee Foo

SinYee Foo

  • NA
  • 12
  • 43.2k

VSTO 2010: Write data into Excel file

Jan 10 2013 10:40 PM
Hi, I am newbie for VSTO 2010. Now i am trying to generate the excel file with data from Sqlserver . I am using Linq to write the query...but, I stuck on that...
Please can anyone help me...?

this my code:

  Excel.Worksheet DemoWorkSheet = Globals.ThisWorkbook.Application.ActiveSheet as Excel.Worksheet;
            DemoVSTODataContext demo = new DemoVSTODataContext();
            var login = from emplist in demo.Logins
                          select emplist;

so now..how i continue my coding...?
Thanks for helping...

Answers (1)