How can I read password protected Excel workbook using ExcelQueryFactory?
I am able to read the excel when it is not password protected using the code below.
var excel = new ExcelQueryFactory();
excel.FileName = "path of excel file";
But when the…
I noticed something interesting when trying to use the library LinqToExcel.
var factory = new ExcelQueryFactory(@"TestData\myFile.xlsx");
var model = categoryHandler.GetCategoryTree(factory.Worksheet("WorkSheetName").ToList());
I use the…
I have a spreadsheet that has about 500 columns. When I execute the linq query below, it only returns 255 columns. Is that a limitation on ExcelQueryFactory? Could it be an issue with my spreadsheet?
var book = new…
I have noticed the following when working with linq-to-excel:
I'm trying to import rooms from a spreadsheet.
I have a simple class
public class Room
{
public int BuildingID { get; set; }
public string RoomNumber { get; set; }
…
I am trying to pull an entire row of values off of an excel file using linq to excel. I have all of the column names (there's 104 different ones) and now I just need to get the one row of values associated with each header. What I would like to do…
I use LinqToExcel in my applications but cannot figure the best way to dynamically set the end range when reading data. We currently use an arbitrarily large value e.g. 30000 but this only ok when I'm sure the range won't exceed a certain…
I am using LinqPad in conjunction with Linq2Excel to do my own data analysis on an Excel spreadsheet (written and owned by others). These other people use a lot of cell formatting to represent data. For example, a grey background cell means "not…
I am using C# LinqToExcel to upload data from a spreadsheet to the database. I have noticed when the file is open it is able to retrieve the data from the spreadsheet. However if it is not open on my machine I get this error:
base…
I have an XLSX spreadsheet that I am trying to import into a IList(of FinancialResults) collection using VB.NET.
The spreadsheet is in the below format where I need to map the cells from the appropriate columns into a…
I am using LinqToExcel to map Excel rows to objects in a C# / .NET project.
I put validation code in my transformation functions so that they do not only transform the data but also warn the user when there is some data…
I am using LinqToExcel in my web application for getting WorksheetNames and columnnames, now i want to show some datas in gridview.Is there any method to create a DataSet using LinqToExcel.
I am reading Excel file using LinqToExcel:
var Excel = new ExcelQueryFactory(Filename);
Excel.databaseEngine = DatabaseEngine.Ace;
Excel.strictMapping = true;
I want to exclude certain columns, to prevent the strict mapping feature from throwing…
Sometimes when running the code below it results in the error IErrorInfo.GetDescription failed with E_FAIL(0x80004005) from the call to excelFile.WorksheetNoHeader(0).
It doesn't seem to depend on the excel file, one file can be readable one time…
I am using LinqToExcel in my .net framework project to read some excel files.
Sometimes I receive a file with a date error, and when I try to convert my ExcelQueryable to a list of rows using excel.Worksheet(worksheetName).ToList(); or foreach (var…
I am using this code to retrieve the receipient name and receipient number but the recpt.receipient_name and recpt.receipient_number are null.
The excel table is of this format
Name Number
andrew 1223
james 12223
dave …