Hello,
I'm currently reading an Excel file containing a pivot table. When I modifed the file and saved it, I got this exception. After some investigations, it seems that the issue is coming from the CacheDefinition.SourceRange which is null for my pivot table. Hence, in the SavePivotTables function of the ExcelWorkSheet (line 3154), the exception is raised as the SourceRange is null.
I also tried to set the SourceRange value directly, but the setter check the current value of the SourceRange and the exception is raised again.
Did I miss something to fill the SourceRange property ?
Many thanks,
Eric
I'm currently reading an Excel file containing a pivot table. When I modifed the file and saved it, I got this exception. After some investigations, it seems that the issue is coming from the CacheDefinition.SourceRange which is null for my pivot table. Hence, in the SavePivotTables function of the ExcelWorkSheet (line 3154), the exception is raised as the SourceRange is null.
I also tried to set the SourceRange value directly, but the setter check the current value of the SourceRange and the exception is raised again.
Did I miss something to fill the SourceRange property ?
Many thanks,
Eric