Questions tagged [epplus]

EPPlus is a .NET library that reads and writes Excel files using the Office Open XML format (xlsx) without the need of interop. EPPlus has no dependencies other than .NET.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Telerik PdfFormatProvider not exporting bold text (XLSX to PDF) in .net core

I'm using Telerik library to generate a PDF file from an XLSX template file, in which I write the model values into specified cells. During the compilation phase, in some cases I have to set a cell as ...
Mirko Putignani's user avatar
0 votes
0 answers
37 views

How would I set the alignment of cells in a pivot table created with EPPlus?

At this time, this functionality has not been added to EPPlus. EPPlus is reviewing the addition of horizonal alignment to pivot table styles as a possible addition to future versions. I have added a ...
Doug Kimzey's user avatar
  • 1,034
-1 votes
0 answers
21 views

How to get an address of a cell EPPLUS C# [duplicate]

So the question is: Is there a way to get an address of a cell, that contains certain Data in excel? Like for instance, i'm using a FOR loop to get through a row to find a certain "word", ...
Deinmar Krain's user avatar
-1 votes
0 answers
56 views

Issue with EPPlus

I don't want to set the width of a whole column, because I have cell on that same column that shouldn't be changed. If you look at the picture you can see cell at A13:A14 is wider than I want it to ...
Deinmar Krain's user avatar
1 vote
1 answer
36 views

Keeping a file locked between open and save with EPPLUS

Just looking for some advice for the best way to open an existing excel file, carry out some process on the data and then save it again while prevent others making edits to the excel file between my ...
Russ Green's user avatar
0 votes
0 answers
29 views

Export ExpandoObject to excel in C#

I am using EPPlus to export a list of expanded objects to an Excel file. Initially, I had a single column containing a list of persons separated by ';' (so, the type of object to export was known ...
AMLOCO's user avatar
  • 43
0 votes
1 answer
87 views

Handling Dialog or Alert Box with Puppeteer Sharp

I am using Puppeteer Sharp and Epplus library on Asp.net core to perform some Automation on a website. Scenario: Using Epplus I am reading data from an excel File and saving those data into local ...
Mahir Tazwar's user avatar
0 votes
2 answers
53 views

EPPlus not loading cells correctly

I have an excel with 3 worksheets. Every worksheet has around 100 columns. There are some values that exist in the excel, but when I try to access them with EPPlus it returns no text. What could be ...
Carrivas's user avatar
0 votes
0 answers
69 views

Cannot set EPPlus licencing to non commercial without code breaking as 'LicenceContext is a type but being used as a variable' error appears

I am trying to convert text in a label in windows forms to an excel file using EPPlus however when setting the licencing the errors 'LicenceContext is a type but being used as a variable' when ...
owinius's user avatar
0 votes
0 answers
20 views

EPPLus don't read default height from excel

When I'm trying to read default height by EPPlus it always returns me 15. I was checked, function GetXmlNodeDouble returns number, but there are another function, where are function returns " &...
Loreco's user avatar
  • 1
0 votes
0 answers
80 views

Bug in debug mode in Visual Studio 2015, which depends on the file size

Good afternoon I need to maintain a C# application that uses the EPPlus library. The application does not require installation; its task is to process and analyze MS Excel documents. Until recently, I ...
Z1LAN's user avatar
  • 1
0 votes
1 answer
40 views

EPPlus6.0 CollapseChildren doesn't collapse my rows

I upgraded from EPPlus4.0 to 6.0 and having trouble with collapsing rows in excel sheets. Collapsing a row in the 4.0 was like this worksheet.Row(row).Collapsed = true; But it's changed in the 6.0 ...
Swathi Rajanna's user avatar
0 votes
0 answers
18 views

How to read row height by using EPPlus

Always, when I'm trying to read row height in EPPlus, sets default height private static void SetRowHeight (ExcelWorksheet worksheet, int startRow, int endRow) { var height = worksheet....
Loreco's user avatar
  • 1
1 vote
1 answer
124 views

Invalid file signature

I was working on a winform application, the form contains a plain button and its event handler contains the code to read, modify and create an updated xlsb file. This xlsb file that i am working on ...
Satyam's user avatar
  • 75
0 votes
0 answers
41 views

Invalid SchemaName: None on EPPlus (Solved)

I am doing some changes to a pre-filled excel file just with the sheets and the headers of these sheets. When i try to return it as a MemoryStream, the code raises a "System.ArgumentException: ...
Diogo Basilio's user avatar
0 votes
0 answers
21 views

=PRODUCT(FILTER(D6:G6,D6:G6<>0)) how to use this formula use epplush library

worksheet.Cells[row, 8].Formula =$"PRODUCT(FILTER(D{row}:G{row},D{row}:G{row}<>0))"; if (worksheet.Cells[row,8].Formula!="") { ...
bhavna parmar's user avatar
0 votes
1 answer
41 views

EPPlus C# Save and SaveAs will save to disk but subsequent read attempts get old data

I'm trying to use EPPlus to get an excel file, make some updates to that file, and then use the updated file. This is a .NET Web API project, and the Read and Write are GET and POST endpoints. The ...
Floowid's user avatar
0 votes
0 answers
52 views

EPPLUS is not getting the right cell value from cell

I have a three Excel cells which look like this: "XEZ" cell formula: When I try to get the result of the formula, which is "73", I get "-1320" instead. I've tried three ...
R Marco's user avatar
1 vote
1 answer
66 views

Write large EPPlus file to stream, flushing periodically

I have to generate an Excel file that can contain the maximum allowable rows (1,048,576). However, when creating the ExcelPackage, I have to add all of the contents first, and then save it to disk: ...
Jon Sagara's user avatar
  • 1,142
0 votes
1 answer
186 views

C# EPPLUS: ~$ xlsx file "is not a valid Package file"

I'm trying to read all the excel files within a folder. Here is part of my code: string[] arrStatements = Directory.GetFiles(localPath, "*.xlsx"); foreach (var statement in arrStatements) {...
NootNootNoob's user avatar
0 votes
0 answers
77 views

Performance optimization for Nested loop C# and Epplus (inserting data into rows)

I have a stock scanner project where I am working with an API to get data based on certain price parameters. the data gets callbacked in several methods which I then am using with EPPlus to open and ...
Sam Ash's user avatar
  • 397
1 vote
0 answers
56 views

ExcelPackage reading styles of excel file incorrectly

I am trying to make some changes to my excel file var fileContent = GetFileBody(); //getting byte[] of file from API using var stream = new MemoryStream(fileContent); { using (var package = new ...
Axel Ki's user avatar
  • 13
1 vote
3 answers
108 views

EPPlus: Cell displayed '-125,949.00' but return '-125949'

I am using EPPlus to read excel data using c#. Excel contains data like below. Amt -125,949.00 -909,123.21 I am trying to read the exact data in variable using below mentioned code, but it's not ...
rima karangutkar's user avatar
0 votes
0 answers
28 views

How to make url within the text clickable in EP Plus excel export

I am generating excel sheet from the data using epplus I have a cell in my excel which has text and within that text there are some urls also. Something like this text "Bla bla bla bla bla http://...
Pawan Nogariya's user avatar
0 votes
0 answers
50 views

Convert Excel Cell date in to specific format but it's always apply local date format not the format I am applying

I am using EPPlus, and my local date format is yyyy-mm-dd. From a C# object, I am getting a value as strDate = 2023-03-14 10:41:59.483. Now, I want to convert this date into mm/dd/yyyy and display it ...
KARAN's user avatar
  • 1,033
0 votes
0 answers
45 views

EPPlus - when saving it omits the value for a cell with a function that returns an empty string

Excel has some functions that can return an empty string, e.g. IF(ISBLANK(A1),"","Not blank") CONCAT or CONCATENATE are other obvious examples that can return "". When ...
Steve Kidd's user avatar
0 votes
0 answers
20 views

EPPlus series with default values

I want to create a chart like as picture. But I don't know how to add red lines to chart. I am using Epplus library. The x value of the first red line is 68 and the y values is 0-100. The second red ...
Abdulkadir Avcı's user avatar
1 vote
0 answers
145 views

EPPlus C# unable to load assembly

First of all, sorry for my English. I'm trying to make a program that changes some texts in excel files. Everything works OK in visual studio but when I try to run the ".Exe" it gaves me &...
Fer nando's user avatar
0 votes
1 answer
109 views

How to convert complex Excel document to C# models

I'm having some trouble finding the ideal way to convert my Excel spreadsheet to C# models. I've got some MVP code that's using the EPPlus library, but it's really simple in that it only opens the ...
banf's user avatar
  • 65
0 votes
1 answer
172 views

Unable to cast object of type Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty to type Microsoft.EntityFrameworkCore.Metadata.Internal.Property

I couldn't iterate the propsToBeHeaders variable. Here I am getting the properties with excel column header but I couldn't iterate over the properties because it throws this error, Unable to cast ...
Amberbir Mehabaw's user avatar
0 votes
0 answers
58 views

EPPlus Freeze panes is disabling vertical scrolling

I wanted to freeze part the 6 first columns of my excel file while being able to scroll over the rest of the column and it only half-worked. The freeze is perfectly working just as the horizontal ...
Nixir's user avatar
  • 1
0 votes
1 answer
269 views

ASP.NET Core - Error CS1503 Argument 1: cannot convert from 'Request.CreateMandateDto' to 'Response.MandateListDto' in Excel upload

I am uploading excel file using ASP.NET Core 6 Web API with EPPlus package. I have two DTOs, CreateMandateDto as request DTO and MandateListDto as response DTO. I have written code as shown below. ...
Ayobamilaye's user avatar
  • 1,147
0 votes
0 answers
34 views

What is the proper Array declaration for 'var currentSeries' in EPPlus for line charting with multiple series?

I wish to create a line chart in EPPlus with multiple series depicted on the chart. Each of the data series is stored in consecutive rows (iRow) in the worksheet. I wish to wrap the currentSeries ...
Julian's user avatar
  • 1
0 votes
0 answers
31 views

How can I run macros in XLSM file from C#.net code?

I have 1 XLSM file which contains macros and I want to run macros from my C#.net application. My C#.net application write some cells value in the same file and on the basis of theses cells few other ...
nitin sharma's user avatar
1 vote
1 answer
78 views

empty cells are showing .Text as "NaN" using NPPlus in C#

Our client gives Excel files as input and we rip the text out to do stuff with. Whatever they've done is causing some cells to have the .Text property of NaN, but show as blank when viewed through ...
The Lemon's user avatar
  • 1,231
0 votes
0 answers
26 views

retrieve value of cell that has formula

I have an excel template file with formulas, I access it with epplus , I load a table to a group of cells and I update ranges of two formula cells, then I execute the calculate of the sheet and when I ...
Napo Chavez's user avatar
0 votes
0 answers
62 views

How to assign a specific order and variable to each cell in a dataTable column according to other cells

I'm a super newbie who started this project on WPF (.NET) around two weeks ago without knowing a single thing about programming. My project is complex (for me, you know, being a newbie) and I've been ...
F. EYL's user avatar
  • 1
0 votes
0 answers
47 views

How to filter failed successful excel upload using EPPlus package in ASP.NET Core Web API

I am implementing Excel upload for Employees Leave applications using an ASP.NET Core 6 Web API as the backend and Angular 14 as the frontend. In ASP.NET Core, I am using Entity Framework and a ...
Ayobamilaye's user avatar
  • 1,147
0 votes
1 answer
68 views

Set font for EPPlus chart elements

I want my chart elements to use a specific font family - Quire Sans. I can set the font for cells and it works fine: ws.Cells[1, 1, 100, 100].Style.Font.Name = "Quire Sans"; ws.Cells[1, 1, ...
Sean's user avatar
  • 14.5k
1 vote
3 answers
414 views

EPPlus - How to Handle Rows beyond 1,048,576

I am generating transaction reports which can contain a large amount of data. But the issue is that excel only support the max rows of 1,048,576. I am using EPPlus v6.2.3. It is crashing with the ...
Shazia Tabassum's user avatar
0 votes
3 answers
162 views

How to use EEPlus License with Revit

Im new to programming and i am trying to read and display excel data as a add in for revit 2022. I am using visual studio 2022 for this. I figured out that i need the EEPlus package for the excel bit ...
Victoria's user avatar
0 votes
0 answers
43 views

EPPlus - How to add data labels to a line chart

I am creating an excel chart with EPPlus 6.3.1. There are two series, each is a simple line chart. One series is plotted on the primary Y Axis and the other series is on the secondary Y. As they stand,...
George Harrison's user avatar
0 votes
0 answers
22 views

EP Plus Rendering Form Controls With Bulk Records Is Slow

While I am trying to render Excel report using EP Plus with 500 records and each record has to render 8-10 checkboxes (bool field), then it takes me some 55 seconds to render this report. The approach ...
Abhishek Sinha's user avatar
0 votes
1 answer
99 views

Using EPPlus 6.1.3, how do I assign a chart series to a secondary Y axis?

I have a chart with two line graph series. They plot ok but I want to show one of them on a secondary Y axis. Here is my code (in VB.Net but C# responses are fine): Dim destinationChart As ExcelChart =...
George Harrison's user avatar
0 votes
1 answer
295 views

How to delete the range of columns in closedXML?

Ive been trying to convert the EPPlus version of functionality into ClosedXML , i was stuck on the line where u send starting column number and total number of columns to delete in EPPlus method like ...
Sarvesh Patil's user avatar
0 votes
0 answers
33 views

Does EPPLUS 6.1 Support pivot chart data labels?

I am trying to add data labels to my stacked bar pivot chart using epplus c#. But there doesn’t seem to be any methods that support data labels on the graph I have chosen. My goal is to show the ...
AndrewScott's user avatar
1 vote
1 answer
166 views

EPPLUS insert more than 1000 characters in cell value

Is there a way to insert more than 1000 chars in cell value? Now it gets cut off. Maybe is there a way to append values? I couldn't find anything regarding this topic. I went trough all the options ...
HEki's user avatar
  • 23
0 votes
1 answer
121 views

How to achieve the EPPlus Iteration functionality using ClosedXML library in dotnet?

I have the following code which iterates over a range in excel worksheet using EPPlus library, now I want to achieve the same functionality using ClosedXML Library: ExcelWorksheet workSheet = package....
Sarvesh Patil's user avatar
0 votes
0 answers
32 views

Epplus Adjustments Shape

I'm using the epplus 4.5.3.3 and I want to put this shape in the Excel: enter image description here But the epplus only put it like this: enter image description here How can I edit it by code? In ...
Federico Portillo's user avatar

1
2 3 4 5
39