Page 1 of 1

load image dynamically

Posted: Mon Jan 03, 2011 6:41 am
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

load image dynamically

Posted: Tue Jan 04, 2011 2:12 am
by Alex K.
Hello,

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

Thank you.

load image dynamically

Posted: Tue Jan 04, 2011 3:43 am
by iAmeer
Please explain!
i need to use Server.MapPath("") method in report.
thanks.

load image dynamically

Posted: Tue Jan 04, 2011 5:22 am
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.