我需要显示相应的属性图像,其中awx_propertyid等于fetchXML SSRS报告中的图像实体awx_propertyid报告。
现在我想显示存储在在线CRM中的每个属性的图像作为注释实体,我还添加了fetchXML查询,该查询产生来自该属性的Notes的documentbody列。为此目的在报表设计视图中,在“插入”选项卡上,单击“图像”。在“图像属性”对话框的“常规”选项卡上,选择图像源并选择“数据库”。
使用此字段表达式如下:Convert.FromBase64String( MID(Convert.ToBase64String (Fields!annotation_documentbody.Value),105))
Mime类型:image/jpeg
但是当报告运行时,它会显示一个红色十字标志。什么出错了请有人告诉我???
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
<entity name="awx_image">
<attribute name="awx_imageid" />
<attribute name="awx_mimetype" alias="Awx_MimeType"/>
<attribute name="awx_propertyid" />
<attribute name="awx_filename"/>
<filter type="and">
<condition attribute="awx_primary" operator="eq" value="1" />
<condition attribute="awx_mimetype" operator="not-null" />
<condition attribute="awx_filename" operator="eq" value="Hamm.jpg" />
</filter>
<link-entity name="awx_property" from="awx_propertyid" to="awx_propertyid" link-type="inner" alias="property">
<attribute name="awx_address" />
<filter type="and">
<condition attribute="awx_countryid" operator="eq" uiname="New Zealand" uitype="awx_country" value="{E65C8093-A299-DD11-BE91-0050569C0CB2}" />
</filter>
<link-entity name="awx_availability" from="awx_propertyid" to="awx_propertyid" link-type="inner" alias="al">
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
</filter>
</link-entity>
</link-entity>
<link-entity name="annotation" from="objectid" to="awx_imageid" link-type="inner" alias="annotation">
<attribute name="documentbody" />
<attribute name="mimetype" alias="anotationmime"/>
<filter type="and">
<condition attribute="documentbody" operator="not-null" />
</filter>
</link-entity>
</entity>
</fetch>