More Related Content Similar to 如何輕鬆快速開發報表:談 SQL Server 2008 報表開發 Similar to 如何輕鬆快速開發報表:談 SQL Server 2008 報表開發 (20) More from Chui-Wen Chiu (20) 如何輕鬆快速開發報表:談 SQL Server 2008 報表開發2. Reporting Services 2008 Reporting Services Reporting Services 是完整的,以伺服器為基礎,橫跨全企業的報表平台,支援編輯、管理和發送互動好用的報表 管理 發送 編輯 2007 Sales Embedded Reporting Web Report XML 3. 大綱 報表設計 全新資料來源以設計異質性資料報表 Report Builder 2.0 新增的 Tablix 資料區域 新增的圖表與量測軌資料區域 文字方塊支援豐富文本格式設定 報表處理與轉譯 轉譯為Word檔案格式 Excel 可以轉譯子報表 大幅提升報表處理以及轉譯執行效率 報表伺服器架構與管理工具 從此脫離了IIS 新的管理介面 Reporting Services 組態管理員 5. 報表設計工具 Report Designer 報表設計師 報表產生器1.0 報表產生器2.0 Office 2007外觀 整合VS.NET 2008 完整支援RDL 分享配置介面 Report Builder 2.0 報表模型 整合查詢與配置 完整支援報表模型 自動產生鑽研報表 有限支援RDL Report Builder 1.0 6. 報表產生器2.0 報表產生器2.0= 報表設計師+ 報表精靈+ 報表產生器1.0 專業開發人員以及一般使用者都可以使用 接近Office 2007的介面 可以處理複雜格式的報表 同時支援資料集與報表模型 可以隨時切換報表設計師或者是報表產生器的報表 報表產生器2.0將是未來隨選報表的技術主流 7. 群組資料 群組(Group)類型 詳細資料–預設 Table 或 List 沒有群組的內容 資料列群組和資料欄群組 – 傳統的群組 Recursive hierarchy groups – 階層資料 群組工作窗格(Group Task Pane) 階層式地呈現列和行的群組 透過快捷選單加入相鄰的資料列或資料行群組 透過群組屬性對話窗來定義群組運算式、分頁、排序、可見性、篩選、變數、進階 7 9. Tablix = Table + Matrix Matrix plus 多重平行資料列/資料行群組 每個成員可以自由決定動態或者是靜態 可以整合資料列標頭 Table plus 動態巢狀資料行群組 多重平行資料列群組 靜態資料列 可彈性延伸資料行標頭 13. 加入總計 “加入總計” 命令 在群組內搭配彙總函數加上資料列或行 允許在所選擇的群組之前或後增加 總計資料列或資料行 支援各種彙總函數,例如 Average() 或 Min() 在資料列或資料行呈現文字方塊 – 不再有綠色三角型! 14. 使用變數 報表變數(Report variable) 在報表執行當下賦予值,處理過程中不再變動 在報表前後換頁時,每一頁中會有相同的值,若是以運算式設定如 Now() 函數,則資料會不同 群組變數 在群組 scope 內賦予變數值,子群組可以使用 賦予當下群組計算一個唯一值 語法:=Variables!VariableName.Value 17. SSRS 2008 的圖表類型 Bar Bar, Stacked (3-D), 100% Stacked (3-D), Clustered (3-D) Stacked Horizontal Cylinder (3-D), Stacked 100% Horizontal Cylinder (3-D), Clustered Horizontal Cylinder (3-D) Scatter Bubble Polar Polar, Radar (3-D) Pareto Histograms Column Column (3-D), Stacked (3-D), 100% Stacked (3-D), Clustered (3-D), Cylinder (3-D) , Stacked Cylinder (3-D), 100% Stacked Cylinder (3-D), Clustered Cylinder (3-D) Line Line (3-D), Smooth Line, Stepped Line, Line with Markers, Smooth Line with Markers Shape Pie (3-D), Exploded Pie (3-D), Doughnut, Exploded Doughnut, Funnel (3-D), Pyramid (3-D) Area Area (3-D), Smooth Area (3-D), Stacked, 100% Stacked (3-D) Range Smooth, Range Column, Range Bar, Stock, Candlestick, Error Bar, Boxplot 黃字部分為 SSRS 2008 新增的 21. 圓餅圖 小面積「其他」 Custom Attribute. CollectedStyle=SingleSlice CollectedThresholdUsePercent CollectedThreshold 小面積新圓餅圖 Custom Attribute. CollectedStyle=CollectedPie 25. Richly Formatted Text textbox 可以混合不同的格式設計 透過 expression placeholder 可做到 Mail-merge 功能 段落 Numbered/bulleted lists 段落對齊 HTML 標籤為基礎的格式化 Word DOC 輸出 33. © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. Editor's Notes The Group Task pane makes it easier to see which groups are used and how they are arranged. Additionally, this pane makes it easier to access the editor for each group. Mention that, when you select a textbox containing an aggregate, the data region identifies the groups in scope for that aggregate with an orange bar. To set a report variable, right-click the report background in the designer.,click Report Properties, and click Variables. To set a group variable, right-click a group in the Group Task Pane, click Edit Group, and click Variables.