Hello,
for the fastreport's users.
We can define copies of the report with dinamic content using CopyName# variable, aditionaly I need to change some picture for every copy, did somebody make some thing like that?
thanks in advance
Marcelo V'ia
frxglobalvariables['copyname0'] := 'PREVIEW';
frxglobalvariables['copyname1'] := 'COPY1';
frxglobalvariables['copyname2'] := 'COPY2';
frxglobalvariables['copyname3'] := 'COPY3';
frxglobalvariables['copyname0'] := 'PREVIEW';
frxglobalvariables['copyname1'] := 'COPY1';
frxglobalvariables['copyname2'] := 'COPY2';
frxglobalvariables['copyname3'] := 'COPY3';
ShumingWang wrote:1. code :
procedure Picture1OnBeforePrint(Sender: TfrxComponent);
begin
if callhbfunc('file',['.\sub\'+trim(<masterdata."imgid">)+'.jpg']) then
TfrxPictureView(page1.FindObject('picture1')).Picture.LoadFromFile('.\sub\'+trim(<masterdata."imgid">)+'.jpg')
else
TfrxPictureView(page1.FindObject('picture1')).Picture:=nil;
end;
begin
end .
2 .Page -- picture1 ---Event table --- onbforeprint
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: cmsoft and 83 guests