Question: "I am using a JITPipeline to output data stored in a series of stringlists,
one of these stringlists contains the names of a graphic. How can I use the JITPipeline.OnGetPicture Event to display an image?"
Solution:
private
FPicture: TPicture; procedure TForm1.FormCreate(Sender: TObject); begin FPicture := TPicture.Create; end;
procedure TForm1.FormDestroy(Sender: TObject); begin FPicture.Free; end;
function TForm1.ppJITPipeline1GetFieldAsPicture(aFieldName: String): TPicture;
var
lsFileName: String;
begin
if aFieldName = 'Graphic' then
begin
lsFileName := JITPipeline['GraphicFile'];
FPicture.LoadFromFile(lsFileName);
end;
Result := FPicture;
end;