繁体   English   中英

Crystal Reports 13.0.2(VS2012),动态图像加载

[英]Crystal Reports 13.0.2 (VS2012), Dynamic Image Loading

动态应加载到图片对象(插入->图片->选定的1.jpg)中的图像未显示在报告中。 而是显示所选的默认图像。(1.jpg)

我所做的就是将“图形位置”更改为“ Pic /” + {PICID} +“。JPG”,并在超链接部分添加了相同的语法。 当我单击图像(超链接)时,它显示在浏览器中,而不显示在报告中。

我搜索了很多,并在web.config中添加了处理程序,与其他图像进行了检查,使用了油画笔图像,将“ aspnet_client(2.0和4.0)”文件夹添加到了根目录,检查了图像的文件夹权限,并且仍然出现相同的图像。

任何帮助都会得到帮助

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="rptAppSettings" targetNamespace="http://tempuri.org/AppSettings.xsd"   xmlns:mstns="http://tempuri.org/AppSettings.xsd" xmlns="http://tempuri.org  /AppSettings.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-  microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"   attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0"   FunctionsComponentName="QueriesTableAdapter"     Modifier="AutoLayout, AnsiClass, Class,     Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-  com:xml-msdatasource">
  <Connections>
  <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="ConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="ConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.ConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables />
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="rptAppSettings" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="rptAppSettings" msprop:Generator_UserDSName="rptAppSettings">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="App_Settings" msprop:Generator_UserTableName="App_Settings" msprop:Generator_RowEvArgName="App_SettingsRowChangeEvent" msprop:Generator_TableVarName="tableApp_Settings" msprop:Generator_TablePropName="App_Settings" msprop:Generator_RowDeletingName="App_SettingsRowDeleting" msprop:Generator_RowChangingName="App_SettingsRowChanging" msprop:Generator_RowDeletedName="App_SettingsRowDeleted" msprop:Generator_TableClassName="App_SettingsDataTable" msprop:Generator_RowChangedName="App_SettingsRowChanged" msprop:Generator_RowEvHandlerName="App_SettingsRowChangeEventHandler" msprop:Generator_RowClassName="App_SettingsRow">
  <xs:complexType>
    <xs:sequence>
        <xs:element name="LogoImage"     msprop:Generator_ColumnVarNameInTable="columnLogoImage"   msprop:Generator_ColumnPropNameInRow="LogoImage"    msprop:Generator_ColumnPropNameInTable="LogoImageColumn"    msprop:Generator_UserColumnName="LogoImage" type="xs:base64Binary" minOccurs="0" />
      </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:choice>
 </xs:complexType>
</xs:element>
  </xs:schema>

将图像作为数据表的字段推送到报告中。 此解决方案要求您通过数据集将数据推送到报表中。

如果将Crystal报表绑定到普通的旧对象,则要公开byte []属性以使报表将其视为图像。

您可以看到以下示例: http : //aspalliance.com/1097_Importing_Dynamic_Images_to_the_Crystal_Report_without_Database_Overhead_using_Visual_Studio_2005

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM