1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
procedure TFen_PresenterResultats.FeuilleCommentairesBeforePrint(
Sender: TfrxReportComponent);
begin
frxImage:=FeuilleCommentaires.FindObject('picture1') as TfrxPictureView;
end;
procedure TFen_PresenterResultats.frxUserDataSet1GetValue(const VarName: string;
var Value: Variant);
begin
if Pos(VarName,'Titre')>0 then Value:='Titre : '+DatasPhotos1[frxUserDataSet1.RecNo].Titre;
if Pos(VarName,'Notes')>0 then Value:='Notes : '+DatasPhotos1[frxUserDataSet1.RecNo].N1 +' - '
+DatasPhotos1[frxUserDataSet1.RecNo].N2 +' - '
+DatasPhotos1[frxUserDataSet1.RecNo].N3;
if Pos(VarName,'Classement')>0 then Value:='Classement : '+DatasPhotos1[frxUserDataSet1.RecNo].Place;
if Pos(VarName,'Picture1')>0 then
if assigned(frxImage) then frxImage.Picture.LoadFromFile(DatasPhotos1[frxUserDataSet1.RecNo].Fichier);
end; |
Partager