how to display the picture
hi i have some data in a table, it's name Product. it's contain some data like this:
code picture
A1 C:\A1.jpg
A2 C:\A2.jpg
...etc.
field picture just contain path of picture location not a blob. how can i show in fast report which contain code of product and it's picture? help me
thank's
yudi
code picture
A1 C:\A1.jpg
A2 C:\A2.jpg
...etc.
field picture just contain path of picture location not a blob. how can i show in fast report which contain code of product and it's picture? help me
thank's
yudi
Comments
IIRC picture1.picture.loadfromfile('path&filename');
1. table product have 2 field (as i wrote before)
2. i put a memo which contain code and picture(which load from directori) in masterdata1 band.
3. if i use picture1.picture.loadfromfile('C:\A1.jpg') in obp event of pictureview then code A1 and A2 display picture A1.jpg
4. i want like this:
if code A1 then the picture A1.jpg
if code A2 then the picture A2.jpg
or we can say every code display it's own picture. or how to fill 'path&filename' with value of picture field in table product
thank's
yudi
if <datasetname."fieldname" > = 'A1' then
picture1.picture.loadfromfile('C:\A1.jpg') else
picture1.picture.loadfromfile('C:\A2.jpg');
or if the data field contains the path & filename
picture1.picture.loadfromfile(<datasetname."fieldname" >);
language of group is english.
good example, I have implemented, now I have a query, where registration is not assigned photo, an error is thrown, as it might handle this exception so that if there is not just a picture showing the object empty?
in obp event of band check the size of the datafield stream if not large enough to be a picture
then modify the pictureview's properties to suit
That perfectly works for me.
Thanks a lot for your help.
Am new to OAF and have one question.. If I want to display the prompts against any field in the OAF page dynamically then is this feasible? What should I be looking to achieve the same.
Thanks and Regards
Please PM me.
The way you said you did not call and the following error message appeared.
help me
void Picture1OnBeforePrint(TfrxComponent Sender)
{
picture1.picture.loadfromfile(< frxDBDataset1."LBLImage" >);
// picture1.picture.loadfromfile("E:\Certificate\AghahiTojihi\Keshvarian.jpg");
}