在报告中打印后,我想将列为“Print”的表的数据更新为“Y”,否则打印“N”。在报告中打印后,我想将列为“Print”的表的数据更新为“Y”,否则打印“N”。
mwecs4sa1#
private void CreateStripButton(ReportViewer ReportViewer, EventHandler Print_Click, string ToolTip, int Itemindex, Image img) { ToolStrip toolStrip = (ToolStrip)ReportViewer.Controls.Find("toolStrip1", true)[0]; ToolStripButton btn = new ToolStripButton(); btn.Image = img; btn.ToolTipText = ToolTip; btn.Click += new EventHandler(Print_Click); toolStrip.Items.Insert(Itemindex, btn); }
1条答案
按热度按时间mwecs4sa1#