-
February 5th, 2012, 05:40 AM
#1
Subreport rdlc c#2010
Hi,
It's my first SubReport, and Iam trying to make some RDLC -Subreport. Can anybody can show me the further steps...?
The below code is for main report... But I want to display this report (For_RDLC_Check_Appln.Check_Report1.rdlc) and subreport in reportviewer...
Is it possible? Any sample cods for Subreport ?
Thanks
reportViewer1.RefreshReport();
Microsoft.Reporting.WinForms.ReportDataSource ReptRDS = new Microsoft.Reporting.WinForms.ReportDataSource();
ReptRDS.Name = "DataSet1";
ReptRDS.Value = MyReptDataTable;
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(ReptRDS);
reportViewer1.LocalReport.ReportEmbeddedResource ="For_RDLC_Check_Appln.Check_Report1.rdlc";
reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
reportViewer1.RefreshReport();
reportViewer1.Visible = true;
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|