Print Page | Close Window

Should be Simple: Get text/caption

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14404
Printed Date: 20 April 2024 at 12:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Should be Simple: Get text/caption
Posted By: thodgson
Subject: Should be Simple: Get text/caption
Date 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 - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit



Replies:
Posted By: mgampi
Date 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


Posted By: thodgson
Date Posted: 28 May 2009 at 12:04pm
That helped, thanks!

-------------
Tim H( http://www.ExclamationSoft.com - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit



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