当前位置: 首页>>代码示例>>C#>>正文


C# ReportViewer.Show方法代码示例

本文整理汇总了C#中ReportViewer.Show方法的典型用法代码示例。如果您正苦于以下问题:C# ReportViewer.Show方法的具体用法?C# ReportViewer.Show怎么用?C# ReportViewer.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ReportViewer的用法示例。


在下文中一共展示了ReportViewer.Show方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btnPrint_Click

 private void btnPrint_Click(object sender, EventArgs e)
 {
     var reportViewer = new ReportViewer();
     reportViewer.HeaderWidthPercent = 100;
     reportViewer.ContentWidthPercent = 100;
     reportViewer.RowsPerPage = 30;
     reportViewer.HeaderContent = string.Format("<center><h2>Daily Collection Report for the Date of {0:dd/MM/yyyy} of {1}</h2></center>", this.dtValue.Text, ApplicationElements.loggedInEmployee.LoginId);
     reportViewer.GenerateFromGridView(this.dgvServiceReport, false);
     reportViewer.Show(this);
 }
开发者ID:prabhuashwin,项目名称:eTempleVinayaka,代码行数:10,代码来源:ServiceReportOperatorWise.cs

示例2: btnPrint_Click

 private void btnPrint_Click(object sender, EventArgs e)
 {
     if (cmbServiceType.SelectedIndex != 0)
     {
         var reportViewer = new ReportViewer();
         reportViewer.HeaderWidthPercent = 100;
         reportViewer.ContentWidthPercent = 100;
         reportViewer.RowsPerPage = 30;
         //reportViewer.HeaderContent = string.Format("<h2 style='margin-left:100px'>Daily Collection Report for the Date of {0:dd/MM/yyyy}</h2>", this.dtpFromDate.Value);
         reportViewer.HeaderContent = string.Format("<div style='float: left; width: 350px;'>Date : {0: dd-MM-YYYY} </div>", dtValue.Text);
         reportViewer.GenerateFromGridView(this.dgvServiceReport, false);
         reportViewer.Show(this);
     }
     else
         MessageBox.Show("Please select a service type..");
 }
开发者ID:prabhuashwin,项目名称:eTempleVinayaka,代码行数:16,代码来源:ServerReportAddresses.cs

示例3: btnPrint_Click

        private void btnPrint_Click(object sender, EventArgs e)
        {
            var reportViewer = new ReportViewer();
            reportViewer.HeaderWidthPercent = 100;
            reportViewer.ContentWidthPercent = 100;
            reportViewer.RowsPerPage = 30;
            var duration = dtToValue.Value - dtFrmValue.Value;

            if (duration.Days > 0)
            {
                reportViewer.HeaderContent = string.Format("<center><h2>Daily Collection Report from {0:dd/MM/yyyy} to {1:dd/MM/yyyy}</h2></center>", this.dtFrmValue.Value, this.dtToValue.Value);
            }
            else
            {
                reportViewer.HeaderContent = string.Format("<center><h2>Daily Collection Report for the Date of {0:dd/MM/yyyy}</h2></center>", this.dtFrmValue.Value);
            }
            //reportViewer.HeaderContent = string.Format("<h2 style='margin-left:100px'>Daily Collection Report for the Date of {0:dd/MM/yyyy}</h2>", this.dtFrmValue.Text);
            //reportViewer.HeaderContent = string.Format("<div style='float: left; width: 350px;'>Date : {0: dd-MM-YYYY} </div>", dtFrmValue.Text);
            reportViewer.GenerateFromGridView(this.dgvServiceReport, false);
            reportViewer.Show(this);
        }
开发者ID:prabhuashwin,项目名称:eTempleVinayaka,代码行数:21,代码来源:DCRForm.cs


注:本文中的ReportViewer.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。