Reporting Services报表设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

4CHAPTER在上章介紹過報表資料來源設定之後,我們將在本章中進一步介紹ReportingServices所提供的各項基礎報表物件設定。有別於傳統網頁報表開發必須要辛苦的自行撰寫報表物件,ReportingServices所有的報表物件都可以透過視覺化界面,將物件拖拉至工作區域後,再利用豐富的屬性設定調整報表物件的格式及外型。本章將介紹如何利用基本的資料表、矩陣、清單等報表物件,以及修飾報表結構的文字方塊、線條、矩形、影像等物件來製作基本的報表格式。6444.1BusinessIntelligenceDevelopmentStudioReportingServicesBIDevelopmentStudioPageHeaderPageFooterBodyWord不允許設計者在其中放置資料表、矩陣、清單等資料展示物件4.14.165SQLServer2005ReportingServices報表服務4.24.1.1報表4.24.24.36644.1屬性設定說明AuthorAutoRefreshClassDataElementNameXMLelementDataElementStyleXMLelementattributeDataSchemaXMLDataTransformDescriptionDescriptionLocIdDescriptionDrawGridEmbeddedImages4.3.4GridSpacingInteractiveSizeLanguageMarginsPageSizeReferenceReportParameters5SnapToGrid4.167SQLServer2005ReportingServices報表服務4.1cmin4.34.1.2頁首與頁尾Step1Step24.46844.2屬性設定說明BackgroundColorBackgroundImangeMIMEBorderColarBorderStyleNoneSolidDottedDashedSolidBorderWithPrintonFirstPage/TrueFalsePrintonLastPage/TrueFalseSize4.2ReportingServices必須自行變更「頁首」或「頁尾」的「PrintonFirstPage」或「PrintonLastPage」屬性4.1.3主體Body4.369SQLServer2005ReportingServices報表服務4.14.3屬性設定說明BackgroundColorBackgroundImangeMIMEBorderColarBorderStyleNoneSolidDottedDashedSolidBorderWithColumnsColumnSpacingSize4.1.4報表項目ReportingServices「資料區域」「獨立報表項目」4.47044.4資料區域(DataRegion)版面說明支援群組階層群組方式TableRowsMatrixColumnsRowsListChart4.24.2.1資料表結構ReportingService3X34.5資料表的結構可以分為「資料表頁首(TableHeader)」、「詳細資料(Details)」、「資料表頁尾(TableFooter)」三個部分CellTextbox71SQLServer2005ReportingServices報表服務4.24.5交角處理框(CornerHandle)列處理框(RowHandle)欄處理框(ColumnHandle)RowHandleColumnHandleCornerHandleTableHeaderTableFooter4.6如何選取整個資料表Note7244.64.2.2建立資料表BookSotre_SampleCh4\4.2.2-Step1Step2VisualStudio4.773SQLServer2005ReportingServices報表服務4.24.7Step34.84.8Step4BookStore_SampleText4.9744Step5Ctrl+Alt+D4.104.975SQLServer2005ReportingServices報表服務4.24.10該資料集即成為此資料表繫結的資料集,一個資料區域只能繫結單一資料集DataSetName4.114.11DataSetName764Step6ReportingServices4.124.12Step74.134.1377SQLServer2005ReportingServices報表服務4.24.2.3資料表屬性設定方式4.14CellTextbox4.144.4VisualStudio7844.5屬性設定說明BackgroundColorBackgroundImangeMIMEBookMarkBorderColarBorderStyleNoneSolidDottedDashedSolidBorderWithCalendarTaiwanJapanColorDataElementNameXMLelementDataElementOutputXMLDataSetNameDetailDataCollectionNameXMLDetailDataElementNameXMLDetailDataElementOutputXMLDirectionLTRRTL4.579SQLServer2005ReportingServices報表服務4.24.5屬性設定說明Filters4.2.7FixHeaderFontFormat4.5.1KeepTogetherLabelLabelLocIdLanguageLineHightLocationNameNoRowsNumeralLanuageNumeralVarientPaddingPageBreakatStartPageBreakatEndParentRepeatFooterOnNewPageFalseRepeatHeaderOnNewPageFalseSizeTextAlignLeftCenterRightTextDecorationUnderlineOverlineLinethrough8044.5屬性設定說明ToolTipHTMLTITLEALTUnicodeBiDiUnicodeVerticalAlignTopMiddleBottomVisibility5WritingModelr-tbtb-lr4.2.4加入資料行與設定儲存格ReportingServices34.2.2Ch4\4.2.4.Step14.1581SQLServer2005ReportingServices報表服務4.24.154.16Step2LEND_DTELEND_MONEY4.16Step3BackgroundColorSteelBlueColorWhiteFontNormal,Arial,10pt,BoldTextAlignCenter10ptArial8244.17Step4=Fields!LEND_DTE.VALUE2007/2/134.1883SQLServer2005ReportingServices報表服務4.24.18Step5Step4=Fields!LEND_MONEY.VALUENT$1,234Step6NT$844Step74.194.1985SQLServer2005ReportingServices報表服務4.2Step8EMAILShift=Fields!EMAIL.VALUE4.204.20Step94.214.21864調整欄位的寬與高Note4.2.5資料表頁首與資料表頁尾「表頭」「表尾」HeaderFooter「頁首」「頁尾」本書將使用「表頭」與「表尾」來和「報表」的「資料表頁首」與「資料表頁尾」作區隔欄位名稱來說明每個資料欄位的內容顯示資料列中數值欄位彙總後的結果RepeatHeaderOnNewPageRepeatFooterOnNewPageTrue87SQLServer2005ReportingServices報表服務4.2ReportingServices2005Excel「凍結格窗」FixHeaderTrue4.2.6排序「OrderBy」SQLOrderByAscDescReportingService4.228844.2.4Ch4\4.2.-Step14.234.23Step2Step3=Fields!LEND_DTE.VALUEDescending4.2489SQLServer2005ReportingServices報表服務4.24.24Step44.254.25904ReportingServices2005「互動式排序」54.2.7篩選ReportingServicesAB透過單一版本的查詢回傳資料集4.2.510Ch4\4.2.6-Step1Step2Step3=Fields!LEND_MONEY.VALUE=CInt(10)4.2691SQLServer2005ReportingServices報表服務4.24.2610Step44.2.8群組群組是一組擁有相同特性資料的集合924Ch4\4.2.7-Step14.274.27Step2SeriesSERIES=Fields!Series.Value4.2893SQLServer2005ReportingServices報表服務4.24.28GroupHeaderGroupFooter4.294.29944通常群組首是記錄群組說明資訊,至於群組尾大多是擺放小計等彙總資訊Sum4.304.30「重複顯示群組首/尾」95SQLServer2005ReportingServices報表服務4.2Step3RepeatOnNewPageTrue4.314.31ReportingServiceStep4Step59644.32「開頭分頁符號」與「結尾分頁符號」的差異Note97SQLServer2005ReportingServices報表服務4.34.34.3.1「矩陣」與「資料表」的差異樞紐分析表(PivotTable)和交叉分析資料表Crosstab-styleReport)ReportingServices4.2.34.3.2建立矩陣而且隨著出版社的增加,不需要重新指定矩陣軸的資料列數Ch4SERIESPUBLISHUNITSCh4\4.3.2-9844.33Step2PUBLISH4.344.34PUBLISHStep3SERIES4.35Step14.3399SQLServer2005ReportingServices報表服務4.34.35PUBLISHStep4UNITS4.364.36UNITSStep5Shift4.3710044.37Step6BorderStyleSolid4.384.38BorderStyleSolid101SQLServer2005ReportingServices報表服務4.3Step74.394.394.3.3群組等同於依照所拖放的欄位在矩陣物件中以資料群組的型式呈現10244.404.3.2Step1=Fields!PUBLISH.Value4.41Step2=Fields!PBULISH.ValueStep3Step2Step4Step2103SQLServer2005ReportingServices報表服務4.34.41Step54.424.4210444.3.2Step1SERIES4.434.43SERIESStep2=Fields!BK_NAME.Value105SQLServer2005ReportingServices報表服務4.34.44=Fields!BK_NAME.ValueStep34.45SERIESBK_NAME4.45SERIESBK_NAME10644.464.3.4新增資料行與資料列資料行與資料列的交集是

1 / 78
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功