Page 1 of 1

displaying image within code

Posted: Mon Jan 09, 2017 7:43 am
by stvhui
Hello to you,
I'm using stimulsoft report fx php 2016.3

I've employee table contains (empolyee no, name, gender, etc)
I've images stored in d:\male.jpg and d:\female.jpg

I want to create a report of employee, when gender is "male" then displaying image in d:\male.jpg and..
when gender is "female" then displaying image in d:\female.jpg

How to write above code into report.
Please guide & showing me by code.

Thanks & Regards,
Steven

Re: displaying image within code

Posted: Mon Jan 09, 2017 4:58 pm
by Alex K.
Hello,

Please try to add two Image components and Condition with "ComponentIsEnabled" option and show only necessary.

Thank you.

Re: displaying image within code

Posted: Fri Jan 13, 2017 10:36 am
by stvhui
How to writing its code

Please show me, I 'd searching the documentation, but no documented.

I means, just put the code as image.loadfrom("d:/male.jpg") or how?

Re: displaying image within code

Posted: Fri Jan 13, 2017 1:10 pm
by Alex K.
Hello,

Please check the sample report in the attachment.

Thank you.

Re: displaying image within code

Posted: Thu Jan 19, 2017 10:46 am
by stvhui
Hello to you,
Thanks for your example, but not solved my problems because yr sample is embeded the image's file into report's file.

My problems is I don't know how to display/showing images into report (the images is stored into d:\male.jpg)
I want to call/load images file that stored into d:\male.jpg

Please give me an example, thanks in advance.

Re: displaying image within code

Posted: Thu Jan 19, 2017 10:58 am
by Alex K.
Hello,

Please try to set the Image - File property.

Thank you.