Webform crystal report viewer is inaccessible due to its protection level

  • Thread starter Thread starter MianSufyan
  • Start date Start date
M

MianSufyan

Guest
Hi! i am using visual studio 2013 version

The error occured in my code!

private void btnclick _Click(object sender, EventArgs e)
{
WebForm1 f2 = new WebForm1();
CrystalReport2 cr = new CrystalReport2();
TextObject text = (TextObject)cr.ReportDefinition.Sections["Section1"].ReportObjects["Text6"];
text.Text = examination.Text;
f2.CrystalReportViewer1.ReportSource = cr;
Response.Redirect("WebForm1.aspx");

}

Error occur in the line f2.CrystalReportViewer1.ReportSource = cr; when trying to use CrystalReportViewer1

on btnclick code.

Please! Help me to solve this problem

Continue reading...
 
Back
Top