Search code examples
c#crystal-reports

Crystal Report Getting Error on Load Time


I have a crystal report on my form1 and a button, button will press then report will be loaded. But i am getting this errors.

enter image description here

enter image description here

My Button code is

private void button1_Click(object sender, EventArgs e)
{
    crystalReportViewer1.ReportSource = (@"C:\Users\Administrator\Desktop\WindowsApplication1\WindowsApplication1\CrystalReport1.rpt");
    crystalReportViewer1.DisplayToolbar = true;
}

Solution

  • Change your Solution Plateform to X86. I think may be your machine is 64 bit and you make instalation for 32 bit only.

    enter image description here