Devexpress Pivot Grid Export to Excel Pivot GridOptions 打印

Devexpres PivotGrid Export to Excel PivotGridOptionsPrint

我在我的项目中使用 DevExpress, 我有一个 Pivotgrid,我想导出到 Excel,但合并的单元格未在 Excel 中创建为合并。 我想使用 PivotGridOptionsPrint 但我无法使用事件处理程序 optionsChanged.

创建此 class
PivotGridOptionsPrint op = new PivotGridOptionsPrint(??)

我需要什么参数?

Devexpress 版本 15.2

阅读 PivotGridOptionsPrint.MergeRowFieldValues Property and PivotGridOptionsPrint.MergeColumnFieldValues 属性 的文档。

Note: The MergeRowFieldValues property is used to customize Pivot Grid export settings when data is exported in the WYSIWYG export mode. This property is not in effect for the data-aware mode. To customize the Pivot Grid export settings while exporting in data-aware mode, use the DevExpress.XtraPivotGrid.PivotXlsExportOptions and DevExpress.XtraPivotGrid.PivotXlsxExportOptions descendants.

此外,您还可以在 Exporting XtraPivotGrid

文档中获得更多信息