如何使用PHP在Excel中的slicer中读取或写入数据以进行透视。 我正在使用COM扩展,并且能够使用切片器存储数据透视,但是在切片器中存储时如何更改值
// EXCEL APP OBJECT
$xlapp = new COM("Excel.Application") or Die ("Did not instantiate Excel");
// WORKBOOK AND WORKSHEET OBJECTS
$wbk = $xlapp->Workbooks-
>Open("C:\\xampp\htdocs\Filter_slicer\PivotTest.xlsx");
$wks = $wbk->Worksheets(2);
$wks1 = $wbk->Worksheets(1);
// SET CELL VALUE
$test = $wks->PivotTables();
$test->Slicers();
$wbk->save();