Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all 2262 articles
Browse latest View live

Created Unassigned: About strange cell format changing [15366]

$
0
0
Hi, thanks for great EPPLUS.
When I use Epplus to load file.xlsm, then change some cell values in 1 sheet.
when I reopen file.xlsm, the format of cells change (cells of all sheets).
original value:
150 100 15 12
190 120 19 12
190 120 19 16
190 120 15 12
190 120 15 16
after:
¥150 ¥100 ¥15 ¥12
¥190 ¥120 ¥19 ¥12
¥190 ¥120 ¥19 ¥16
¥190 ¥120 ¥15 ¥12
¥190 ¥120 ¥15 ¥16
What is happening?
When I use code below, will it change format of file.xlsm?:
```
using (var p = new ExcelPackage(new FileInfo(xlsm_filename)))//mo file xlsm
{
ExcelWorksheet sheet = p.Workbook.Worksheets["sheet1"];
//some code change value
}
```
Thank you very much


Created Unassigned: NotSupportedException: This property or method is not supported for a Chartsheet [15367]

$
0
0
Getting this error in the 4.0.4 that did not happen with 3.1.3.

[NotSupportedException: This property or method is not supported for a Chartsheet]
OfficeOpenXml.ExcelWorksheet.get_Tables() +221
OfficeOpenXml.ExcelWorkbook.ReadAllTables() +144
OfficeOpenXml.ExcelWorksheet.get_Tables() +78
OfficeOpenXml.ExcelWorksheet.SaveTables() +60
OfficeOpenXml.ExcelWorksheet.Save() +303
OfficeOpenXml.ExcelWorkbook.Save() +715
OfficeOpenXml.ExcelPackage.GetAsByteArray(Boolean save) +39

Nothing has changed in my code. I just updated the EPPlus.dll via Nuget.

Here is a list of methods/commands that I am running against the ExcelPackage (pck) and ExcelWorksheet (wsTarget):
* pck.GetAsByteArray(); <-- this is where it bombs
* wsTarget.Cells[ca.Target.Range].LoadFromDataTable(ds.Tables[ca.Source.Name], ca.Source.CopyHeaders)
* wsTarget.HeaderFooter.FirstHeader.LeftAlignedText = ds.Tables[ca.Source.Name].Rows[0].ItemArray[0].ToString();
* wsTarget.HeaderFooter.EvenHeader.LeftAlignedText = ds.Tables[ca.Source.Name].Rows[0].ItemArray[0].ToString();
* wsTarget.HeaderFooter.OddHeader.LeftAlignedText = ds.Tables[ca.Source.Name].Rows[0].ItemArray[0].ToString();
* wsTarget.HeaderFooter.differentFirst = false;
* wsTarget.Cells[ca.Target.Range].Style.HorizontalAlignment = eha;
* wsTarget.Cells[ca.Target.Range].Style.Numberformat.Format = ca.Source.Format;

That's pretty much it. I don't do anything else with it and these are all pretty basic API calls, so I'm not sure why it will not work in the newer version.

I back rev'd to 3.1.3 so I'm fine for now, but I thought you might want to know there may be something going on.

Created Unassigned: "Part Already Exist" when calling AddPicture(Name As String, image As System.Drawing.Image) [15368]

$
0
0
Receiving a "Part Already Exist" error when trying to add a picture to a pre-existing document with pictures in it (or even

I linked the source code directly in my code rather than the library and pinpointed the problem to ExcelDrawings.CreateDrawingXml method.

It attempts to create a new part /xl/drawings/drawing1.xml but it already exists in the package. It seems like it should probably load the existing xml file when it already exists...

Created Unassigned: Cannot open xlsx file rendered via rdlc [15369]

$
0
0
Anyone any ideas why isn't not possible to open an xlsx file generated by a rdlc when exported using EXCELOPENXML render method. See attached as example of generated xlsx file.

Many thanks,

Adam

Edited Unassigned: Cannot open xlsx file rendered via rdlc [15369]

$
0
0
Anyone any ideas why isn't not possible to open an xlsx file generated by a rdlc when exported using EXCELOPENXML render method. See attached as example of generated xlsx file.

This should probably be a discussion not an issue - my apologies


Edited Unassigned: Cannot open xlsx file rendered via rdlc [15369]

$
0
0
Anyone any ideas why isn't not possible to open an xlsx file generated by a rdlc when exported using EXCELOPENXML render method. See attached as example of generated xlsx file.

Attached file opens ok using latest version 4.0.4

However when opening and saving report via EPPlus some formatting is lost. Please compare Report2.xlsx to Report3.xlsx

Edited Unassigned: Cannot open xlsx file rendered via rdlc [15369]

$
0
0
Anyone any ideas why isn't not possible to open an xlsx file generated by a rdlc when exported using EXCELOPENXML render method. See attached as example of generated xlsx file.

Attached file opens ok using latest version 4.0.4

However when opening and saving report via EPPlus some formatting is lost. Please compare Report2.xlsx to Report3.xlsx

Edited Unassigned: Cannot open xlsx file rendered via rdlc [15369]

$
0
0
Anyone any ideas why isn't not possible to open an xlsx file generated by a rdlc when exported using EXCELOPENXML render method. See attached as example of generated xlsx file.

Attached file opens ok using latest version 4.0.4

However when opening and saving report via EPPlus merge cell formatting is lost. Please compare Report2.xlsx to Report3.xlsx

Commented Issue: Column Labels order on Pivot table [14693]

$
0
0
Hello
Sweet product.

I've added a column to my pivot table
pivotTable1.ColumnFields.Add(pivotTable1.Fields["RESOLUTION_STATUS"]);
I've set the data to display by columns
pivotTable1.DataOnRows = false;

When I open in Excel and view the field list, my new column that I created displays first in the "Column Labels" section followed by the "Values".

For presentation I would like the "Values" to be first and my new column to be 2nd. Can you tell me if I can control this and how.

thnx

ED
Comments: I have the same issue. The position of the "Σ Values" field in the column section of the PivotTable fields cannot be controlled and moreover, the position is changed by EPPLUS when opening and saving an existing file. Actually the "Σ Values" is always placed in second position by EPPLUS. This field is managed in the SavePivotTables() method of the ExcelWorksheet class: if (parentNode.SelectSingleNode("d:field[@ x= \"-2\"]", pt.NameSpaceManager) == null) { XmlElement fieldNode = pt.PivotTableXml.CreateElement("field", ExcelPackage.schemaMain); fieldNode.SetAttribute("x", "-2"); parentNode.AppendChild(fieldNode); } If you look at the code of this method, you will notice that the position of this field is absolutely not controlled, but it should be. Many thanks.

Created Unassigned: Issue when loading and saving an excel file containing a "3-Color Scale" conditional formatting [15370]

$
0
0
Hello,

I have created a Excel file containing a 3-Color Scale conditional formatting.

The type of the three values (Minimum,Midpoint,Maximum) is "Percentile".

When opening and saving the file with EPPLUS, the type of two values is changed:
- The type of minimum becomes "Lowest value"
- The type of maximum becomes "Highest value"

Moreover, color assigned for each value is also modified by EPPLUS.

Many thanks.

Commented Unassigned: ExcelWorksheet.DeleteColumn() doesn't remove the column [15310]

$
0
0
When I call ExcelWorksheet.DeleteColumn(int column), the column data is simply cleared out. How do I remove the column itself?

I tried using the solution on this page: http://stackoverflow.com/questions/28359165/how-to-remove-a-column-from-excel-sheet-in-epplus. The unit test simply clears the data in column 2 (column 2 still remains when the worksheet is saved).
Comments: Anyone done anything about it?

Commented Unassigned: After delete the column , only the column is cleared [15284]

$
0
0
on ExcelWorksheet.DeleteRow
```
public void DeleteRow(int rowFrom, int rows)

...

_values.Delete(rowFrom, 0, rows, ExcelPackage.MaxColumns);
```

on CellStore.Delete
```
internal void Delete(int fromRow, int fromCol, int rows, int columns, bool shift)

...

if (columns > 0 && fromRow == 1 && rows >= ExcelPackage.MaxRows)
```

Second parameter of CellStore.Delete is inconsistent with 0 and 1 .

```
if (columns > 0 && fromRow == 0 && rows >= ExcelPackage.MaxRows)
```




Comments: Any news on this fix please?

Commented Unassigned: ExcelWorksheet.DeleteColumn() doesn't remove the column [15310]

$
0
0
When I call ExcelWorksheet.DeleteColumn(int column), the column data is simply cleared out. How do I remove the column itself?

I tried using the solution on this page: http://stackoverflow.com/questions/28359165/how-to-remove-a-column-from-excel-sheet-in-epplus. The unit test simply clears the data in column 2 (column 2 still remains when the worksheet is saved).
Comments: Anyone reading can please fix this bug by implementing code from below? . http://stackoverflow.com/a/31677114/1659999

Commented Unassigned: After delete the column , only the column is cleared [15284]

$
0
0
on ExcelWorksheet.DeleteRow
```
public void DeleteRow(int rowFrom, int rows)

...

_values.Delete(rowFrom, 0, rows, ExcelPackage.MaxColumns);
```

on CellStore.Delete
```
internal void Delete(int fromRow, int fromCol, int rows, int columns, bool shift)

...

if (columns > 0 && fromRow == 1 && rows >= ExcelPackage.MaxRows)
```

Second parameter of CellStore.Delete is inconsistent with 0 and 1 .

```
if (columns > 0 && fromRow == 0 && rows >= ExcelPackage.MaxRows)
```




Comments: Anyone reading can please fix this bug by implementing code from below? . http://stackoverflow.com/a/31677114/1659999

Commented Issue: Issue with ExcelRange.Worksheet.View.FreezePanes [14699]

$
0
0
I am creating .xlsx with EPPlus library and trying to freeze the header. However the header is freezed but when i am opening the file in MS Office the horizontal scrollbar is not working. Not able to scroll anymore.

Please let me know if anybody has come accross the same issue and has any solution or workaround for this.

Thanks in advance..
Comments: I just tried to freeze panes but it freezes the whole section, making scrolling impossible.

Commented Issue: Issue with ExcelRange.Worksheet.View.FreezePanes [14699]

$
0
0
I am creating .xlsx with EPPlus library and trying to freeze the header. However the header is freezed but when i am opening the file in MS Office the horizontal scrollbar is not working. Not able to scroll anymore.

Please let me know if anybody has come accross the same issue and has any solution or workaround for this.

Thanks in advance..
Comments: Sorry my mistake (cannot edit the comments it seems) the correct way for me was this (it froze the top row as expected).. ``` ws.View.FreezePanes(2, 1); ```

Created Unassigned: Drawings within a "oneCellAnchor" element are not fully loaded [15371]

$
0
0
In ExcelDrawings.cs, ExcelDrawings.AddDrawings(), there's a switch case which loads up "oneCellAnchor" elements as a basic ExcelDrawing:

```
case "oneCellAnchor":
dr = new ExcelDrawing(this, node, "xdr:sp/xdr:nvSpPr/xdr:cNvPr/@name")
```

My document has ExcelPictures within the oneCellAnchor element. I was able to make these fully load by changing that case to match the others:

```
case "oneCellAnchor":
dr = ExcelDrawing.GetDrawing(this, node);
```

Created Unassigned: Spire.XLS Free version Lock worksheet not working for me [15372]

$
0
0


I am trying to use Spire.XLS Free version: Lock worksheet not working for me. It writes the lockedfile.xlsx but I find it is NOT Read-Only when I use it with Kingsoft Spreadsheets.

I am using the following code: Obviously I am doing some mistake or my understanding is wrong. Kindly help me.

Workbook workbook = new Workbook();
workbook.LoadFromFile("unlocked.xlsx");
workbook.Worksheets[0].Range.Style.Locked = true;
workbook.SaveToFile("lockedfile.xlsx");

This is used in a C# program in Asp.Net.....

Thanks.
Ratna

Commented Unassigned: SSRS 2012 generated Excel files are not readable in EPPlus [15037]

$
0
0
Hi,

I am experiencing an issue with EPPlus reading worksheets from an SSRS generated excel file(*.xlsx), basically export to Excel.
Exception Message -
"Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 2175"

If I save the same file opening in Excel Application and with no change to it, the same file works well.

Development Environment -
VS2010, SQL Server 2012, SSRS

Could anyone have suggestions to this issue. Appreciate your help.
Comments: I encountered the same issue

Created Unassigned: Cannot set column width to zero [15373]

$
0
0
If you try, the column retains its default width. Setting the property is effectively ignored.
Viewing all 2262 articles
Browse latest View live