使用的Spire office 3. 12.3
Workbook wb = new Workbook(); -->Exception :System.TypeInitializationException:““spr឴”的类型初始值设定项引发异常。”“ConfigurationErrorsException: 无法识别的配置节 Reference”
//load from the file
wb.LoadFromFile(@"D:\test.xlsx");
//get the page info.
var pageInfoList = wb.GetSplitPageInfo();
//Get the sheet count
int sheetCount = pageInfoList.Count;
//The page count of the first sheet
int pageCount = pageInfoList[0].Count;