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)
Fastreport component
Re: Fastreport component
Hello,
The ParamByName method returns the TfrxParamItem object. We don't modify behavior of these method and class, therefore you should refer to FastReport developers concerning using AsString instead of Value.
The ParamByName method returns the TfrxParamItem object. We don't modify behavior of these method and class, therefore you should refer to FastReport developers concerning using AsString instead of Value.
Re: Fastreport component
OK it is not that big of an issue when one knows it so I will just keep the .Value in my code for now
Happy new year to yuo all.....
Happy new year to yuo all.....
Re: Fastreport component
If you have any further questions, feel free to contact us.
Merry Christmas and Happy Holidays to all.
Merry Christmas and Happy Holidays to all.