在VB6.0应用中避免DLL数据报告安装错误

发表于:2007-06-21来源:作者:点击数: 标签:
Avoid DLL Data Report installation errors for VB 6.0 apps If you need down and dirty reporting in your VB data application, the Data Report control provides a great way to offer quick reports. However, when you use this tool, make certain

   
  Avoid DLL Data Report installation errors for VB 6.0 apps

If you need down and dirty reporting in your VB data application,
the Data Report control provides a great way to offer quick

reports. However, when you use this tool, make certain you reference
the correct DLL.

As reported in the Microsoft Knowledge base, Visual Basic contains two
DLLs for the Data Report: Msdbrpt.dll and Msdbrptr.dll. When you build
a report layout at design-time, you use the Msdbrpt.dll. However, for
your application users to view and print the report, your compiled
code will need the Msdbrptr.dll library, (the run-time DLL). Also keep
in mind that when you add the Data Report component to your project
through the Add Components dialog box, VB installs the design-time
version of the DLL.

To ensure that you have the proper reference, manually check the file
names in the References dialog box. The main list of references will
display two Microsoft Data Report Designer 6.0 options, so check the
Location paths to determine the design-time from the run-time version.

原文转自:http://www.ltesting.net