问题描述
我正在处理SSRS报告,因为我需要显示该报告的徽标。我在像string keyToSelect = "color";
var result = fruits.Select(fruit => new
{
SelectedItem = fruit.Items
.Where(item => item.Key == keyToSelect)
.FirstOrDefault(),// Select other Fruit properties that you plan to use,// or skip this if a Fruit has no other properties
Name = fruit.Name,...
})
// Keep only those Fruits that have a FirstItemWithKeyToSelect:
.Where(fruit => fruit.SelectedItem!= null);
这样的数据库中有图像路径,已使用外部和数据库作为图像源。但是在徽标中仍然找不到图像。
解决方法
带有'File:FilePath'
的图像路径前缀
'File:D:\logo.jpg'