Online Access Free 70-543 Exam Questions
Exam Code: | 70-543 |
Exam Name: | TS: Visual Studio Tools for 2007 MS Office System (VTSO) |
Certification Provider: | Microsoft |
Free Question Number: | 120 |
Posted: | Aug 31, 2025 |
You create a custom template for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). You add a content control to the custom template. The content control is a placeholder for the first paragraph in the documents that use the custom template. You need to ensure that the users can edit the first paragraph but cannot delete it. Which code segment should you use?
You create an add-in for Microsoft Office Word by using Visual Studio Tools for the Microsoft Office System (VSTO). You will use Microsoft Visual Studio 2005 Bootstrapper to install the add-in.
The Product.xml file for the Bootstrapper contains the following XML fragment. (Line numbers are included for reference only.)
01 < InstallChecks >
02 < AssemblyCheck Property="VSTORInstalled"
03 Name="Microsoft.Office.Tools.Common"
04 PublicKeyToken="b03f5f7f11d50a3a" Version="8.0.0.0"/ >
05 < /InstallChecks >
0 6 < Commands Reboot="Defer" >
07 < Command PackageFile="vstor.exe" >
08 < InstallConditions >
09 ...
10 < /InstallConditions >
11 < /Command >
12 < /Commands >
You need to ensure that Microsoft VSTO Runtime is installed on the target computers.
Which XML fragment should you insert at line 09?
You create a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO).
You write the following method in the document class.
void wordAppEvent_NewDocument ( Word.Document Doc) { //Add custom footer
}
You need to set up an event handler that is fired when a Word document is created.
Which code segment should you use?
You create a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO). You create a user control named MyUserControl.
You write the following code segment for your document class. (Line numbers are included for reference only.)
01 Private Sub ThisDocument_Startup _
(ByVal sender As Object, ByVal e As System.EventArgs)
02 Dim uc As MyUserControl = New MyUserControl()
03 ... 04 End Sub
You need to display userControl in the actions pane.
Which code segment should you insert at line 03?
You create a document-level solution for Microsoft Office Excel 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO). The Excel workbook contains a worksheet object named Sheet1 that contains data in the range A1 through A5.
You write the following lines of code for the Sheet1 object. (Line numbers are included for reference only.)
01 Word.Application app = new Word.Application ();
02 Word.Document doc;
03 ...
04 object index = 1;
05 Word.Bookmark bMark = doc.Bookmarks.get_Item (
ref index);
06 ...
You need to insert the data from the range A1 through A5 into a Microsoft Office Word document after bMark. Your solution must retain the sequence of the data that is inserted.
Which code segment should you insert at line 06?