Hi,
I want to work with excelqueryfactory to read data from excel and want to know how to work with this from scratch.
and what are the required assemblies to use this.
please suggest me.
Regards,
Balu Reddy k
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
BaluReddy KovvurPosted Nov 2, 2011, 9:07 AM
var book = new ExcelQueryFactory("C:/Documents and Settings/Desktop/details.xlsx");var test = from x in book.Worksheet()where x["Location"] == "Delhi"
select new{ Id = x["Id"],
Name = x["Name"],
Location = x["Location"]
};
GridView1.DataSource = test.ToString();
GridView1.DataBind();
iam using the above code but the output is wrong .
please suggest more options.
Regards,
Balu
Kunal NaikPosted Nov 2, 2011, 9:01 AM
Below example code shows how to retrieve from Excel using ExcelQueryFactory,