Transcript 簡報檔下載
Introducing the Smart Client Development Building Your Smart Client Solutions Easily with Visual Studio 林煌章 台灣微軟資深特約講師 MCT / MCSD.NET / MCAD / MCP / MVP [email protected] 楊宗憲 台灣微軟特約講師 MCAD 議程 Smart Client 應用程式 Office System 2003 Web Services Pocket PC 應用程式 Office 2003 Web Service Toolkit 2.01 Office 2003 And .NET Development Visual Studio Tools for Office (VSTO) Visual Studio Tools for Office 2.0 2/33 軟體再利用的能力 最高 較高 低 低 軟體再利用能力 3/33 Microsoft .NET 技術 透過 Web Services 將您的世界連接起來 4/33 什麼是 Smart Client 應用程式? Web Services 與 離線/線上支援 整體架構複雜 較好的 使用者經驗 隨處可用 程式開發人員 生產力較高 佈署不易 DLL Hell 容易修改 較差的 使用者經驗 容易佈署 反應快速 需要網路連線 介面不豐富 裝置多樣化且具備 一定的運算與顯示能力 5/33 簡介 Smart Client 應用程式 盡情發揮設備之中的 處理器能力 具有呼叫 Web Services 的能力 支援在線與離線使用 容易使各種設備呈現 相同的結果 集中式部署與軟體更 新模型 WS WS WS 6/33 Smart Client 應用程式範例 Using Pocket PC As Smart Device Pocket PC 應用程式 9/33 Using Web Service in Office Office 支援 Web Services 的呼叫 必須先安裝 Office Web Service Toolkit Version 2.0 for Office XP Version 2.01 for Office 2003 使用 VBA 呼叫 Web Services 10/33 Smart Client 應用程式範例 Using Office Web Service Toolkit 2.01 股價查詢 ( Excel ) 天氣查詢 ( Word ) Visual Studio Tools for Office 將 .NET 的開發技術延伸至 Office 2003 使用 Office 2003 與 .NET Framework 開 發 Smart Client 應用程式 使用 VS .NET 2003 開發 類似 ASP .NET 的 Code Behind 概念 使用者介面: Word 2003 與 Excel 2003 文件 程式邏輯: Visual Basic .NET 或 Visual C# .NET 需要 .NET Framework 1.1 & VS .NET 2003 VSTO 並不是用來取代 VBA 12/33 Office Object Model 透過 COM 互通機制使用 Office 相關元件 使用 PIAs (Primary Interop Assemblies) Word 2003 文件 ThisApplication As Word.Application ThisDocument As Word.Document Excel 2003 文件 ThisApplication As Excel.Application ThisWorkbook As Excel.Workbook 和 SmartTags、SmartDocs 使用相同技術 13/33 Visual Studio Tools for Office (一) 程式編寫 執行時期 設計時期 開發人員 Visual Studio .NET 14/33 Visual Studio Tools for Office (二) 原始碼編譯成組件 商業邏輯 執行時期 設計時期 開發人員 .NET 組 件 Visual Studio .NET .NET 組件會以 *.dll 型 式存放在伺服器上, 和 ASP .NET 一樣, 方便進行佈署與維護 15/33 Visual Studio Tools for Office (三) 使用者開啟文件 商業邏輯 .NET 組 件 .NET 安全性 原則 組件被下載到用戶端 ( 透過共享目錄、HTTP) ,並且 在本機安全性 原則控管下執行 執行時期 設計時期 Excel 2003 16/33 Smart Client 應用程式範例 Using Visual Studio .NET Tools for Office 股價查詢 ( Excel ) 天氣查詢 ( Word ) 執行端需求 安裝以下任一種 Office 版本 Office 2003 Professional Excel 2003 Standalone Word 2003 Standalone .NET Framework 1.1 設定 Office PIAs 參考 設定安全性原則 18/33 佈署模型 Local / Local Local / Local 優點 不需要網路連線, 使用者可以修改文件 缺點 文件與組件更新與佈署困難 19/33 佈署模型 Local / Network Local / Network 優點 組件更新與佈署容易, 使用者可以修改文件 缺點 文件更新與佈署困難 20/33 佈署模型 Network / Network Network / Network 優點 組件更新與佈署容易, 文件更新與佈署容易 缺點 使用者不可以修改文件 21/33 安全性 中的安全層級並 不會影響組件的執行 Office 組件安全性取決於本 機的 .NET Framework 1.1 安全性原則 mscorcfg.msc caspol.exe 22/33 組件安全性設定 Using mscorcfg.msc setting Assembly Security Local / Local Smart Client 解決方案 Golf Management System 高球管理系統 Excel 消費明細表 (VBA) Word 成績報告表 (VSTO) 25/33 什麼是 Office 參考資料 用戶端的工作窗格 Web service 支援本機與遠端的搜尋功能 所有的Office 應用程式都支援(包括 IE) 可擴展的平台 基於開放的標準建立 支援豐富的內容展示,表單,以及動作 不需要使用者端執行任何程式碼! 可以配合智慧標籤技術來執行複雜的運作 動態更新的能力 28/33 Actions Pane Office 參考資料(Actions Pane) Actions Pane 資料庫 29/33 輕鬆建立 Office 參考資料 使用 UserControls 一行程式碼即可產生 ActionsPane.Controls.Add( new MyUC() ) 不再需要實作 ISmartDocument 介面 不需要對應 XML Schema 30/33 輕鬆建立 Office 參考資料 Using Visual Studio Tools for Office 2.0 Office 參考資料 總結 Visual Studio 可輕鬆開發 Smart Client 應用程式 大量的 .NET Framework 類別程式庫可供使用 應用程式開發與佈署相當容易 擁有 .NET Framework 安全性功能 未來將完全整合 Office Visual Studio .NET SQL Server Office + .NET 是 Smart Client 解決方案的最佳選擇 32/33 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.