Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - ReportControl: Formated Item Value
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReportControl: Formated Item Value

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: ReportControl: Formated Item Value
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2005 at 7:52am
if you need only datevalue, you can use VB functions. (Format)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.