Fastreport component

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Fastreport component

Post by oz8hp » 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)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Fastreport component

Post by AlexP » Tue 30 Dec 2014 13:30

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.

oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Re: Fastreport component

Post by oz8hp » Tue 30 Dec 2014 15:26

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.....

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Fastreport component

Post by AlexP » Tue 30 Dec 2014 15:44

If you have any further questions, feel free to contact us.

Merry Christmas and Happy Holidays to all.

Post Reply