Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
995
Image path
posted

Hi,

I am evaluating the use of NetAdvantage Reporting in a WPF application run locally.  

Currently the file path to the image is stored in a field within an SQL Compact database.  How do i bind this field to an Image object?

I have tried but the image is only displaying an 'X'. does this mean it cannot find the image?

I have tested the datasource as well as confirmed the image path is correct.

Any help is greatly appreciated.

pfechner

Parents
No Data
Reply
  • 1125
    posted

    Hi pfechner,

    You can view the Using the Image Control article, long story short, you need to create a SQL Data Source that references the SQL Compact database & desired entity, and when you create the image control, add a binding to the Image field if your data contains the serialized image, or to the ImageUrl field if your data contains a URL with the location of the image.

    The X means that there was an error while loading the image, it could be that it did not find the image, or that the image format is not supported (we support only JPG and PNG images).

    Let us know if you have any questions.

    Regards,
    Héctor 

Children