Aspose.Cells'de Çalışma Sayfaları Arasında Şekilleri Kopyala

Bir grafiği çalışma sayfasından diğerine kopyalamak için kullanılan kod aşağıdadır.

C#

 string FilePath = @"..\..\..\Sample Files\";

string FileName = FilePath + "Copy Shapes between Worksheets.xlsx";

//Open the template file

Workbook workbook = new Workbook(FileName);

//Get the Chart from the "Chart" worksheet.

Aspose.Cells.Charts.Chart source = workbook.Worksheets["Chart"].Charts[0];

Aspose.Cells.Drawing.ChartShape cshape = source.ChartObject;

//Copy the Chart to the Result Worksheet

workbook.Worksheets["Result"].Shapes.AddCopy(cshape, 20, 0, 2, 0);

//Save the Worksheet

workbook.Save(FileName);

Not: Birden çok şekli kopyalama hakkında daha fazla ayrıntı için şu adresi ziyaret etmeniz gerekir:Burada

Örnek Kodu İndir

Çalışan Örneği İndirin