<legend id='0MElE'><style id='0MElE'><dir id='0MElE'><q id='0MElE'></q></dir></style></legend>

    <tfoot id='0MElE'></tfoot>

      <bdo id='0MElE'></bdo><ul id='0MElE'></ul>
    1. <small id='0MElE'></small><noframes id='0MElE'>

      <i id='0MElE'><tr id='0MElE'><dt id='0MElE'><q id='0MElE'><span id='0MElE'><b id='0MElE'><form id='0MElE'><ins id='0MElE'></ins><ul id='0MElE'></ul><sub id='0MElE'></sub></form><legend id='0MElE'></legend><bdo id='0MElE'><pre id='0MElE'><center id='0MElE'></center></pre></bdo></b><th id='0MElE'></th></span></q></dt></tr></i><div id='0MElE'><tfoot id='0MElE'></tfoot><dl id='0MElE'><fieldset id='0MElE'></fieldset></dl></div>
    2. CrystalReportViewer 打印

      CrystalReportViewer print(CrystalReportViewer 打印)

        • <i id='WbS7B'><tr id='WbS7B'><dt id='WbS7B'><q id='WbS7B'><span id='WbS7B'><b id='WbS7B'><form id='WbS7B'><ins id='WbS7B'></ins><ul id='WbS7B'></ul><sub id='WbS7B'></sub></form><legend id='WbS7B'></legend><bdo id='WbS7B'><pre id='WbS7B'><center id='WbS7B'></center></pre></bdo></b><th id='WbS7B'></th></span></q></dt></tr></i><div id='WbS7B'><tfoot id='WbS7B'></tfoot><dl id='WbS7B'><fieldset id='WbS7B'></fieldset></dl></div>
          • <bdo id='WbS7B'></bdo><ul id='WbS7B'></ul>
            <tfoot id='WbS7B'></tfoot>

              <small id='WbS7B'></small><noframes id='WbS7B'>

                  <tbody id='WbS7B'></tbody>
                <legend id='WbS7B'><style id='WbS7B'><dir id='WbS7B'><q id='WbS7B'></q></dir></style></legend>

                本文介绍了CrystalReportViewer 打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想在ASP.NET C#中访问CrystalReportViewer的打印事件(当我点击CrystalReportViewer的打印按钮时),如何?

                I would like to access the Print event of CrystalReportViewer(while I click the Print button of CrystalReportViewer) in ASP.NET C#, How ?

                推荐答案

                像下面这样的东西应该可以工作.希望对您有所帮助.

                Something like the below should work. Hope it helps.

                    public Form1()
                    {
                        InitializeComponent();
                        foreach (ToolStrip ts in crystalReportViewer1.Controls.OfType<ToolStrip>())
                        {
                            foreach (ToolStripButton tsb in ts.Items.OfType<ToolStripButton>())
                            {
                                //hacky but should work. you can probably figure out a better method
                                if (tsb.ToolTipText.ToLower().Contains("print"))
                                {
                                    //Adding a handler for our propose
                                    tsb.Click += new EventHandler(printButton_Click);
                                }
                            }
                        } 
                    }
                
                    private void printButton_Click(object sender, EventArgs e)
                    {
                        MessageBox.Show("Printed");
                    }
                

                这篇关于CrystalReportViewer 打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                Accessing attribute info from DTE(从 DTE 访问属性信息)
                c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                C# Attributes and their uses(C# 属性及其用途)
                C# - Getting all enums value by attribute(C# - 按属性获取所有枚举值)

                  <tbody id='Z8gAs'></tbody>
                  <bdo id='Z8gAs'></bdo><ul id='Z8gAs'></ul>
                    <legend id='Z8gAs'><style id='Z8gAs'><dir id='Z8gAs'><q id='Z8gAs'></q></dir></style></legend>

                  1. <small id='Z8gAs'></small><noframes id='Z8gAs'>

                  2. <i id='Z8gAs'><tr id='Z8gAs'><dt id='Z8gAs'><q id='Z8gAs'><span id='Z8gAs'><b id='Z8gAs'><form id='Z8gAs'><ins id='Z8gAs'></ins><ul id='Z8gAs'></ul><sub id='Z8gAs'></sub></form><legend id='Z8gAs'></legend><bdo id='Z8gAs'><pre id='Z8gAs'><center id='Z8gAs'></center></pre></bdo></b><th id='Z8gAs'></th></span></q></dt></tr></i><div id='Z8gAs'><tfoot id='Z8gAs'></tfoot><dl id='Z8gAs'><fieldset id='Z8gAs'></fieldset></dl></div>

                      1. <tfoot id='Z8gAs'></tfoot>