本文整理汇总了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();
}
}
示例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();
}
}
示例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;
}
}
示例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;
}
}