Posted 21 November 2018, 11:16 am EST
how to hide some providers in export reports?
C1PrintPreviewControl1.PreviewPane.ExportOptions.Item(“XlsExportProvider”).Enabled = False
it is not removed from the list
Forums Home / ComponentOne / WinForms Edition
Posted by: a.callegari on 21 November 2018, 11:16 am EST
Posted 21 November 2018, 11:16 am EST
how to hide some providers in export reports?
C1PrintPreviewControl1.PreviewPane.ExportOptions.Item(“XlsExportProvider”).Enabled = False
it is not removed from the list
Posted 22 November 2018, 2:50 am EST
Hello,
Do you intend to remove some export providers from the filter names when the “Save” button on the C1PrintrPreviewControl’s toolbar is clicked? If yes, I would like to inform you that you cannot modify this default list of filters. However, you can set the visibility of the “Save” button to False
C1PrintPreviewControl1.ToolBars.File.Save.Visible = False
and add an all new toolbar button performing the tasks as you expect. This has been explained in the following blog post, in general.
https://www.grapecity.com/en/blogs/adding-custom-button-preview-controls
For meeting your requirement, you can add a SaveFileDialog on the Click event of the button and add the filters you want.
https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-save-files-using-the-savefiledialog-component
Let me know if you face any issues.
Best Regards,
Esha
Note: C1Report is now obsolete (https://www.grapecity.com/en/forums/winforms-edition/c1report-is-now-obsolete-t).
Posted 27 November 2018, 5:42 am EST
Thank you