共用方式為


LocalReport.EnableExternalImages 屬性

指出在報表有外部影像時,是否能轉譯報表。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
Public Property EnableExternalImages As Boolean
    Get
    Set
'用途
Dim instance As LocalReport
Dim value As Boolean

value = instance.EnableExternalImages

instance.EnableExternalImages = value
public bool EnableExternalImages { get; set; }
public:
property bool EnableExternalImages {
    bool get ();
    void set (bool value);
}
member EnableExternalImages : bool with get, set
function get EnableExternalImages () : boolean
function set EnableExternalImages (value : boolean)

屬性值

型別:System.Boolean
Boolean 值。true 值表示在本機報表有外部影像時,可以轉譯本機報表。預設值是 false。

備註

如果這個屬性設為 false,試圖轉譯有外部影像的報表,會造成 ReportSecurityException

重要事項重要事項

依預設,不允許執行包含外部影像的本機報表。將這個屬性設定為 true 將會啟用具有要執行之外部影像的本機報表。這可能會有安全上的風險。  您不應該在不信任的報表上啟用這個屬性。

請參閱

參考

LocalReport 類別

Microsoft.Reporting.WebForms 命名空間