Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在用C1PrintPreviewDialog
C1PrintPreviewDialog
是否可以禁用某些保存到文件选项 - 例如xls,xlsx导出对我不起作用,所以我想对最终用户隐藏它们,直到问题得到解决。
xls
xlsx
谢谢
如果有人感兴趣,我找到了解决方案:
C1.Win.C1Preview.C1PrintPreviewDialog c1ppd = new C1.Win.C1Preview.C1PrintPreviewDialog(); c1ppd.PreviewPane.ExportOptions[C1.C1Preview.Export.ExportProviders.XlsExportProvider.FormatKey].Enabled = false;