FIX: Report Wizard Error # 11 in Getpicture With Long Table Name (221616)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q221616

SYMPTOMS

Using the Report Wizard to create a report based on a long table name that is in a database container causes the following error message to occur:
Error #11 in getpicture (0): Function argument value, type, or count is invalid.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

Steps to Reproduce Behavior

  1. Run the following code in the Command window:
       CREATE DATABASE TEST
       CREATE TABLE "This is a Test" (name C(5), num n(5))
    						
  2. From the Tools menu, choose Wizards, and then select Report.
  3. In the Wizard Selection dialog box, select Report Wizard.
  4. In Step 1 of the Report Wizard, select the table created in step 1.
  5. Once all the fields have been transferred into the Selected fields list box, click the Finish button.
  6. In Step 6 of Report Wizard, make sure to select the "Use display setting stored in the database" check box.
  7. Select the Preview button.

RESULTS: The Report Wizard produces the following message:
Error #11 in getpicture (0): Function argument value, type, or count is invalid.
If the "Use display setting stored in the database" check box is not selected, the error does not occur.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbReportWriter kbVS600sp3fix kbwizard KB221616