Fastreport component
Posted: Tue 30 Dec 2014 12:00
I am trying to figure out how to use Fastreport witj UniDAC but I have a question
I have a TfrxUnidacQuery on my report with the following SQL
SELECT * FROM qrymd_diary WHERE flddiary_guid = :diary_guid
I the have some code on the OnStartReport to add the param
procedure frxReport1OnStartReport(Sender: TfrxComponent);
begin
ShowMessage('Start report: ' + varDiaryGuid);
qryDiary.Close;
qryDiary.ParamByName( 'diary_guid' ).Value := varDiaryGuid;
qryDiary.Open;
end;
This works OK but if I use .AsString like i normaly would do it doesn't work - i get no records. Is that normal or what
I am using a demo version of the newest UniDAC and FastReport but that shouldn't be the problem or what.
(The licensed versions we have is some what old and should be updated in the new year)
I have a TfrxUnidacQuery on my report with the following SQL
SELECT * FROM qrymd_diary WHERE flddiary_guid = :diary_guid
I the have some code on the OnStartReport to add the param
procedure frxReport1OnStartReport(Sender: TfrxComponent);
begin
ShowMessage('Start report: ' + varDiaryGuid);
qryDiary.Close;
qryDiary.ParamByName( 'diary_guid' ).Value := varDiaryGuid;
qryDiary.Open;
end;
This works OK but if I use .AsString like i normaly would do it doesn't work - i get no records. Is that normal or what
I am using a demo version of the newest UniDAC and FastReport but that shouldn't be the problem or what.
(The licensed versions we have is some what old and should be updated in the new year)