ReportControl: Formated Item Value |
Post Reply |
Author | |
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
if you need only datevalue, you can use VB functions. (Format)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
I mean you can use FormatDateTime VB function
FormatDateTime(Item.Value, vbShortDate) FormatDateTime(Item.Value, vbGeneralDate)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
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? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |