指出在報表有外部影像時,是否能轉譯報表。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.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 將會啟用具有要執行之外部影像的本機報表。這可能會有安全上的風險。您不應該在不信任的報表上啟用這個屬性。 |
重要事項