| Exam Code/Number: | 070-543Join the discussion |
| Exam Name: | TS: Visual Studio Tools for 2007 MS Office System (VTSO) |
| Certification: | Microsoft |
| Question Number: | 120 |
| Publish Date: | Aug 21, 2026 |
|
Rating
100%
|
|
You create an add-in for Microsoft Office Outlook by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in must set up a WindowSelectionChange event for the Outlook e-mail messages by using Microsoft Office Word as the editor.
You write the following lines of code. (Line numbers are included for reference only.)
01 void WindowSelectionChange ( Word.Selection Sel ) {
02 Outlook.Inspector ins = Application.ActiveInspector ();
03 if ( ins.EditorType == Outlook.OlEditorType.olEditorWord ) {
04 ...
05 app.WindowSelectionChange += new
06 Word.ApplicationEvents4_WindowSelectionChangeEventHandler
07 ( WindowSelectionChange );
08 }
09 }
You need to bind the event to the Word application object.
Which code segment should you insert at line 04?
You are creating an add-in for Microsoft Office Word by using Visual Studio Tools for the Microsoft Office System (VSTO).
You create the following objects in the add-in:
a DataSource object named ExpenseBindingSource
a TableAdaptor object named ExpenseTableAdapter
a DataSet object named ExpenseData
a CachedDataItem object named DI
The ExpenseData object contains a table named Expenses. The DI object contains a data island of the ExpenseData object.
You need to ensure that any changes in the content of the DI object are updated in the Expenses table.
Which code segment should you use?
You create a document-level solution for Microsoft Office 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO). You publish the solution to a folder on a network share. You copy a new version of the solution to a subfolder of the folder. You need to ensure that the users are redirected to the new version of the solution when they open the solution from the network share. What should you do?
You develop an add-in for Microsoft Office Excel by using Visual Studio Tools for the
Microsoft Office System (VSTO). The add-in contains a class that uses the following method.
public void ProcessCells() {
Excel.Worksheet ws = Application.ActiveSheet as
Excel.Worksheet;
List<object> values = new List<object>();
//Your code goes here
}
The add-in must retrieve the values for the cells in the range A1 through E3.
You need to exclude empty cell values when you retrieve cell values from the range.
Which code segment should you use?
You create a document-level solution by using Visual Studio Tools for the Microsoft Office System (VSTO). The solution uses an assembly named MyAssembly. MyAssembly is located in the C:\Assemblies\ folder. A Microsoft Office Word 2003 document named MyWordDocument is located in the C:\Documents\ folder. You need to associate MyAssembly with MyWordDocument if managed extensions are enabled in MyWordDocument. Which code segment should you use?