Microsoft KB Archive/931404

= The QueryCancelDocumentClose event is not fired when you close a stencil in Visio 2007 =

Article ID: 931404

Article Last Modified on 10/15/2007

-

APPLIES TO


 * Microsoft Office Visio Professional 2007
 * Microsoft Office Visio Standard 2007

-



SYMPTOMS
In Microsoft Office Visio 2007, you create custom code that uses an event handler for the QueryCancelDocumentClose event. When you close a stencil in a drawing, the BeforeDocumentClose event is fired as expected. However, the QueryCancelDocumentClose event is not fired.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
The QueryCancelDocumentClose event occurs before the program closes a document in response to a user action in the user interface. For more information about the QueryCancelDocumentClose event, see the Microsoft Office Visio 2007 Software Development Kit (SDK). To obtain the Visio 2007 SDK, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=373D34B8-5EF7-4E6E-A582-C8D6B5EE4E33&amp;displaylang=en

Additional query words: vso2007 visio2007

Keywords: kbtshoot kbbug kbprogramming kbpending kbexpertiseinter KB931404

-

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

© Microsoft Corporation. All rights reserved.