![]() |
How to retrieve Data |
Post Reply ![]() |
Author | |
fireflame ![]() Groupie ![]() Joined: 15 March 2007 Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() Posted: 15 March 2007 at 1:49am |
I got a reportcontrol and some data displayed like:
InstrumentID Fee
CU0705 100
AL0809 200
now I want to retrieve the data in the Instrument column,who can help me!
|
|
![]() |
|
FSauer ![]() Groupie ![]() ![]() Joined: 10 May 2006 Location: Germany Status: Offline Points: 96 |
![]() ![]() ![]() ![]() ![]() |
Hi.
Try to use this:
CXTPReportRecords* records = GetReportCtrl().GetRecords();
CXTPReportRecord* record = records->GetAt(0); //For the first record CXTPReportRecordItem* item = record ->GetItem(0) //For the first Item in the record
if(item->IsKindOf(RUNTIME_CLASS(CXTPReportRecordItemText)))
CString str = (CXTPReportRecordItemText*)item)->GetValue(); Regards FSauer
|
|
![]() |
|
fireflame ![]() Groupie ![]() Joined: 15 March 2007 Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() |
thanks a lot and i solved it in another way like:
CXTPReportRecordItemText pTextItem1 = dynamic_cast<CXTPReportRecordItemText*>(pRecord1->GetItem(3));
CString strText1 = pTextItem1->GetValue(); |
|
![]() |
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 |