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

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

问题描述

我正在创建一个C#程序,它将显示一个使用水晶报告创建的报告。我已经完成了报告。但是,然后,当我试图查看在C#中的报告,它提示我一个错误是 INVALID TLV RECORD 。这可能是什么原因?请帮忙。感谢。



代码:

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

错误消息:

解决方案

p>

出现无效的TLV记录错误消息的原因如下:



客户端计算机。检查随Crystal Reports安装的Developer Runtime帮助文件(Runtime.chm)的所需运行时文件列表。



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



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



regsvr32c:\program files\common files\crystal decision\2.0\bin\crqe.dll



报告文件已损坏。有关详细信息,请参阅知识库文章c2005670。



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



==================
警告:



使用注册表编辑器可能导致严重的
问题,可能需要重新安装
操作系统。 Crystal Decisions不是
负责使用
的Windows注册表编辑器导致的任何问题。使用Registry
编辑器自行承担风险。建议
在编辑注册表之前备份注册表。



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


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


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


  3. 展开注册表项:


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


  1. 右键单击Crystal Reports文件夹,选择新建| 'String Value',并命名新的键'CommonFiles'。


  2. 右键单击CommonFiles子项,选择修改,然后在值数据文本框中键入以下值:


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


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.

Code:

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:

解决方案

try this

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

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' 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 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,

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

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

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

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

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. On the taskbar, click the 'Start' button, and then click 'Run'.

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

  3. Expand the registry key:

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

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

  2. 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\"

or check this link

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

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

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