Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Jun 20, 2018 8:17 am

After I have created the Pivot Table in Excel , I want to copy a few records of the pivot Table to others row to do some changes on them. I have don't this like:

Code: Select all
sheet2.Copy(sheet2.Range["A34:G34"], sheet2.Range["A39:G39"], true);


as you can see I want to copy Row No: 34 to Row No:39. But nothing happens? how is that possible?

Thank you

nnmmss
 
Posts: 4
Joined: Wed Jun 20, 2018 5:50 am

Wed Jun 20, 2018 9:50 am

Dear nnmmss,

Thanks for your inquiry.
Please add following code before copying.
Code: Select all
PivotTable.CalculateData();

If your issue still happens, please share us your input document and the full code you were using.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jun 22, 2018 6:26 am

Dear nnmmss,

Greetings from E-iceblue.
Has your issue been solved ? Could you please give us some feedback at your convenience ?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS