I am crating an excel file with pivot table and charts. When I use '&' in column name it throws error "One or more errors occurred". Error is only when creating pivot table.
var pivot1 = pivotSheetT1.PivotTables.Add(pivotSheetT1.Cells["A3"], Range, "some text");
How to handle characters like '&' ? I do not ant to remove this character, I need to show it in excel file.