Skip to content

Copy Drawings

AdrianEPPlus edited this page Sep 2, 2024 · 1 revision

##Copy Drawings EPPlus supports copying of drawings. You can use the copy function in Drawings to make a copy of the drawing to a new destination. The destination can be the same worksheet, another worksheet or even a worksheet in a different workbook.

//Copy the first drawing in worksheet to a destination worksheet on row 5 column 1
worksheet.Drawings[0].Copy(destinationWorksheet, 5, 1);

You can supply offsets for row and column as optional parameters

//Copy the first drawing in worksheet to a destination worksheet on row 5 column 1
worksheet.Drawings[0].Copy(destinationWorksheet, 5, 1, 15000, 15000);

EPPlus wiki

Versions

Worksheet & Ranges

Styling

Import/Export data

Formulas and filters

Charts & Drawing objects

Tables & Pivot Tables

VBA & Protection

Clone this wiki locally