how can i refresh pivot table on the first sheet,?
does Spire.xls supports refresh data source of pivot table now?
burning.liu wrote:Dear mengting0917,
Thanks for your inquriy.
Spire.Xls supports autoupdate pivot table when data source has modified. Just change the data source range's value and save the workbook, the pivot table will be autoupdated.
Best Regards,
Burning
E-iceblue Support Team
burning.liu wrote:Dear mengting0917,
Yes. It can be autoupdated when you save the workbook, you can try it.
Best Regards,
Burning
E-iceblue Support Team
burning.liu wrote:Dear mengting0917,
Please feel free to contact us if you have any problems.
Best Regards,
Burning
E-iceblue Support Team
burning.liu wrote:Dear mengting0917,
It seems that you're using Aspose which is unfamiliar to me. Please using Spire.Xls to test.
Best Regards,
Burning
E-iceblue Support Team
burning.liu wrote:Dear mengting0917,
I used Spire.Xls v7.6.1 to test, please try that version.
If it cannot be refresh still, please upload the xlsx file to help us reproduce the issue.
Best Regards,
Burning
E-iceblue Support Team
burning.liu wrote:Dear mengting0917,
I used Spire.Xls v7.6.1 to test, please try that version.
If it cannot be refresh still, please upload the xlsx file to help us reproduce the issue.
Best Regards,
Burning
E-iceblue Support Team
burning.liu wrote:Dear mengting0917,
I used Spire.Xls v7.6.1 to test, please try that version.
If it cannot be refresh still, please upload the xlsx file to help us reproduce the issue.
Best Regards,
Burning
E-iceblue Support Team
Workbook workbook = new Workbook();
workbook.LoadFromFile("testfile.xlsx", ExcelVersion.Version2010);
Worksheet worksheet = workbook.Worksheets[1];
//Change Row 7
worksheet.Copy(worksheet.Range["A6:I6"], worksheet.Range["A7:I7"], true);
workbook.SaveToFile("testfile.pdf", FileFormat.PDF);
burning.liu wrote:Dear mengting0917,
In the code snippet below, I copy data from "A6:I6" to "A7:I7" and then save workbook to pdf. The pivot table changes in result pdf document, you can try it.
- Code: Select all
Workbook workbook = new Workbook();
workbook.LoadFromFile("testfile.xlsx", ExcelVersion.Version2010);
Worksheet worksheet = workbook.Worksheets[1];
//Change Row 7
worksheet.Copy(worksheet.Range["A6:I6"], worksheet.Range["A7:I7"], true);
workbook.SaveToFile("testfile.pdf", FileFormat.PDF);
Best Regards,
Burning
E-iceblue Support Team
Workbook workbook = new Workbook();
workbook.LoadFromFile("testfile.xlsx", ExcelVersion.Version2010);
Worksheet worksheet = workbook.Worksheets[1];
//Change Row 7
worksheet.Range["A2"].Value = "22222222222";
worksheet.Copy(worksheet.Range["A6:I6"], worksheet.Range["A7:I7"], true);
workbook.SaveToFile("testfile1.xlsx", FileFormat.Version2010);
workbook.SaveToFile("testfile.pdf", FileFormat.PDF);