Microsoft TS: Visual Studio Tools for 2007 MS Office System (VTSO) - 070-543 Exam Practice Test
You are creating a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO).
You write the following lines of code in the solution.
Dim tag As SmartTag = New _
SmartTag("http:// MySmartTag/ST#MySmartTag", "My Tag") tag.Terms.Add("Bug") tag.Terms.Add("Error") tag.Terms.Add("Issue") Dim action As Action = New Action("Add Reference") tag.Actions = New ActionBase() {action} AddHandler action.Click, AddressOf Me.action_Click
You need to add the string "Reference: " before either "Bug", "Error", or "Issue" when the smart tag is clicked.
Which code segment should you use?
You write the following lines of code in the solution.
Dim tag As SmartTag = New _
SmartTag("http:// MySmartTag/ST#MySmartTag", "My Tag") tag.Terms.Add("Bug") tag.Terms.Add("Error") tag.Terms.Add("Issue") Dim action As Action = New Action("Add Reference") tag.Actions = New ActionBase() {action} AddHandler action.Click, AddressOf Me.action_Click
You need to add the string "Reference: " before either "Bug", "Error", or "Issue" when the smart tag is clicked.
Which code segment should you use?
Correct Answer: B
You create a document-level solution for a Microsoft Office Word document by using a Visual Studio Tools for the Microsoft Office System (VSTO) project. The solution project is named HRSolution. The solution document is named HRSolution.doc. You deploy a copy of the solution document to the C:\OfficeSolutions folder on client computers. You deploy the assembly to a shared folder named OfficeSolutions. The shared folder is located on a server named LONDON. You need to ensure that the solution document loads the assembly from the correct location. Which code segment should you use?
Correct Answer: C
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?
Correct Answer: B
You are creating an add-in for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). You customize the Ribbon user interface (UI). You add a Ribbon1.xml file to the add-in. You need to add a built-in save function to a custom tab in the Ribbon UI. Which XML fragment should you use?
Correct Answer: B
You create an add-in for a Microsoft Office Outlook application by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in contains a reference to an Outlook folder in a variable named folder. You need to process only the e-mail messages within the folder. Which code segment should you use?
Correct Answer: D
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?
Correct Answer: B