This is a migrated thread and some comments may be shown as answers.

PictureBox user function in silverlight

0 Answers 153 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wayne
Top achievements
Rank 1
Wayne asked on 26 Jul 2012, 08:24 AM

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

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Wayne
Top achievements
Rank 1
Share this question
or