Mega Search
23.2 Million


Sign Up

Make a donation  
Delphi 2010 & rave report Data Type problem  
News Group: embarcadero.public.delphi.reporting-charting

i create a report using rave report.
i use adoquery, rvdatasetconnection, and rvproject.
on rave designer i can execute the report i already design without any problem. i choose preview and it show the data i want.
but when i execute it from runtime, it ask the output option and when choose preview i get error

Project project.exe raise exception class ERaveException with message 'Field DataView1:qty. Datatype expected:dtBCD Datatype found: dtInteger'.

from the error say i think the data type missmatch, but cannot find where or how to fix it.
did i miss something or maybe i did something wrong somewhere.

thanks

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 24-Sep-2014, at 1:35 AM EST
From: Budi Saputra
 
Re: Delphi 2010 & rave report Data Type problem  
News Group: embarcadero.public.delphi.reporting-charting
i dont know what or where goes wrong.
but it fixed by itself.
what i did, only delete my  adoquery, rvdatasetconnection, and rvproject.
and put a new one. set all needed attribute. set data view on rave designer. run it and it work.

maybe i miss one or two needed attribute to set or maybe its a bug.
but anyway thank for trying to help me.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 26-Sep-2014, at 1:22 AM EST
From: Budi Saputra
 
Re: Delphi 2010 & rave report Data Type problem  
News Group: embarcadero.public.delphi.reporting-charting
I don't use ADO so I can't test but I would try setting persistent 
fields and specifically set the field type to dtBCD

Mike

On 24.09.2014 11:46 PM, George Winkler wrote:
> Hard to help without seeing the code. I have used Rave a long time but I use RVSystem because I can code it the way I want and just don't see these kind of problems. Code??
>
> George
>
>> {quote:title=Budi Saputra wrote:}{quote}
>> i create a report using rave report.
>> i use adoquery, rvdatasetconnection, and rvproject.
>> on rave designer i can execute the report i already design without any problem. i choose preview and it show the data i want.
>> but when i execute it from runtime, it ask the output option and when choose preview i get error
>>
>> Project project.exe raise exception class ERaveException with message 'Field DataView1:qty.

Datatype expected:dtBCD Datatype found: dtInteger'.
>>
>> from the error say i think the data type missmatch, but cannot find where or how to fix it.
>> did i miss something or maybe i did something wrong somewhere.
>>
>> thanks

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 24-Sep-2014, at 4:00 PM EST
From: Mike Hickman
 
Re: Delphi 2010 & rave report Data Type problem  
News Group: embarcadero.public.delphi.reporting-charting
Hard to help without seeing the code. I have used Rave a long time but I use RVSystem because I can code it the way I want and just don't see these kind of problems. Code??

George

> {quote:title=Budi Saputra wrote:}{quote}
> i create a report using rave report.
> i use adoquery, rvdatasetconnection, and rvproject.
> on rave designer i can execute the report i already design without any problem. i choose preview and it show the data i want.
> but when i execute it from runtime, it ask the output option and when choose preview i get error
> 
> Project project.exe raise exception class ERaveException with message 'Field DataView1:qty. Datatype expected:dtBCD Datatype found: dtInteger'.
> 
> from the error say i think the data type missmatch, but cannot find where or how to fix it.
> did i miss something or maybe i did something wrong somewhere.
> 
> thanks

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 24-Sep-2014, at 6:46 AM EST
From: George Winkler