Images: uploaded images don't display in reports

Sep 29, 2011 at 1:58 PM
Edited Sep 29, 2011 at 4:18 PM


After reviewing our original thread and looking at images after deployment I now see that the mime type is not being set. Below is my itemgroup definition. Any ideas?


		<ReportFiles Include="$(ReportFilesPath)\*.rdl" />
		<ResourceFiles Include="$(ReportFilesPath)\*.png">
		<ResourceFiles Include="$(ReportFilesPath)\*.gif">
		<ResourceFiles Include="$(ReportFilesPath)\*.jpg">
		<!--The Include is the Name of the DataSet to create-->
		<ReportDataSourceToDeploy Include="Core">
			<ConnectionString>Data Source=$(SQLServer);initial catalog=$(DataSourceDb);Integrated Security=True</ConnectionString>

Sep 30, 2011 at 11:30 AM


Could you please include the section that is making the call to the task?

When I saw your original post there was error with how you were passing in the list of images which you required to up load.



Sep 30, 2011 at 1:52 PM
Edited Sep 30, 2011 at 2:00 PM

Thanks, corrected and now working... batching on metadata '%' wasn't working, changed to batch using '@' and mime type is being set.



	<Target Name="AddResources" DependsOnTargets="ValidateDeploymentSettings;GetServerUrl">
		<AddResource ReportServerURL="$(TargetServerUrl)" Folder="$(TargetReportFolder)" Files="%(ResourceFiles.Fullpath)" />


Worked after changing to:


	<Target Name="AddResources" DependsOnTargets="ValidateDeploymentSettings;GetServerUrl">
		<AddResource ReportServerURL="$(TargetServerUrl)" Folder="$(TargetReportFolder)" Files="@(ResourceFiles)" />

<blush>Thanks again as the answer was in your original reply.</blush>
I'd have to see the difference in what is passed to the task to understand why the different from of batching makes a difference to whether or not the mime type is added to the uploaded image.

John Dhom