load image dynamically

Stimulsoft Reports.NET discussion
Post Reply
iAmeer
Posts: 2
Joined: Mon Jan 03, 2011 6:24 am

load image dynamically

Post by iAmeer »

Hi

i used this code in image url to loading image dynamically, but raise an error:

Code: Select all

{String.Format(System.Web.HttpContext.Current.Server.MapPath("~/data/{0}_{1}.jpg"), ToString(tblReservation.R_Id) , ToString(tblReservation.Id))}
error msg:
error CS0234: The type or namespace name 'HttpContext' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
can i import Ssytem.Web assembly in report?!
can i load image in web dynamically?

// asp.net 3.5
// stimulreport 2010.1
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

load image dynamically

Post by Alex K. »

Hello,

Please add System.Web.Dll in Referenced Assemblies on the report.

Thank you.
iAmeer
Posts: 2
Joined: Mon Jan 03, 2011 6:24 am

load image dynamically

Post by iAmeer »

Please explain!
i need to use Server.MapPath("") method in report.
thanks.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

load image dynamically

Post by Andrew »

Hello,

Just one clarification: Does our reply help you?
If not, could you, please send us a report for investigation to support@stimulsoft.com .

Thank you.
Post Reply