Images
Posted: Tue Jan 12, 2016 2:45 am
Morning,
I have a report with an image control on it.
I have two business objects separated to decouple the logo as the report data can potentially generate 1000s of pages.
I have a business object passed into the report that contains data and one of the fields is a unique key to tell me what logo I should show for this page, let's say a guid.
public class ReportData
{
public int Id { get; set; }
public string Username { get; set; }
public string Hash { get; set; }
}
I have a business object passed into the report that contains images with a unique key, let's say a guid.
public class ReportLogos
{
public string Hash { get; set; }
public Image Logo { get; set; }
}
How can I assign a logo to the image control based on the current record being processed? What I need is to assign the associated Logo based on the Hash key.
Thanks!
I have a report with an image control on it.
I have two business objects separated to decouple the logo as the report data can potentially generate 1000s of pages.
I have a business object passed into the report that contains data and one of the fields is a unique key to tell me what logo I should show for this page, let's say a guid.
public class ReportData
{
public int Id { get; set; }
public string Username { get; set; }
public string Hash { get; set; }
}
I have a business object passed into the report that contains images with a unique key, let's say a guid.
public class ReportLogos
{
public string Hash { get; set; }
public Image Logo { get; set; }
}
How can I assign a logo to the image control based on the current record being processed? What I need is to assign the associated Logo based on the Hash key.
Thanks!