Print Page | Close Window

ReportControl: Formated Item Value

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2112
Printed Date: 17 November 2024 at 7:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ReportControl: Formated Item Value
Posted By: ianp
Subject: ReportControl: Formated Item Value
Date Posted: 14 April 2005 at 4:05am

How can I retrieve the formatted text for a ReportRecordItem?

In the ReportSample project, which has a formated date column, I cannot seem to get out the formatted date string using item.caption, item.Value or item.format

any ideas




Replies:
Posted By: Oleg
Date Posted: 15 April 2005 at 7:52am
if you need only datevalue, you can use VB functions. (Format)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ianp
Date Posted: 15 April 2005 at 3:53pm

I'd like to be able to access the visible value for all items displayed in the control regardless of type.

For date values, how can I convert the ReportCOntrolItem.Format string into a VB method?



Posted By: Oleg
Date Posted: 19 April 2005 at 8:11am

I mean you can use FormatDateTime VB function

 

FormatDateTime(Item.Value, vbShortDate)

FormatDateTime(Item.Value, vbGeneralDate)

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ianp
Date Posted: 19 April 2005 at 2:53pm

sorry oleg, I did understand which functions you meant, but using these functions means I have to compromise my solution by formating the item.value using the closest vb alternative to that used/displayed by the control.

What I'd like to do is display/use the exact same formatted value the user sees in the ReportControl. So if one date item is formatted ddd dd/mm/yyyy and another is formatted yyyy-mm-dd, I am able to display the date (item.value) in the correctly formatted way so as not to confuse the end user.

Is this possible, or can it be added in future?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net