在c#中执行水晶报表时的无效TLV记录 您所在的位置:网站首页 水晶报表使用教程视频全集 在c#中执行水晶报表时的无效TLV记录

在c#中执行水晶报表时的无效TLV记录

2023-04-18 06:30| 来源: 网络整理| 查看: 265

百度翻译此文   有道翻译此文 问题描述

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: enter image description here

推荐答案

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.

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

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

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

Expand the registry key:

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

Right-click the 'Crystal Reports' folder, select 'New' | 'String Value', and name the new key '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\"

or check this link

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

其他推荐答案

This problem is also related to what I'm looking for. This problem is solved by registering the dll file via RegSVR32 for the crqe.dll file. If you have trouble registering the crqe.dll file try moving the file in the D or E folder and so on. Don't put it in another folder.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有