I am running on an older version of xlsio 8.3.0.21 and i am trying to create a pivot table.
I use the following code:
IWorksheet main = wkb.Worksheets[0];
IWorksheet wks = wkb.Worksheets.Create(account.AccountName);
string range = String.Format("A{0}:G{1}", (account.header_row - 1), (account.stop_row - 1));
IPivotCache cache = wkb.PivotCaches.Add(main.Range[range]);
I am getting the following exception:
System.ArgumentException: strName - string cannot be empty
at Syncfusion.XlsIO.Implementation.Collections.PivotCacheFieldsCollection.AddNewField(String strName)
at Syncfusion.XlsIO.Implementation.PivotTables.PivotCacheImpl..ctor(IApplication application, Object parent, IRange dataRange)
at Syncfusion.XlsIO.Implementation.PivotTables.PivotCacheCollection.Add(IRange range)
at HoldingsIndustryReport.Program.generate_accounts_worksheets(IWorkbook& wkb, List`1 accounts) in Program.cs:line 158
at HoldingsIndustryReport.Program.Main(String[] args) in Program.cs:line 469
I found reference to this error here:
http://help.syncfusion.com/samples/xlsio.silverlight/issues/newissues_1.txt
But there is no information about the error, other than it is a existing issue.