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


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: 1198
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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
thodgson View Drop Down
Groupie
Groupie


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

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

This page was generated in 0.142 seconds.