Last post Apr 18, 2017 06:35 AM by Deepak Panchal
Apr 17, 2017 12:15 PM|sirine|LINK
Apr 17, 2017 02:01 PM|sirine|LINK
private void imprimerBP_Click(object sender, EventArgs e)
BonPrestaion f2 = new BonPrestaion();
BonP cr = new BonP();
TextObject text = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text10"];
text.Text = serviceI.Text;
f2.crystalReportViewer1.ReportSource = cr;
There is a problem in this line (f2.crystalReportViewer1.ReportSource = cr;)
Apr 18, 2017 01:23 AM|PaulTheSmith|LINK
There is a problem
Apr 18, 2017 03:32 AM|Eric Du|LINK
About how to pass value to Crystal Report, please refer to the following tutorials:
To Pass TextBox Value to Crystal Report without using Database:
Passing parameters to crystal reports in C#:
Apr 18, 2017 06:35 AM|Deepak Panchal|LINK
did you get any error?
did you try to load .RPT file?
if not then you can try to load it.
you can try something like below.
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load(@"CRYSTAL REPORT PATH HERE\CrystalReport1.rpt");
crystalReportViewer1.ReportSource = cryRpt;
if you get error, "No valid report source is available"
then you can refer link below to get the solution.
ASP.Net Crystal Reports 13 ( Visual Studio 2010 ) CrystalReportViewer
Search Button Issue - No valid report source is available