Hi,
I have a user function bound to my report to position the PictureBox.
public static PointU Location(int _position)
{
double position = _position;
return new PointU(new Telerik.Reporting.Drawing.Unit(position, UnitType.Pixel), new Telerik.Reporting.Drawing.Unit(65, UnitType.Pixel));
}
The problem I am continually having is that sometimes this works and sometimes it does not! I get the error in the report that the function ‘Location’ cannot be found in red where the Logo - PictureBox should be.
When I print the report, the first two attempts I get the error but on the third attempt it works correctly!! Could there be a problem when loading the image, the report is trying to display it before it is fully uploaded ?
The picture value I bind to the Uri read out of a database. Sometimes this also does not work and sometimes it does, message cannot find or locate picture.
If you can advise me why this is so, so I can correct it that would be grate.
Thanks very much
Wayne
Error HRESULT E_FAIL has been returned from a call to a COM component. at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData) at MS.Internal.XcpImports.Collection_Add[T](PresentationFrameworkCollection`1 collection, Object value) at System.Windows.PresentationFrameworkCollection`1.AddImpl(Object value) at System.Windows.PresentationFrameworkCollection`1.System.Collections.IList.Add(Object value) at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateChildren(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode, Boolean isNewInstance)System.Web.HttpCompileException was unhandled by user code
Message=c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\webenrollment.public.web\185985ee\24be7516\App_Web_productviewpage.aspx.b76dddab.hrocxo6x.0.cs(245): error CS0234: The type or namespace name 'Reporting' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)