共用方式為


LocalReport.EnableExternalImages 屬性

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

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

語法

'宣告
Public Property EnableExternalImages As Boolean
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)

屬性值

類型:Boolean
Boolean 值。此值為 true 時,表示具有外部影像時可呈現本機報表。預設值是 false。

備註

If this property is set to false, then attempting to render a report that has external images will result in a ReportSecurityException.

重要

Local reports that contain external images are not allowed to execute by default.Setting this property to true will enable local reports with external images to execute.This can be a security risk.  You should not enable this property on non-trusted reports.

請參閱

參考

LocalReport 類別

Microsoft.Reporting.WebForms 命名空間