Print Page | Close Window

How to retrieve Data

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=6648
Printed Date: 22 November 2024 at 8:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to retrieve Data
Posted By: fireflame
Subject: How to retrieve Data
Date 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!



Replies:
Posted By: FSauer
Date Posted: 21 March 2007 at 5:07am
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
 


Posted By: fireflame
Date Posted: 26 March 2007 at 9:47pm
thanks a lot and i solved it in another way like:
CXTPReportRecordItemText pTextItem1 = dynamic_cast<CXTPReportRecordItemText*>(pRecord1->GetItem(3));
  CString strText1 = pTextItem1->GetValue();
 



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