Loading picture from path name in database

Posted by: stealthrt on 4 August 2017, 3:06 pm EST

  • Posted 4 August 2017, 3:06 pm EST

    Hey all i need some help trying to figure this one out... I have one image control on my report with 3 colums count. The image is called imgDBImage with a datafield of DisplayIMG.
    <br />
    <br />The DisplayIMG in the database looks like this:
    <br />c:\windows\images\image847.BMP
    <br />
    <br />How can i take that and place it on the pictureload code? like:
    <br />imgDBImage.Picture = LoadPicture(imgDBImage.datafield)
    <br />
    <br />But that doesnt seem to work..... Any suggestions?
    <br />
    <br />Thanks,
    <br />David
  • Replied 4 August 2017, 3:06 pm EST

    <P>Hello ,</P>
    <P>You need to bind the DisplayImg field with hidden TextBox or Label control, the DataField property of imgDBImage should be empty,</P>
    <P>then you can use a similar code in format event of section:</P>
    <P>imgDBImage.Picture = LoadPicture(textBox.Text) <BR></P>
    <P>Sergey Romanov.</P>
    <P> </P>
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels