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

Commented Unassigned: EPPlus 4.0 RC. InsertRow not correct! [15090]

$
0
0
Function InsertRow(int,int, int ) does not work properly.
```

ExcelPackage p = new ExcelPackage(new FileInfo(@"C:\b.xlsx"), new FileInfo(@"C:\a.xlsx"));
ExcelWorksheet sheet = p.Workbook.Worksheets[1];
sheet.InsertRow(5, 10,4);
p.Save();
```

Out of line # 4, not all cells are copied!
Comments: This is still an issue in 4.0.4 as the 3 value passed in for copyStylesFromRow is used after the new rows are created. If you want to use the row that you started on for formatting: ``` sheet.InsertRow(4, 10, 4); ``` It will insert 10 rows then copy the new 4th row which has no formatting. To get the expected result, you would have to pass the 14 in as the copyStylesFromRow which isn't the expected behavior.

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>