Hi All,
I have a problem
I currently creating a report to print picture selected from file
I use a Request Form and use the Common Dialog Management CU to select the file.
I put the filepath in a global variable (text 1024)
I create a Table that contains only one field with the type of BLOB
My question is how to save the image to the table. I try Insert and Modify
But it shows errors
Thanks in advance
______________
Regards,
Steven
0
Comments
It Shows TempPicture Picture ' ' does not exist.
If I use TempPicture.INSERT after TempPicture.Picture.IMPORT(filepath);
It Shows TempPicture Picture '*' does not exist.
How to solve this, i'm lost
If i comment the Insert / Modify, my report shows the picture, but i just wonder how to do if i want to save the previous selected picture
Thanks
Regards,
Steven
byebye
Thanks
Regards,
Steven
only contain one field named Gambar with the type of BLOB
Thanks
Regards,
Steven
Insert one record in the tabel (by hand) then modify your report like below
IF PictPath = '' THEN
EXIT
ELSE BEGIN
recTempPic.FIND('-');
if recTempPic.Gambar.HASVALUE then
clear(recTempPic.Gambar);
recTempPic.Gambar.IMPORT(PictPath);
recTempPic.MODIFY;
END;
I think the table 50001 dos'nt have one single item!
It is better, first insert the record by the key then modify the picture.
Is not possible work with a single piscture field in a table.
byebye adg good luke!
Mirko.