New Post: Inject macros
You can't add macros but you can open a template file with the macros already there, add your data, and then save.
View ArticleCreated Unassigned: Excel workbook corrupt after saving [9429]
I have an xlsx workbook that is used as a template. Through a ridiculous amount of coding, I have built a library using OpenXML that _almost_ preserves all formatting of the original file after...
View ArticleNew Post: Error in implicit conversion. Cannot convert null object.
Line 26: // XLWorkbook workbook = new XLWorkbook(@"C:\VK\SampleSite\EXCELChnage\EXCELChnage\GCP_01 Report Output Apr 2.xlsx"); Line 27: // ExcelBeforeFormat(path, 3); Line 28: XLWorkbook workbook = new...
View ArticleCommented Unassigned: While Writing to Excel file its throwing an error "'.',...
Hi All,While Writing to Excel File using the ClosedXML facing an issue. Above is the error mentioned into caption which I am getting.Have attached the Excel File which I am trying to Write by passing...
View ArticleNew Comment on "Turning off events"
I've had a similar experience to S1 - the business had been complaining about the speed to generate certain excel files (They have over 2 million rows, it going to be slow.) . Turning off events...
View ArticleNew Post: Unexpected data conversion
I found that some pattern of text is converted unexpectedly. Why this happens ? This is sample code. var wb = new XLWorkbook(); var ws = wb.Worksheets.Add("New sheet"); ws.Cell(1, 1).Value =...
View ArticleNew Post: Error in implicit conversion. Cannot convert null object.
I get the same error when opening a excel file, any help please??? XLWorkbook workbook = new XLWorkbook(@"C:\code\atr.xlsx");
View ArticleNew Post: Ability to add an IgnoredError?
Is there any way in ClosedXML to bypass cell errors, such as numbers stored as text? In OpenXML, it's accomplished as follows:var ignoredError = new IgnoredError { SequenceOfReferences = new...
View ArticleCreated Unassigned: Cannot use with .Net 4 [9430]
Hi, I've been trying to use ClosedXML with .NET4, I've installed the proper installation (tried a few versions),downloaded the DocumentFormat.OpenXml.dll file for 4 (And for 3.5), and also tried using...
View ArticleNew Post: Getting conditional formatting from an existing cell
Is it possible to get the conditional formatting for an existing cell. I can see that you can add it with AddConditionalFormatting method, but cannot see a way to pull it if it already exists. In my...
View ArticleCommented Unassigned: Cannot use with .Net 4 [9430]
Hi, I've been trying to use ClosedXML with .NET4, I've installed the proper installation (tried a few versions),downloaded the DocumentFormat.OpenXml.dll file for 4 (And for 3.5), and also tried using...
View ArticleNew Post: Getting conditional formatting from an existing cell
I haven't done this myself. However, since conditional formatting is stored at the sheet level, try the IXLWorksheet.ConditionalFormats read-only property. Each IXLConditionalFormat in that...
View ArticleNew Post: Getting conditional formatting from an existing cell
That does seem to work for getting the existing conditional formatting, thank you. Unfortunately once I retrieve it, there does not seem to be a way to assign it to a new cell. Am I missing something...
View ArticleNew Post: Getting conditional formatting from an existing cell
I have dealt with a similar issue before. Maybe this helps you with your problem. I had to increase the range of all conditional formats on a sheet.IXLConditionalFormats condFormats =...
View ArticleCreated Unassigned: Inserting the MEDIAN and QUARTILE functions [9431]
Inserting more statistical functions.
View ArticleCommented Unassigned: Inserting the MEDIAN and QUARTILE functions [9431]
Inserting more statistical functions.Comments: I have implemented the functions in this way: In Statistical.cs ``` //=morraf= static object Percentile(List<Expression> p) { var range = p[0] as...
View ArticleNew Post: ClosedXML and Compact Framework
Hi, i had the same behavior using ExcelDatareader and compact framework: it's because you can't convert full compact framework's System.data classes to compact framework 's System.Data version: Hoping...
View ArticleNew Post: Feature request: Initial zoom of spreadsheet
I did implement it base on kbrimington suggetstion__IXLSheetView.cs:__ /// <summary> /// Window zoom magnification for current view representing percent values. Horizontal & Vertical scale...
View ArticleCommented Unassigned: Could not load file or assembly...
i am getting the following error, can someone guide me what i am missingCould not load file or assembly 'DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or...
View ArticleCommented Unassigned: Excel workbook corrupt after saving [9429]
I have an xlsx workbook that is used as a template. Through a ridiculous amount of coding, I have built a library using OpenXML that _almost_ preserves all formatting of the original file after...
View Article