I am reading an excel file but not all the files have the same column headers but the column order are always the same. I want to read the excel file using linq but not specifying specific column names but could i use just columns based on their…
I'm reading input from two excel worksheets (using Linq-To-Excel) into two lists. One of the worksheets has an unwanted column of data (column name is known). The other columns in both worksheets however contain exactly the same type of data.
First…
I am trying to pull distinct values from an Excel Worksheet using the LinqToExcel library.
I keep getting an error
"{"Syntax error (missing operator) in query expression '(MOD)'."}"
I have tried everything and can't seem to pull the distinct…
Basically what I need is the contents of an excel file (non blank cells) copied in a structure like IEnumerable> contents;
The first IEnumerable would be for rows and the second one for columns.
What I've already got working is…
I am using LinqToExcel to import large Excel data sheet into SQL Server database table Employees2. I am using EF4. The Date field in Excel (DOB and many other) is in "MMddyyyy" format. I have many fields in Excel, I just show 1 mapping here.
var…
I've been struggling with this for a few days now and I'm stumped. I'm hoping that someone can provide an alternate suggestion.
Basically, I'm reading data from excel using LinqToExcel. But I want to exclude all rows with a "Rating" of "NR". …
I am using LinqToExcel to extract all rows to a list, but in this case i dont want any empty rows. I have searched for any solution here in stack but with no success to my problem.
var excelSheetLst = excel.Worksheet(sheetName).Where(s =>…
I am trying to use linq_to_excel
http://www.softinterface.com/DL/DL_UserData_Proc.ASP
This is my code:
var data = new LinqToExcel.ExcelQueryFactory();
data.FileName= @"FRM_DTA.xlsx";
data.AddMapping(x =>…
I calculate a value out of 3 values to make a selection from a list:
var applicable = from b in discounts.ToList() where
(b["Interest Rate"].Cast() +
(-b["Discount/Premium"].Cast()) +
…