ACC97: PrintSnapshot (False) Method Does Not Print Snapshot File

ID: Q186458


The information in this article applies to:


SYMPTOMS

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

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:

Q175274 ACC97: Microsoft Snapshot Viewer Available on MSL


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          : kbdta 
Version           : WINDOWS:97
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: April 23, 1999