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


C# ReportViewer.ShowDialog方法代码示例

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


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

示例1: Create_Click

        private void Create_Click(object sender, EventArgs e)
        {
            if (fromDate.Validate && toDate.Validate)
            {
                Reports.Daybook Report = new Reports.Daybook();
                Report.ReportParameters["fromDate"].Value = fromDate.Value;
                Report.ReportParameters["toDate"].Value = toDate.Value;

                ReportViewer RV = new ReportViewer(Report);
                RV.ShowDialog();
            }
        }
开发者ID:irania,项目名称:tirax,代码行数:12,代码来源:DaybookReport.cs

示例2: Create_Click

        private void Create_Click(object sender, EventArgs e)
        {
            if (fromDate.Validate && toDate.Validate)
            {
                Reports.AccountTransactions Report = new Reports.AccountTransactions();
                Report.ReportParameters["Account"].Value = accountTextBox1.Value;
                Report.ReportParameters["fromDate"].Value = fromDate.Value;
                Report.ReportParameters["toDate"].Value = toDate.Value;

                ReportViewer RV = new ReportViewer(Report);
                RV.ShowDialog();
            }
        }
开发者ID:irania,项目名称:tirax,代码行数:13,代码来源:AccountReport.cs

示例3: InvPurDebCre

 //Invoice Purchase Debtors and creditors View
 public bool InvPurDebCre(Telerik.Windows.Controls.RadGridView radGridView)
 {
     try
     {
         CristalReportDataSourch(radGridView, MainWindow.petuniaDataSet.InvPurDebCrePaymentView, Variables.OperationTrypes.InvPurDebCre);
         InvPurDebCreCrystalReport invPurdebtCristalReport = new InvPurDebCreCrystalReport();
         invPurdebtCristalReport.SetDataSource(MainWindow.petuniaDataSet);
         invPurdebtCristalReport.SetParameterValue("CompanyName",Variables.CompanyInfo[0]);
         invPurdebtCristalReport.SetParameterValue("CompanyTitle",Variables.CompanyInfo[1]);
         invPurdebtCristalReport.SetParameterValue("CompanyAddress",Variables.CompanyInfo[2]);
         ReportViewer InvPurDebCreReportViewer = new ReportViewer();
         InvPurDebCreReportViewer.ReportViewerView.ViewerCore.ReportSource = invPurdebtCristalReport;
         InvPurDebCreReportViewer.ShowDialog();
         InvPurDebCreReportViewer.ReportViewerView.ViewerCore.CloseView(invPurdebtCristalReport);
         invPurdebtCristalReport.Close();
         invPurdebtCristalReport.Dispose();
         MainWindow.petuniaDataSet.InvPurDebCrePaymentView.Clear();
         MainWindow.petuniaDataSet.InvPurDebCrePaymentView.Dispose();
         return true;
     }
     catch (Exception x)
     {
         MessageBox.Show(x.Message);
         return false;
     }
 }
开发者ID:shuvo009,项目名称:ProcestaPetunia,代码行数:27,代码来源:GridViewModify.cs

示例4: InvoicePreview

        // Invoice Preview
        public bool InvoicePreview(Telerik.Windows.Controls.RadGridView radgridview, string invoiceNumbers, string customerName, string customerAddress, string total, string creditorsID, string paidAmount, string creaditAmount)
        {
            try
            {
                Procesta_Petunia.DataSet.DataSetPetunia crystalReportDataSet = new DataSet.DataSetPetunia();
                CristalReportDataSourch(radgridview, crystalReportDataSet.InvoiceMaker, Variables.OperationTrypes.Sales);
                InvoiceMakerCrystalReport invoicereport = new InvoiceMakerCrystalReport();
                invoicereport.SetDataSource(crystalReportDataSet);
                invoicereport.SetParameterValue("CompanyName", Variables.CompanyInfo[0]);
                invoicereport.SetParameterValue("CompanyTitle", Variables.CompanyInfo[1]);
                invoicereport.SetParameterValue("CompanyAddress", Variables.CompanyInfo[2]);
                invoicereport.SetParameterValue("InvoiceNumber", invoiceNumbers);
                invoicereport.SetParameterValue("CustomerName", customerName);
                invoicereport.SetParameterValue("CustomerAddress", customerAddress);
                invoicereport.SetParameterValue("CustomerId", creditorsID);
                invoicereport.SetParameterValue("TotalAmount", total);
                invoicereport.SetParameterValue("PayedAmount", paidAmount);
                invoicereport.SetParameterValue("CreditAmount", creaditAmount);
                invoicereport.SetParameterValue("AmountInText", new NumberToEnglish().changeNumericToWords(total));

                ReportViewer crystalReportViewer = new ReportViewer();
                crystalReportViewer.ReportViewerView.ViewerCore.ReportSource = invoicereport;
                crystalReportViewer.ShowDialog();
                crystalReportViewer.ReportViewerView.ViewerCore.CloseView(invoicereport);
                crystalReportViewer.ReportViewerView.ViewerCore.Dispose();
                invoicereport.Close();
                invoicereport.Dispose();
                crystalReportDataSet.Dispose();
                return true;
            }
            catch
            {

                return false;
            }
        }
开发者ID:shuvo009,项目名称:ProcestaPetunia,代码行数:37,代码来源:GridViewModify.cs


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