定制XtraReport 的预览窗口的按钮

        private void button1_Click(object sender, EventArgs e)
        
{
            XtraReport1 xr 
= new XtraReport1();
            xr.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Print, CommandVisibility.None);
            xr.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.PrintDirect  , CommandVisibility.None);
            xr.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.ExportFile , CommandVisibility.None);
            xr.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.SendFile , CommandVisibility.None);
            xr.ShowPreviewDialog();
        }

详见官方网站的资料

http://www.devexpress.com/Support/Center/KB/p/A2625.aspx

原文地址:https://www.cnblogs.com/szyicol/p/1596426.html