Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every body i have a windows form with gridview which bind from datatable and i have adataset which gets values from datatable it works fine and i try it in reportviewer it works correctly but how can i print RDLC direct without reportviewer
Posted
Comments
ost3z 23-Apr-15 17:08pm    
i use this code

LocalReport report = new LocalReport();
report.DataSources.Add(new ReportDataSource("DataTable1", ds.Tables[0]));
report.ReportEmbeddedResource = "Market.Report1.rdlc";
printDocument1.Print();

datset have values but it print nothing the reporter is empty

beacsuce it cant read the path of Report1.rdlc despite its correct path
i also try that to get the correct path
Application.StartupPath + "\\Report1.rdlc";
but nothing
can any one help ؟؟

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900