Tag: rdlc

从RDLC报告中的Render PDF上不显示Base64图像

我正在尝试使用RDLC报告中的参数( @CustomerSign )显示图像(base64字符串) (我从报告中呈现PDF文件,我看到的是PDF文件) 我已经配置了如下图像属性: 选择图像源: Database 使用此字段: =Convert.FromBase64String(Parameters!CustomerSign.Value) 使用此MIME类型: image/png 并传递参数: ReportParameter CustomerSign = new ReportParameter(“CustomerSign”, obj.SignImage); rptvw.LocalReport.SetParameters(CustomerSign); 但图像显示红十字[X]而不是图像,并没有给出错误! 可能是什么问题? 我也尝试过: 如何将PNG图像(作为内存流)渲染到.NET ReportViewer报表界面上

从列表(entity framework)提供RDLC(本地)报告报告

我得到了一个学生的BiningList (entity framework创建的类)。 我只想从中提供我的RDLC报告,而不是使用DataSet或存储过程。 该类包含多个属性,如: string Name; string FamilyName; string Mid; DateTime Birth; … 任何人都可以帮助我吗?

Rdlc tablix列标题在每个页面上不重复“已在每个页面上重复列标题”已经过检查

这是我的tablix属性 我错过了什么? 请帮忙谢谢!

从DataGridView在运行时动态创建RDLC报告

我有一个表单AdvancedSearchForm与DataGridView控件dgrData和一个按钮Report在C#Winform。 单击按钮Report ,我希望带有ReportView控件的表单显示与DataGridView中具有相同列标题的列相同的列。 使用DataGridView和Button进行表单 单击按钮“报告”时预期的输出: 我的DatagridView ( dgrData )控件与 SQL “Select Id, c_Name from Country” 的ConnectionString server=localhost;User Id=root;password=root;Persist Security Info=True;database=country_state 要在运行时将数据加载到网格,我准备以下DataAdapter : DataAdapter dataAdapter = DataAdapter.Current; // I am passing the SQL statement and the table name to my database which knows the ConnectionString within the LoadData function DataTable dt0 = dataAdapter.LoadData(“select Id, c_Name from […]

在rdlc中调用钻取报告

我有一个rdlc报告名称attendence.rdlc,它带有三个参数employeeId,monthId和year来生成员工的月度出勤状态。喜欢 当我点击>>按钮喜欢: 我需要调用钻取(在我的情况下是相同的报告)报告增加月份和年份的参数。 如何在rdlc报告中创建钻取甚至处理程序?

如何直接打印rdlc报告而不在C#中显示PrintDialog()?

我有一个应用程序,我必须打印RDLC报告,而不显示printDialog并使用应用程序中定义的默认指定的打印机。 下面是我的测试实现代码。 Microsoft.Reporting.WinForms.ReportViewer reportViewerSales = new Microsoft.Reporting.WinForms.ReportViewer(); Microsoft.Reporting.WinForms.ReportDataSource reportDataSourceSales = new Microsoft.Reporting.WinForms.ReportDataSource(); reportViewerSales.Reset(); reportViewerSales.LocalReport.ReportPath = @”Sales.rdlc”; reportDataSourceSales.Name = “SalesTableDataSet”; int i = 1; foreach (Product item in ProductSalesList) { dataset.CurrentSales.AddCurrentSalesRow(i, item.Name, item.Quantity.ToString(), item.Price.ToString(), item.Price.ToString()); i++; } reportDataSourceSales.Value = dataset.CurrentSales; reportViewerSales.LocalReport.DataSources.Add(reportDataSourceSales); dataset.EndInit(); reportViewerSales.RefreshReport(); reportViewerSales.RenderingComplete += new RenderingCompleteEventHandler(PrintSales); 这是我的渲染完成方法 public void PrintSales(object sender, RenderingCompleteEventArgs e) { try […]