Invalid TLV record when executing crystal reports in c#(在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.
=====================
====================
在任务栏上,单击开始"按钮,然后单击运行".
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
右击Crystal Reports"文件夹,选择新建"|字符串值",并将新键命名为CommonFiles".
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记录无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在c#中执行水晶报告时TLV记录无效
基础教程推荐
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 如何激活MC67中的红灯 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- rabbitmq 的 REST API 2022-01-01