Crystal报告无法在系统中打开 [英] Crystal reports failed to open in clent system

查看:159
本文介绍了Crystal报告无法在系统中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Visual Studio的VS 2015和Crystal Report版本用作13.0.21.2533,将.NET的Crystal Report运行时版本(64位)用作13.0.12.1494

虽然我使用Crystal报表运行时客户端系统中的引擎(32位)和版本是13.0.18.2192



创建EXE文件时我在VS 2015中使用x86平台



Crystal报表在开发人员系统中工作正常,但无法在客户端系统中打开



我还将Crystal Report复制到客户端系统与代码中给出的路径相同



我使用Install Shield在VS 2015中制作EXE文件,这些所有文件都包含在制作EXE文件中



请帮我解决这个问题

谢谢



我有什么试过:



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:

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);
            }

推荐答案

您尚未将运行时组件正确安装到客户端系统上。

请参阅InstallShield文档包含可再发行组件的Installshield文档 [ ^ ]



此CodeProject问题的已接受解决方案也可能有助于如何包含我的包和部署项目中的Crystal Report Runtime? [ ^ ]
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 ?[^]


这篇关于Crystal报告无法在系统中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆