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

Invalid TLV record when executing crystal reports in c#(在c#中执行水晶报告时TLV记录无效)
本文介绍了在c#中执行水晶报告时TLV记录无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

错误信息:

推荐答案

试试这个

无效的 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 FilesCommon FilesCrystal Decisions2.0in"文件夹中.

'UFManager.dll' is not distributed to the client computer. Ensure that it is located in the "C:Program FilesCommon FilesCrystal Decisions2.0in" 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,

regsvr32 "c:program filescommon files水晶决定2.0incrqe.dll"

regsvr32 "c:program filescommon filescrystal decisions2.0incrqe.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:

使用注册表编辑器可能会导致严重的可能需要重新安装的问题操作系统.水晶决定不是对使用造成的任何问题负责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_MACHINESOFTWARECrystal Decisions9.0Crystal Reports

HKEY_LOCAL_MACHINESOFTWARECrystal Decisions9.0Crystal Reports

  1. 右击Crystal Reports"文件夹,选择新建"|字符串值",并将新键命名为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 FilesCommon FilesCrystal Decisions2.0in"

"C:Program FilesCommon FilesCrystal Decisions2.0in"

或查看此链接

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

这篇关于在c#中执行水晶报告时TLV记录无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)