70-543 試験問題を無料オンラインアクセス

試験コード:70-543
試験名称:TS: Visual Studio Tools for 2007 MS Office System (VTSO)
認定資格:Microsoft
無料問題数:120
更新日:2025-10-22
評価
100%

問題 1

You create an add-in for Microsoft Office Excel 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). The add-in has a custom task pane named MyPane. MyPane contains a user control named MyUserControl. You write the following method that resizes MyUserControl.
Public Sub ResizeControls ()
...
End Sub
You need to call the ResizeControls method when MyPane is not docked to the Excel 2007 application window.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

問題 2

You are creating an add-in for Microsoft Office Word 2007 by using Visual Studio Tools for the Microsoft Office System (VSTO). You write the following lines of code.
Microsoft.Office.Tools.CustomTaskPane pane;
private void CreatePane () {
pane = this.CustomTaskPanes.Add (new MyUserControl (),
"Do Something");
pane.Visible = true;
}
You need to ensure that only a single instance of the custom task pane is displayed in each single document interface (SDI) window.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

問題 3

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?

問題 4

You are creating an application for Microsoft Office Word by using Visual Studio Tools for the Microsoft Office System (VSTO). The application will contain a namespace named WordAddInNS.
WordAddInNS will contain the following items:
a class named WordExcelIsland
a method named GetDataIsland
a typed dataset class named WSS_DataSet
You write the following lines of code. (Line numbers are included for reference only.)
01 private void GetDataIsland (string DocPath) {
02 using (ServerDocument sd = new ServerDocument(DocPath)) {
03 CachedDataHostItemCollection HC = sd.CachedData.HostItems;
04 if (HC.Count > 0 &&
05 ...
10 ) {
12 ...
13 }
14 }
15 }
You need to load all the data islands of the type WSS_DataSet from the local document cache.
Which code segment should you insert at line 05?

問題 5

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 document has a table that contains data. The table has two columns and two rows.
You write the following lines of code. (Line numbers are included for reference only.)
01 Excel.Workbook book;
02 Excel.Worksheet sheet = book.Worksheets [1] as Excel.Worksheet ;
03 Word.Table tbl = this.Tables [1];
04 ...
You need to insert the data in the cell range A1 through B2 of the first worksheet in the Excel workbook.
Which code segment should you insert at line 04?

コメントを追加

あなたのメールアドレスが公開されることはありません。個人情報に関する内容は隠されます *

insert code
画面にある文字を入力してください。