Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ADO recordsets in Crystal Reports
Message
From
05/12/2002 14:28:35
 
 
To
04/12/2002 18:57:11
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00729636
Message ID:
00730020
Views:
34
Let me know what you find out.


>
>
>Craig,
>
>We can make the TTX file in VFP as you said, but the problem still remains that even if the TTX file is created with DATETIME instead of TIME, crystal still thinks that teh field is TIME when it run using the ADO object
>
>This is the auto generated file
>
>; Field definition file for table: ADORecordset
>NINVREF	long		1
>NMSDSREF	long		1
>TINVDATE	time		1:23:45 PM
>NTYPE	long		1
>NQUANTITY	long		1
>CDETAILS	string	75	string sample value
>CDATABASEID	string	10	string sample value
>NORIGINALID	long		1
>
>
>We can edit this to look like this:
>
>; Field definition file for table: ADORecordset
>NINVREF	long		1
>NMSDSREF	long		1
>; Note this has been adjusted.
>TINVDATE	datetime		Jan 5, 1994 1:23:45 PM
>NTYPE	long		1
>NQUANTITY	long		1
>CDETAILS	string	75	string sample value
>CDATABASEID	string	10	string sample value
>NORIGINALID	long		1
>
>
>Making this change then allows the user to use this TTX file to create a report using TINVDATE as a DateTime field, however the actual field will still only display as TIME when the ADO recordset has been passed to it, I am beginning to think this reinterpretation of DATETIME into TIME is a bug in the crystal Reporting engine. Because if you interogate the values on the ADOObject before passing it to the report engine the value will be the full DATE and TIME but crystal will only display the time.
>
>Thanks anyway for all you ideas Craig, I might have to contact Crystal for an answer on this one.
>
>Chris.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform