EPPlus usage
Noncommercial use
Environment
Windows
Epplus version
8.4.2
Spreadsheet application
Excel
Description
When copying shapes from a source file to a newly generated target file we noticed that the dimensions of the shapes changed. (Probably due to different column width/row height)
Trying to mitigate this we call ChangeCellAnchor(eEditAs.Absolute) before sourceShape.Copy(targetSheet, sourceShape.From.Row, sourceShape.From.Column). This however results in the NullReferenceException below due to From not being set for the newly created targetShape:
Also we're not sure if this is the correct method of copying over shapes without changing their dimensions and spacing between each other
Repo Link
EPPlus usage
Noncommercial use
Environment
Windows
Epplus version
8.4.2
Spreadsheet application
Excel
Description
When copying shapes from a source file to a newly generated target file we noticed that the dimensions of the shapes changed. (Probably due to different column width/row height)
Trying to mitigate this we call
ChangeCellAnchor(eEditAs.Absolute)beforesourceShape.Copy(targetSheet, sourceShape.From.Row, sourceShape.From.Column). This however results in the NullReferenceException below due toFromnot being set for the newly created targetShape:Also we're not sure if this is the correct method of copying over shapes without changing their dimensions and spacing between each other
Repo Link