2013-10-30 45 views
0

我想在我的其中一個報告中使用指標,但只有SSRS2008 R2或更新版本才支持指標,而我只有SSRS2008。有沒有可以模仿指標的解決方法或其他組件,並且與SSRS中包含的組件類似?SSRS2008中缺乏指標是否有解決方法?

回答

2

您可以通過在報告中添加一個基於表達式的圖像來做到這一點,其中可用圖像模仿您想要查看的指標。

在SSRS 2008 R2,有一些簡單的數據:

enter image description here

我已經建立了一個簡單的指標:

enter image description here

enter image description here

你其中一期工程預計:

enter image description here

我創建了一個類似的表在2008年,但不是一個指標我已經添加了一個圖像到文本框,以及三幅圖像到報表項目:

enter image description here

enter image description here

的圖像是隻指示符的圖像,類似於2008R2的:

enter image description here enter image description here enter image description here

當然,與標準SSRS的相似性純粹是巧合。

設置圖像像這樣:

enter image description here

即圖像源到External

表達式爲:

=Switch(Fields!val.Value >= 0 and Fields!val.Value <= 3, "ind1.PNG" 
    , Fields!val.Value >= 4 and Fields!val.Value <= 6, "ind2.PNG" 
    , Fields!val.Value >= 7 and Fields!val.Value <= 10, "ind3.PNG") 

所以這是選擇基於我們的價值適當的圖像。這就像一個2008R2指標:

enter image description here

我還沒有格式化所以這是一個有點粗糙周圍打亂,但你可以看到它在原理工作所以應該爲你工作有一些調整。

相關問題