生成交叉统计表以后,再导出,不行?
如果直接用代码,可以这样写
Dim g As New CrossTableBuilder("统计表1", DataTables("表A"))g.HGroups.AddDef("第一列")g.VGroups.AddDef("第二列")g.Totals.AddDef("第三列", AggregateEnum.Count, "第三列")g.Build()Dim t As Table = Tables("统计表1")t.saveExcel("d:\test.xls", "统计表")