TS: Microsoft Visio 2007, Application Development
You are developing an Office Visio 2007 Shared Add-in. You construct an event sink class
that listens to events from the Visio 2007 Application, Document, Page, and Shape objects.
The VisEventProc function has the following signature: Public Function VisEventProc(
ByVal eventCode As Short, ByVal source As Object, ByVal eventId As Integer,ByVal
eventSequenceNumber As Integer, ByVal subject As Object, ByVal moreInformation As
Object) As ObjectYou need to construct a switch to identify the object that raised the event.
Which parameter should you use?
You are developing an Office Visio 2007 Shared Add-in. You need to prevent shape
deletions by using custom logic. What should you do?
A. Configure the add-in to listen to the QueryCancelPageDelete event of the Visio 2007
B. Configure the add-in to listen to the QueryCancelSelectionDelete event of the Visio 2007
C. Configure the add-in to listen to the BeforeShapeDelete event of the Visio 2007
D. Configure the add-in to listen to the BeforeSelectionDelete event of the Visio 2007
You plan to create an Office Visio 2007 application. You need to prevent Visio 2007 from
failing in the event that there is a fault in the application. What are three possible ways to
achieve this goal? (Each correct answer presents a complete solution. Choose three.)
A. Create a VBA solution.
B. Create a VSL solution.
C. Create an EXE add-on solution.
D. Create a Shared Add-in solution, and then use the COM Shim Wizard to create a DLL.
E. Create a Shared Add-in solution by using Microsoft Visual Studio 2005 Tools for Office
Answer: C, D, E
You need to develop an Office Visio 2007 solution for 1,000 computers that run Visio 2007.