Help Script object ...

if meet this case



procedure tform1.frreport1beforeprint(memo: tstringlist; view: tfrview);
var nMemo1 : tfrmemoview;
begin
nmemo1 := frreport1.findobject('memo1') as tfrmemoview;
if view.name = 'Picture1' then
tfrpictureview(view).picture.loadfromfile('c:\test'+nmemo1.memo.text+'.bmp');

end;


i want to view my picture that file name combine with my data field value in freport memo1, but that error show = 'cannot open file "c:\test[query1."ID"].bmp" '

what's wrong? can somebody help me/

thanks

Comments

  • edited 6:14PM
    Maybe memo object be positioned below Picture object ?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.