Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to retrieve Data
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to retrieve Data

 Post Reply Post Reply
Author
Message
fireflame View Drop Down
Groupie
Groupie


Joined: 15 March 2007
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote fireflame Quote  Post ReplyReply Direct Link To This Post Topic: How to retrieve Data
    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!
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
fireflame View Drop Down
Groupie
Groupie


Joined: 15 March 2007
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote fireflame Quote  Post ReplyReply Direct Link To This Post 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();
 
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.125 seconds.