Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Should be Simple: Get text/caption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Should be Simple: Get text/caption

 Post Reply Post Reply
Author
Message
thodgson View Drop Down
Groupie
Groupie
Avatar

Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Topic: Should be Simple: Get text/caption
    Posted: 28 May 2009 at 9:39am
This should be simple, but doesn't appear so, and is frustrating.
 
I want to get the text/caption of a specific row and column.
 
I need to get this specific data as part of a function that searches for specific text in the ReportControl.
 
I am able to go through all of the rows in the control, but cannot figure out how to get data from a specified column. 
Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1072
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2009 at 10:28am
Hi;

If you mean the data of one item just try:

CMyRecord* pRecord=reinterpret_cast<CMyRecord*>(m_report.GetRecords()->GetAt(i);
CString strValue=reinterpret_cast<CXTPReportRecordItemText*>(pRecord->GetItem(0))->GetValue();

HTH
Martin

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.5.0
Platform: Windows 8.1 (64bit)
Language: VC+
Back to Top
thodgson View Drop Down
Groupie
Groupie
Avatar

Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2009 at 12:04pm
That helped, thanks!
Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.