Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using VS 2015 and Crystal Report version for Visual Studio as 13.0.21.2533 and Crystal Report runtime engine for .NET (64 bit) as 13.0.12.1494
While i use Crystal report runtime engine (32 bit) and Version is 13.0.18.2192 in client system

While creating an EXE file i use x86 platform in VS 2015

Crystal reports is working fine in developer system, but failed to open in client system

I also copied the Crystal Report to client system as same as the path given in the code

And i use Install Shield to make EXE file in VS 2015, These all files are included for making EXE file

Kindly help me solve this problem
Thank you

What I have tried:

C#
try
            {
                if (e.ColumnIndex == 8)

                {

                    //check id value for current row

                    if (dataGridView1.CurrentRow.Cells[8].Value != null)

                    {
                        ReportDocument cryRpt = new ReportDocument();
                        RPT_CautionDeposit rptvt = new RPT_CautionDeposit();
                        PrintCautionDeposit pcd = new PrintCautionDeposit();
                        cryRpt.Load(@"C:\Reports\RPT_CautionDeposit.rpt");

                        TextObject text = (TextObject)cryRpt.ReportDefinition.Sections["Section3"].ReportObjects["Text12"];
                        TextObject text1 = (TextObject)cryRpt.ReportDefinition.Sections["Section3"].ReportObjects["Text11"];
                        TextObject text2 = (TextObject)cryRpt.ReportDefinition.Sections["Section3"].ReportObjects["Text10"];
                        TextObject text3 = (TextObject)cryRpt.ReportDefinition.Sections["Section3"].ReportObjects["Text17"];
                        TextObject text4 = (TextObject)cryRpt.ReportDefinition.Sections["Section3"].ReportObjects["Text14"];
                        TextObject text5 = (TextObject)cryRpt.ReportDefinition.Sections["Section3"].ReportObjects["Text16"];
                        text.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                        text1.Text = dataGridView1.CurrentRow.Cells[4].Value.ToString();
                        text2.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
                        text3.Text = dataGridView1.CurrentRow.Cells[5].Value.ToString();
                        text4.Text = dataGridView1.CurrentRow.Cells[6].Value.ToString();
                        text5.Text = dataGridView1.CurrentRow.Cells[7].Value.ToString();
                        pcd.CRV_CautionDeposit.ReportSource = cryRpt;
                        pcd.CRV_CautionDeposit.Refresh();
                        pcd.ShowDialog();

                    }

                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
Posted
Updated 16-Jan-18 0:24am

1 solution

You have not installed the runtime components correctly onto the Client system.
See the InstallShield documentation Installshield documentation for including Redistributables[^]

The accepted solution to this CodeProject question may also help how to include Crystal Report Runtime in my package and deployment project ?[^]
 
Share this answer
 

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