BUG: Run-time Error 713 Opening Data Report in Distributed Application

ID: Q248055


The information in this article applies to:
  • Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0


SYMPTOMS

You are distributing a Visual Basic application that includes a data report. After installation, you receive the following error when you attempt to open the data report from your application:

Run-time error '713': Application-defined or object defined error


CAUSE

The Data Report run-time file (Msdbrptr.dll) was not included in your setup package.


RESOLUTION

Here are two methods you can use:

  • Open your project, and include a reference to the Msdbrptr.dll file. This file is listed as Microsoft Data Report Designer v6.0 in the References dialog box. You may see Microsoft Data Report Designer v6.0 listed more than once. Make certain that the file associated with the reference is Msdbrptr.dll. Once the reference has been verified, rebuild your setup package.

    -or-


  • Manually include the Msdbrptr.dll file in the Package and Deployment Wizard (PDW.) You can add the file manually in the Included Files dialog box window when you run the PDW and then rebuild your setup package.



STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

There are two files installed by Visual Basic that are very similar. The two files are Msdbrpt.dll and MSdbrptr.dll. Both are listed in the References dialog box as Microsoft Data Report Designer v6.0. The Msdbrpt.dll file is the data report designer, and the Msdbrptr.dll file is the data report designer run-time. It is the run-time version of this file that you need to distribute with your application. There is no dependency file for Msdbrpt.dll, and if this file is installed with your application a data report will not function properly.

There are a number of ways in which to add a data report to a Visual Basic project. With two known exceptions, Visual Basic adds the correct reference. If you make this reference manually, the similarity between these two files makes it easy to reference the wrong file. The other way to get an incorrect reference is to add the data report component through the Add Components dialog box. This adds a reference to the data report instead of the data report run-time. Under these circumstances, the data report works only in the development environment or when installed to a computer that has Visual Basic installed.


REFERENCES

© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Matthew Hofacker, Microsoft Corporation

Additional query words: DataReport

Keywords : kbwizard kbAppSetup kbDatabase kbDataBinding kbDeployment kbReportWriter kbVBp kbVBp600bug kbGrpVB kbDSupport
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: December 28, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.