XtraReport3 xtraReport = new XtraReport3(); var mlc = sp.tiaoma.ToList(); xtraReport.DataSource = mlc; ReportPrintTool tool = new ReportPrintTool(xtraReport); //操作要显示什么按钮 tool.PrintingSystem.SetCommandVisibility(new PrintingSystemCommand[]{ PrintingSystemCommand.Open, PrintingSystemCommand.Save, PrintingSystemCommand.ClosePreview, PrintingSystemCommand.Customize, PrintingSystemCommand.SendCsv, PrintingSystemCommand.SendFile, PrintingSystemCommand.SendGraphic, PrintingSystemCommand.SendMht, PrintingSystemCommand.SendPdf, PrintingSystemCommand.SendRtf, PrintingSystemCommand.SendTxt, PrintingSystemCommand.SendXls }, CommandVisibility.None); tool.ShowPreview();
原文地址:https://www.cnblogs.com/woaijingjing/p/10557573.html
时间: 2024-10-30 04:39:40