使用ReportBuilder建立簡易報表

使用ReportBuilder建立簡易報表

「建立共用資料來源」
SNAGHTML18cffb9

SNAGHTML1982a04
「按下”確定”」
image

「連接資料來源」
imageSNAGHTML1a2353b
SNAGHTML1a7211fSNAGHTML1a85633image

「建立資料集」

-先建立測試用的StoreProcedure

--建立測試用的SP,用品號列出商品資料
CREATE PROC uSp_GetProductByProductNumber @ProductNumber VARCHAR(50)
WITH EXECUTE AS CALLER
AS
SELECT * 
    FROM Production.Product 
    WHERE ProductNumber LIKE '%'+@ProductNumber+'%'
    
--使用方式
    uSp_GetProductByProductNumber '53'

imageSNAGHTML1c8fa8dimage

呈現資料「資料表精靈」
image

SNAGHTML1d8ed54SNAGHTML1d9af1c
SNAGHTML1dad310SNAGHTML1db6560
image
SNAGHTML1ded800
「定義報表查詢參數」
SNAGHTML1e8f263
SNAGHTML1ea6b69

SNAGHTML1ec6fad
※說明:接下來就可以和ASP.Net、WindowForm應用程式進行整合囉!!