-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExcelTable Has no Resize fuction,i use delete and recreate exceltable,but will fail on excel open #1628
Comments
Your sample code does not create a reproducible error. It works completely as expected without Excel reporting an error and deleting the table on our end when I provide your method with a datatable. This tells me the problem likely lies in your input. Either in the table name or the data within the data-table is causing the issue. I cannot help you determine the issue without the input data. If the data is sensitive, commercial customers have access to our Ticket system with Priority Support which includes private file-sharing. |
I have a problem again. I haven't tested it enough yet. When I reference formulas across sheet, I get an error when I open Excel. If a formula in sheet2 refers to data in sheet1, an error occurs. |
Thank you! We've now been able to reproduce the error and are looking into a fix. |
modified: EPPlusTest/Issues/LegacyTests/Issues.cs
modified: EPPlusTest/Issues/LegacyTests/Issues.cs
EPPlus usage
Personal use
Environment
Windows
Epplus version
7.4
Spreadsheet application
Excel
Description
Because ExcelTable does not have resize method, I want to change its address, try to delete the old one and create a new ExcelTable implementation, but after the change is saved, the Excel will report an error and delete ExcelTable
Here is the sample code
`using OfficeOpenXml;
using OfficeOpenXml.Table;
using System.Data;
using System.IO;
public void LoadDataTableIntoExcelTable(string filePath, string sheetName, string tableName, DataTable dataTable)
{
var fileInfo = new FileInfo(filePath);
using (var package = new ExcelPackage(fileInfo))
{
var worksheet = package.Workbook.Worksheets[sheetName];
var excelTable = worksheet.Tables[tableName];
}
`
The text was updated successfully, but these errors were encountered: