执行在C#水晶报表时无效TLV记录 [英] Invalid TLV record when executing crystal reports in c#

查看:1472
本文介绍了执行在C#水晶报表时无效TLV记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个C#程序在那里将显示已使用水晶报表创建的报表。我已经对报告进行。但后来,当我试图查看在C#中报告它促使我的错误是无效TLV记录。什么可能是这个原因?请帮忙。谢谢

I am creating a C# program where it will display a report that was created using a crystal report. I'm already done with the report. But then, when I tried to view the report in C# it prompted me an error which is "INVALID TLV RECORD". What might be the reason for this? Please help. Thanks.

代码:

private void reportViewer1_Load(object sender, EventArgs e)
    {
        CRAXDRT.Report rpt = new CRAXDRT.Report();
        CRAXDRT.Application app = new CRAXDRT.Application();
        rpt = app.OpenReport(Application.StartupPath + "\\Reports\\Pay2Final.rpt", null);
    }



错误消息:

Error Message:

推荐答案

试试这个

无效TLV记录的错误信息可能会出现,原因如下:

The "Invalid TLV Record" error message may appear for the following reasons:

有缺失的运行时文件客户端计算机。请与Crystal Reports的安装开发人员运行时帮助文件(Runtime.chm)所需的运行时文件的列表。

There are missing runtime files on the client computer. Check the Developer Runtime Help file (Runtime.chm) installed with Crystal Reports for a list of required runtime files.

UFManager.dll'没有分配给客户端计算机。确保它位于C:\Program Files\Common Files\Crystal Decisions\2.0\bin文件夹中。

'UFManager.dll' is not distributed to the client computer. Ensure that it is located in the "C:\Program Files\Common Files\Crystal Decisions\2.0\bin" folder.

Crqe.dll未注册客户端计算机上。在任务栏上,单击开始按钮,然后单击运行。在打开文本框中,键入regsvr32。例如,

Crqe.dll is not registered on the client computer. On the taskbar, click the 'Start' button, and then click 'Run'. In the 'Open' text box, type 'regsvr32 '. For example,

REGSVR32C:\program files\common files\crystal decisions\2.0\bin\crqe.dll

regsvr32 "c:\program files\common files\crystal decisions\2.0\bin\crqe.dll"

报告文件已损坏。欲了解更多信息,请参阅知识库文章c2005670。

The report file has become corrupted. For more information, refer to knowledge base article c2005670.

客户端计算机不具有'CommonFiles注册表子项。要创建此注册表子项,请按照下列步骤操作:

The client computer does not have the 'CommonFiles' registry subkey. To create this registry subkey, follow these steps:

====================
警告

==================== WARNING:

使用注册表编辑器会导致,可能需要重新安装
操作系统的严重
的问题。 Crystal Decisions的不是
负责使用
Windows注册表编辑器而造成的任何问题。使用您自己的风险注册表
编辑器。之前对其进行编辑建议
你备份注册表。

Using the Registry Editor can cause serious problems that may require reinstalling the operating system. Crystal Decisions is not responsible for any problems resulting from using the Windows Registry Editor. Use the Registry Editor at your own risk. It is recommended that you back up the registry before you edit it.

====================

====================


  1. 在任务栏上,单击开始按钮,然后单击运行。

  1. On the taskbar, click the 'Start' button, and then click 'Run'.

在打开组合框中键入regedit,然后单击确定。

Type 'Regedit' in the 'Open' combo-box, and then click 'OK'.

展开注册表项:

\HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\9.0\Crystal报告

\HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\9.0\Crystal Reports


  1. 右键点击水晶报表文件夹,选择新建| 字符串值,并命名新键CommonFiles。

  1. Right-click the 'Crystal Reports' folder, select 'New' | 'String Value', and name the new key 'CommonFiles'.

右键点击CommonFiles子项中,选择修改,并在数值数据文本框中键入以下值:

Right-click the 'CommonFiles' subkey, select 'Modify', and type the following value in the 'Value data' text box:

C:\Program Files\Common Files\Crystal Decisions\2.0\bin\

"C:\Program Files\Common Files\Crystal Decisions\2.0\bin\"

或检查此链接

http://it.toolbox.com/wiki/index.php/Solve_the_%22Invalid_TLV_Record%22_error_in_running_Crystal_Report

这篇关于执行在C#水晶报表时无效TLV记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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