New Comment on "How do I deliver an Excel file in ASP.NET?"
Hi Im new to closedxml can you any one help in adding custom header to excel along with the data from datatable
View ArticleNew Comment on "Pivot Table example"
I have the current situation, first of all a simplified class of my model: public class Visits { public string Status { get; set; } public string ProductLine { get; set; } public string VisitType {...
View ArticleNew Post: formatting currency and negatives
how do you format numbers as currency and also make it so that the negatives are shown in red with the ($1234.56) formatting?
View ArticleCreated Unassigned: Input string not in correct format when reading dates [9295]
I've run into an issue that I honestly can't figure out.I'm trying to read the data on the file attached, specifically, the two dates.I've tried all approaches, using GetDateTime(), GetValue(),...
View ArticleNew Post: How can I set tooltip for the cell? Is it possible?
Hello, there is nothing today about tooltips in the documentation. How did it evolved ? EDIT : My bad, I wanted to add a comment.https://closedxml.codeplex.com/discussions/244795
View ArticleNew Post: Validation of cell using fixed List of values
In Excel I can do something like this: In ClosedXML I did not find a way. I tried:workSheet.Cell(rowIndex, 1).DataValidation.InCellDropdown= true; workSheet.Cell(rowIndex,...
View ArticleNew Post: Copying range become very slow than copying with Microsoft Interop...
Hi, We have a requirement in our project where we are needed to generate reports in EXCEl with huge records. We mainly concentrate on visualization and speed of report generation. 1.Styling...
View ArticleNew Post: Adding images to worksheet
As a business requirement, we need to add logos to some of our worksheets. I have pulled down the code from SVN and added an interface to add new images without affecting existing ones. Is there...
View ArticleClosed Issue: Unable to cast object of type 'ClosedXML.Excel.XLFont' to type...
Hi all,###The BackgroundI'm in a bit of a high pressure situation (so sorry if I'm short in this message) and trying to figure out something with the ClosedXML library.We have an invoice processor that...
View ArticleCreated Unassigned: Certain "Equals(object obj)" methods cast without...
In some code we have (a Newtonsoft.JSON parsing that calls IndexOf, which calls into the Equals method of XLStyle), it currently fails because of the following code:```csharppublic override bool...
View ArticleNew Post: Using foreach to deal with Excel rows...
I have seen examples likevar wb = new XLWorkbook(Filename); var ws = wb.Worksheets.First(); var range = ws.RangeUsed(); foreach(var row in range.Rows()) { } The problem is there isn't such overload for...
View ArticleCreated Unassigned: Crashes on XLWorkbook workbook = new XLWorkbook(); [9314]
Hello all. Apparently the no-nonsense way to use ClosedXML doesn't have enough nonsense in it. I'm crashing on the very first command it should use!Attached is a picture of the error
View ArticleCommented Unassigned: Crashes on XLWorkbook workbook = new XLWorkbook(); [9314]
Hello all. Apparently the no-nonsense way to use ClosedXML doesn't have enough nonsense in it. I'm crashing on the very first command it should use!Attached is a picture of the errorComments: **...
View ArticleCommented Unassigned: Crashes on XLWorkbook workbook = new XLWorkbook(); [9314]
Hello all. Apparently the no-nonsense way to use ClosedXML doesn't have enough nonsense in it. I'm crashing on the very first command it should use!Attached is a picture of the errorComments: **...
View ArticleNew Post: Closing a ClosedXML generated Workbook.
Good morning, I have the following code: Private Sub Btn_export_Click() Handles Btn_export.Click Dim book As XLWorkbook = New XLWorkbook(XLEventTracking.Disabled) Dim table As System.Data.DataTable...
View ArticleNew Post: Using foreach to deal with Excel rows and skip the 1st row as header
You can indeed use Rows() function without any arguments. I tried it and it works There are 3 overloadsIXLRangeRows Rows(Func<IXLRangeRow, bool> predicate = null); // but this could be...
View ArticleNew Post: Using foreach to deal with Excel rows and skip the 1st row as header
Thanks for your reply.IXLRangeRows Rows(Func<IXLRangeRow, bool> predicate = null); // but this could be empty! It doesn't work in my case, I have tried to use Rows() without arguments but the...
View ArticleNew Post: Using foreach to deal with Excel rows and skip the 1st row as header
That example on InfoQ is really old. Check: https://closedxml.codeplex.com/wikipage?title=Using%20Tables&referringTitle=Documentationforeach (var row in table.DataRange.Rows()) // DataRange skips...
View ArticleCommented Unassigned: Crashes on XLWorkbook workbook = new XLWorkbook(); [9314]
Hello all. Apparently the no-nonsense way to use ClosedXML doesn't have enough nonsense in it. I'm crashing on the very first command it should use!Attached is a picture of the errorComments: **...
View ArticleNew Post: Closing a ClosedXML generated Workbook.
It should work as is because ClosedXML only locks the file when it reads or writes to it. First try getting rid of all those .Dispose(), they're not doing anything in your case. If that doesn't work...
View Article