G
Guest
Hello all -
I'm at wits end with trying to figure out why I'm having this problem since I followed the research, that I've dug up, to a "T". I'm trying to display a JPEG image from a path directory within a Crystal Report. I created a typed dataset that is not bound to the database called dsLogo and created one field within it that has a base64binary type for the image. Once I've incorporated the dataset into the report and dropped the control where I want the image to show, I populate the dataset using this code below but am still getting an error in relation to the Query Engine. What am I doing wrong? Any thoughts are GREATLY appreciated.
' Within code-behind file that contains the viewer for the report in the Page_Load event
'Add row to Logo dataset
Dim newLogoRow As DataRow
Dim lLogo As New dsLogo
newLogoRow = lLogo.Logo.NewLogoRow
' Session("LogoImage") contains path (i.e. \\webserv\wwwroot\site\images\site1.jpg)
newLogoRow.Item("Image") = Session("LogoImage")
lLogo.Logo.Rows.Add(newLogoRow)
Thanks,
Mark
I'm at wits end with trying to figure out why I'm having this problem since I followed the research, that I've dug up, to a "T". I'm trying to display a JPEG image from a path directory within a Crystal Report. I created a typed dataset that is not bound to the database called dsLogo and created one field within it that has a base64binary type for the image. Once I've incorporated the dataset into the report and dropped the control where I want the image to show, I populate the dataset using this code below but am still getting an error in relation to the Query Engine. What am I doing wrong? Any thoughts are GREATLY appreciated.
' Within code-behind file that contains the viewer for the report in the Page_Load event
'Add row to Logo dataset
Dim newLogoRow As DataRow
Dim lLogo As New dsLogo
newLogoRow = lLogo.Logo.NewLogoRow
' Session("LogoImage") contains path (i.e. \\webserv\wwwroot\site\images\site1.jpg)
newLogoRow.Item("Image") = Session("LogoImage")
lLogo.Logo.Rows.Add(newLogoRow)
Thanks,
Mark