An expression is too long or complex to compile near 'Reports.Report.InitializeComponent
Posted: Tue Aug 31, 2010 11:09 pm
Hi
I am using a Logo image with 927KB size. On runtime report showing below error
An expression is too long or complex to compile near 'Reports.Report.InitializeComponent.
If I am displaying 30KB image size on report . Then Its working fine. but if image size is large then its showing the error.
My code is :
((StiImage)rep.GetComponentByName("Image1")).Image = System.Drawing.Image.FromFile(HttpContext.Current.Server.MapPath(logoFilePath));
Please suggest me.
Regards
Vikas
I am using a Logo image with 927KB size. On runtime report showing below error
An expression is too long or complex to compile near 'Reports.Report.InitializeComponent.
If I am displaying 30KB image size on report . Then Its working fine. but if image size is large then its showing the error.
My code is :
((StiImage)rep.GetComponentByName("Image1")).Image = System.Drawing.Image.FromFile(HttpContext.Current.Server.MapPath(logoFilePath));
Please suggest me.
Regards
Vikas