最新的Microsoft TS: Visual Studio Tools for 2007 MS Office System (VTSO) - 70-543免費考試真題
問題1
You create an add-in for Microsoft Office Word by using Visual Studio Tools for the Microsoft Office System (VSTO). You deploy the add-in to a folder on a network share. The folder hosts 20 assemblies. All the assemblies are signed and contain the same digital signature. The add-in runs from a local computer. When the add-in is accessed from a network share by using th e same computer, a security exception is raised. You need to ensure that the add-in can run from the network share. You must achieve this goal without elevating permissions for the other assemblies. What should you do?
You create an add-in for Microsoft Office Word by using Visual Studio Tools for the Microsoft Office System (VSTO). You deploy the add-in to a folder on a network share. The folder hosts 20 assemblies. All the assemblies are signed and contain the same digital signature. The add-in runs from a local computer. When the add-in is accessed from a network share by using th e same computer, a security exception is raised. You need to ensure that the add-in can run from the network share. You must achieve this goal without elevating permissions for the other assemblies. What should you do?
正確答案: B
問題2
You are creating a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO).
The solution will insert an XML data island in a Word document. The data island contains the following XML fragment.
< customer id="01AF" >
< region district="Northwest" > < /region >
< /customer >
You bind the data island to an XMLNode instance named xln.
You need to update the region element with the following data.
< customer id="01AF" >
< region district="Southwest" > California < /region >
< /customer >
Which code segment should you use?
You are creating a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO).
The solution will insert an XML data island in a Word document. The data island contains the following XML fragment.
< customer id="01AF" >
< region district="Northwest" > < /region >
< /customer >
You bind the data island to an XMLNode instance named xln.
You need to update the region element with the following data.
< customer id="01AF" >
< region district="Southwest" > California < /region >
< /customer >
Which code segment should you use?
正確答案: C
問題3
You create an add-in for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in customizes the Ribbon user interface (UI). The add-in contains a file named Ribbon1.xml that has the following markup for two buttons.
<button id="Btn1" onAction =" DoOperation " />
<button id="Btn2" onAction =" DoOperation " />
You need to create a callback function that runs different code for the buttons.
Which code segment should you use?
You create an add-in for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in customizes the Ribbon user interface (UI). The add-in contains a file named Ribbon1.xml that has the following markup for two buttons.
<button id="Btn1" onAction =" DoOperation " />
<button id="Btn2" onAction =" DoOperation " />
You need to create a callback function that runs different code for the buttons.
Which code segment should you use?
正確答案: D
問題4
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?
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?
正確答案: B
問題5
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 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?
正確答案: B
問題6
You are creating a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO).
The solution must meet the following requirements: The solution must save the document.
The users who do not have Microsoft VSTO Runtime installed can open the document. You need to ensure that the solution meets the requirements.
Which code segment should you use?
You are creating a document-level solution for Microsoft Office Word 2003 by using Visual Studio Tools for the Microsoft Office System (VSTO).
The solution must meet the following requirements: The solution must save the document.
The users who do not have Microsoft VSTO Runtime installed can open the document. You need to ensure that the solution meets the requirements.
Which code segment should you use?
正確答案: C