Microsoft KB Archive/186458

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

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.



Steps to Reproduce Problem
 In Microsoft Access 97, open a new blank database. Create a new blank form. On the Insert menu, click ActiveX Control, select the Snapshot Viewer Control, version 8.0, and click OK. On the Edit menu, click Snapshot Viewer Control Object, and select Properties. 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.</li> Press CTRL+G to display the Debug window.</li> 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).</li> 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.</li></ol>

Additional query words: snap shot

Keywords: kbbug kbfix KB186458

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.