Hi..
i am using syncfusion xlsio for reporting. i want to set default value in pivot table pagefilter in excel sheet
i tried lot of codes but not reflected in excel.
Example:
//'Create Pivot Filter object to apply filter to page Fields
IPivotFilter filterValue = pivotTable.PageFields["CURRENCY"].PivotFilters.Add();
//Page Field would be filtered with value 'Binder'
filterValue.Value1 = mCurrency;
pivotTable.Fields["CURRENCY"].Items[0].Visible = true;
_____________________________
IPivotField PageFieldPT = oSheet.PivotTables[ptblCount].PageFields[1];
PageFieldPT.FilterValue = sDefaultPartnershipType;
PageFieldPT.PivotFilters.Add(PivotFilterType.ValueEqual, PageFieldPT, sDefaultPartnershipType,null);
Thanks
Vasanth R