Microsoft KB Archive/186458

From BetaArchive Wiki

Article ID: 186458

Article Last Modified on 1/23/2007



APPLIES TO

  • Microsoft Access 97 Standard Edition



This article was previously published under Q186458

Moderate: Requires basic macro, coding, and interoperability skills.


SYMPTOMS

You can use the ShowPrintDialog argument of the PrintSnapshot method to prevent the Print dialog box from being displayed. However, in Microsoft Access 97, if you set the ShowPrintDialog argument to False, the Snapshot file is not printed.

If you leave the ShowPrintDialog argument blank or set it to True, the Print dialog box is displayed and the Snapshot file is printed.

RESOLUTION

A newer version of the Snapshot viewer is available for download from the Microsoft Web Site. For more information about obtaining this file, see the following article in the Microsoft Knowledge Base:

175274 Microsoft Snapshot Viewer Available in Download Center


STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 97.


MORE INFORMATION

Steps to Reproduce Problem


  1. In Microsoft Access 97, open a new blank database.
  2. Create a new blank form.
  3. On the Insert menu, click ActiveX Control, select the Snapshot Viewer Control, version 8.0, and click OK.
  4. On the Edit menu, click Snapshot Viewer Control Object, and select Properties.
  5. On the General tab, use the Browse button or the Snapshot Path text box to enter the path to a valid Snapshot file, and click OK.
  6. Press CTRL+G to display the Debug window.
  7. In the Debug window, enter the following, and then press ENTER:

    Forms(0)!ActiveXctl0.PrintSnapshot False

    NOTE: The AxtiveX Control name ends in lowercase CTL followed by a zero (0).
  8. Note that nothing happens. The expected result is that the Print dialog box is not displayed but that the Snapshot file is printed.

    NOTE: If you execute the following in the Debug window

    Forms(0)!ActiveXctl0.PrintSnapshot True


    the Print dialog box is displayed, and then the file is printed to the specified printer.



Additional query words: snap shot

Keywords: kbbug kbfix KB186458