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.
1,838
questions
0
votes
0
answers
23
views
EPPlus Datafield custom ordering
I have a pivot table with a datafield sourced from a single column "Animals" of data in another sheet. This column contains values that I know in advance, let's say these are up to 6 animals ...
0
votes
1
answer
33
views
Showing #value! before enable editing on excel if I write formula using epplus
Using C# .net core I am updating existing excel template with Data and formulas using EPPlus lib 4.5.3.3.
If you see the below screen shots all formula cells has '#value!' even after using calculate ...
0
votes
0
answers
17
views
Supply a list of key value pair or a dictionary to a dropdown in excel using Epplus
Working on an excel template generation through c# program. I am using Epplus. Can i supply a key value pair list to a cell as a dropdown.
Example: Dictionary<string, string> myValues = new ...
0
votes
1
answer
33
views
Set Row Color Using Epplus
using Epplus how can I set an entire row background color to red? I've got this
int rowNumber = ws.Cells[rowIndex].Value;
ws.Cells[rowIndex].Style.Fill.PatternType = OfficeOpenXml.Style....
2
votes
1
answer
53
views
Excel corrupting formula with @
I'm using EPPlus in my C# code to create an Excel workbook. My code includes this statement:
ws.Cells[1, 1].Formula = "=UNICHAR(160)";
But when I execute my code and open the Excel ...
0
votes
0
answers
18
views
How to move pivot table slicer from one sheet to another
Using EPPLUS, I have created a pivot table in a worksheet called PIVOT, and I am trying to create a slicer that is linked to that pivot table in another worksheet; All I am able to achieve is creating ...
0
votes
0
answers
31
views
EPPlus C# - Add Separators Between Duplicate Rows
I am transferring the data from the database to an excel document with EPPlus. I grouped the data from the database. No problem so far. I need to separate the grouped data with new row. I tried ...
-1
votes
1
answer
53
views
Read values from Excel Text Box using C# - Nuget Package
I have an existing excel file, from which I am trying to read data and store it in the DB. But there are few Text Boxes and Check Boxes, where I need to get data from these as well. Is anyone aware of ...
0
votes
0
answers
28
views
using System.Drawing not working in C# when executed in Linux Environment [duplicate]
I am generating an excel programmatically, but it works fine in VS, when I tried automating it and compiling via Linux environment, it shows error.
`
using System.Drawing;
ws1.View.FreezePanes(2, 1);
...
0
votes
0
answers
16
views
EPPlus : Drawing width does fit the column width
I'm trying to fit a bunch of images like below:
The images height is perfect. The images width however seems to go beyound the bound of the column.
Here's my code attempt at this:
...
0
votes
1
answer
48
views
Value does not fall within the expected range on async call?
I am reading data from SQL and writing that data on an excel sheet as the data is too large so I am using async call for writing the data in excel. The library that I am using for excel is EPPLUS. The ...
0
votes
0
answers
47
views
Create Excel columns as dropdown list in .Net Core
I am new in .Net & in my .Net Core 5 API project there is a requirement to have particular column cells as dropdown list i.e., when the user clicks on any cell of that particular column (which ...
0
votes
0
answers
22
views
Epplus get Value with formula
I have Cell "=CELL("contents";DissList!C9)" in Excel. how I get Value. if i write .Value i have 0. if I write .Calculate(); and .Value I have #VALUE ! In this construction i need ...
0
votes
0
answers
27
views
How to create cells as dropdown list with more than 700 records using EpPlus package in .Net Core
In my .Net Core 5 API project there is a requirement to have particular column cells as dropdown list i.e., when the user clicks on any cell of that particular column (which will vary in different ...
0
votes
0
answers
11
views
Assigning variable to result of formula in EPPlus
I have an Excel file that contains lots of data, and I'm making a program that reads the excel file, does some statistics, and prints the findings in console.
I need to count the occurrences of a ...
0
votes
0
answers
38
views
Can I use EPPlus to create a named range referencing noncontiguous cells in a spreadsheet?
If I want to use EPPlus to add a named range to an Excel worksheet, and the cells in the range are contiguous, then this works:
string wsName = "Sheet1";
string rangeName = "MyRange&...
1
vote
1
answer
90
views
Epplus Excel Library C#
I want to know how to close the ExcelPackage (epplus)? I have searched about it everywhere, but all the epplus codes are written with using keyword.
For example, once we open the file stream (fstream),...
0
votes
0
answers
24
views
Getting "Not a legal OleAut date" error with AutoFitColumns function in EPPlus
I'm exporting some data to Excel using the EPPlus library. After writing the data to the cells, I call the AutofitColumns function. This throws an error:
Exception of type 'System.Web....
0
votes
2
answers
94
views
How to read data from Excel File saved in an blob in azure with EPPlus library
I'm trying to read my excel files saved in my azure storage container like this
string connectionString = Environment.GetEnvironmentVariable("AZURE_STORAGE_CONNECTION_STRING");
...
0
votes
0
answers
48
views
How to generate a PDF from an Excel MemoryStream created using EPPlus.core?
I have to create a API in dot net core which will return the excel as PDF. Excel works fine but when I try to send it in PDF content as you can see in the following code:
[HttpPost]
[Route(&...
0
votes
0
answers
66
views
Is it possible to edit a sharepoint online excel file using EPPlus and C#?
I have some C# console apps and powershell scripts that read and sometimes modify excel files using EPPlus/ OpenXml.
These files are being moved from network drive to Sharepoint online 365.
What are ...
2
votes
2
answers
122
views
How to generate PDF from Excel MemoryStream created using EPPlus.core?
I have to create a API in dot net core which will return the excel as PDF.
Excel works fine but when I try to send it in PDF content as you can see in the following code:
[HttpPost]
[...
0
votes
1
answer
43
views
EPPlus Date Formatting in Excel
I need to format the date in Excel while writing in the Excel sheet.
It should display this format "MM/dd" but when click on this then formula bar show the complete date "MM/dd/yyyy&...
0
votes
0
answers
30
views
EPPlus Excel Data Validation List - Empty strings not showing after export
Good Day,
I am struggling to show empty string value in the data validation list that gets exported to the excel file. I have an array of values that I get from different Lookup tables (one for each ...
0
votes
1
answer
47
views
[Content_Types].xml unknown error in ASP.NET Core 5 (EPPlus)
I am trying to use EPPlus to manipulate my xlsm template and download to client. I believe there is no issue with excel package as I am able to save the package locally. But I need content disposition ...
1
vote
1
answer
45
views
Possible to read filtered row data?
Scenario
Having an existing Excel XLSX file with a table and data.
This table is filtered. E.g. it would have 5 rows without a filter and is currently filtered to only have 3 rows visible.
I want to ...
0
votes
0
answers
95
views
export to XLSB using epplus asp.net c#
In my project there is a specific page that exports a lot of data (around 1 million rows and 30 columns) in an excel "XLSX" file. But the file size is big, so it is taking a lot to download ...
0
votes
1
answer
57
views
Filter specific rows of worksheet C#
I'm currently trying to get specific rows of an Excel file in my code.
I get the data of my Excel file with this code:
FileInfo existingFile = new FileInfo(local_in_file_path);
using (...
1
vote
0
answers
32
views
Refer to an Excel worksheet by Codename in EPPlus
I am learning to use EPPlus for my C# projects. I would like to be able to identify a worksheet by its immutable "Codename" rather than the user editable "Name" property. I do ...
1
vote
1
answer
39
views
EPPlus set Connect data points with line
I have already draw an excel chart with EPPlus in C# and I need to set Connect data points with line, in order to avoid empty cells affecting my chart.
As you can see in above image, there are two ...
0
votes
0
answers
77
views
How to delete all hidden rows EPPlus C# excel
I have an excel sheet with hidden rows and I wrote a code to try and delete those rows using EPPlus, but this code doesn't delete all the hidden rows - it appears that it misses some rows randomly.
...
0
votes
0
answers
58
views
Not able to calculate a formula in EPPlus From Excel
I have excel with a number of calculation references, need to calculate the output from excel in the excel multiple references with a different sheet, whenever I'll passed a new value it'll give #...
0
votes
0
answers
63
views
How do I merge cells in EPPlus library, but in columns?
I can't seem to find any solution. I know of the MergeCells() property, but that only seems to work in rows. I need to merge cells from A2:A10 for instance. Or is there a way to use the existing ...
0
votes
0
answers
62
views
strange issue while reading excel sheet with epplus C#
My project has 2 console applications.
First application is writing data to the "first sheet" of an existing excel file (xlsx). The same excel file has a "second sheet" which is ...
0
votes
0
answers
63
views
Compare lists of objects where values matches
I have two lists of object like:
List 1
name
work_mail
work_telephone
private_mail
private_telephone
name1
mail1@job.com
123
mail1@private.com
1230
name2
mail2@job.com
456
mail2@private.com
4560
...
0
votes
0
answers
130
views
C# EPPlus cannot Read Excel Spreadsheet
I am trying to read the data in an .xlsx workbook.
EPPlus is successfully reading the Workbook without any errors. The problem is the Worksheets inside the workbook.
EPPlus seems to not read the ...
0
votes
0
answers
56
views
C# EPPlus How to hide range of columns
I am working with EPPlus which generate excel file. now i have to hide range of columns. this code i used to hide range of columns in one go.
var rangecol = ws.Cells["M1:P1"];
var ...
0
votes
0
answers
60
views
How Can I Export Excell From Asp.net Core with Js
asp.net core service return FileContentResult as this format: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
How Can I open on desktop or download on browser the excel file?
...
2
votes
0
answers
66
views
@ Before the Formula - EPPLUS - C#
I'm a student of Economic Sciences and i'm making a Program for my Final Paper about stock market. But, when i try to run my code in C# using EPPLUS, it doesn't working well. The STOCKHISTORY Formula ...
0
votes
0
answers
45
views
EPPlus: cannot calculate simple formula : #VALUE! error
I really don't understand why my (quite simple!) formula won't get calculated:
var logfile = new System.IO.FileInfo(@"C:\EpplusLogFile.txt");
sheet.Workbook....
-1
votes
1
answer
90
views
How to create a graph in excel from data table in c#
I am using EPPLUS version(v4.0.30319) , and i have data in datatable as shown below.But i am getting error in below code for LoadFromCollection
private static void DrawGraph()
{
...
0
votes
3
answers
497
views
How To List All Dates Between Two Dates In Excel?
I have tried the formula to generate dates between start date and end date and it is not working properly.. I would need help here
Image from excel
formula = =IF($D$5+ROW(D5)>=$D$6-1,"",...
0
votes
0
answers
78
views
Getting invalid calculated values of excel cells using ExcelDataReader, EPPlus and NPOI
I have an Excel sheet that has multiple sheets and is filled with formulas.
There are some blank cells in this sheet that are to be filled by a user and saved to get different results with different ...
0
votes
0
answers
62
views
EPPLUS Display value as HTML table
I came across an issue I can't solve.
Let me explain the problem; I am creating excel reports from the object which comes from the server, I am validating each value that comes through the ...
0
votes
0
answers
76
views
EPPLUS returns null instead of a value C# EXCEL
So EEPLUS is returning cell as a null value, the value of the cell when I view in Excel is #VALUE!. I do realize that #VALUE is an invalid value but I want to get that value to copy it in another cell,...
0
votes
0
answers
67
views
Adding subtotal rows & final total row to existing Excel sheet using C# & EPPlus
I have a pre-populated Excel file with a countries column and a large number of date columns organised like the Before demo screenshot below.
Using EPPlus I have to insert subtotal rows beneath each ...
0
votes
1
answer
47
views
Security execution when trying to use pplus in Asp.net application
I'm trying to use EPPlus in Asp.net application And I'm getting this exception:
Attempt by security transparent method 'OfficeOpenXml.ExcelPackage.Init()' to access security critical method 'System....
4
votes
1
answer
96
views
EPPlus set table column filter with text contains
I'm trying to achieve this with EPPlus -
I looked at the example here:
private static async Task CustomFilter(string connectionString, ExcelPackage p)
{
var ws = p.Workbook.Worksheets....
0
votes
0
answers
29
views
epplus and windows clipboard
I'm need to copy some generated in epplus range of cells to clipboard. The idea is to paste this fast-generated range in other non-excel documents in manner, that native Excel doing.
Does some way to ...
0
votes
0
answers
98
views
How to load unique items of a specific excel column to a combo box using c#
I'm new to EPPlus excel library. Recently I've been trying to figure out a efficient way to load all unique items from the first column of a excel file (apart from the very first cell as it is the ...