使用以下代码导出到excel的两个数据网格
PrintableComponentLink pcl1 = new PrintableComponentLink(printingSystem1);
PrintableComponentLink pcl2 = new PrintableComponentLink(new PrintingSystem());
pcl1.Component = gridControl1;
pcl2.Component = gridControl2;
pcl1.CreateDocument();
pcl2.CreateDocument();
printingSystem1.Document.Pages.AddRange(pcl2.PrintingSystem.Document.Pages);
XlsxExportOptions ept = new XlsxExportOptions();
ept.ExportMode = XlsxExportMode.SingleFilePageByPage;
string path = System.IO.Directory.GetCurrentDirectory() + @"\..\..\" + "All.xlsx";
printingSystem1.ExportToXlsx(path, ept);
System.Diagnostics.Process.Start(path);
问题是它每张纸出口40行。这意味着它在工作簿中创建了很多excel表。如何使每张纸输出超过40行? 这是奇怪的行为,因为excel每张表接受超过100万行