Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Help! CXTPReportRecords::InsertAt is useless:(
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help! CXTPReportRecords::InsertAt is useless:(

 Post Reply Post Reply
Author
Message
owyo View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2010
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote owyo Quote  Post ReplyReply Direct Link To This Post Topic: Help! CXTPReportRecords::InsertAt is useless:(
    Posted: 21 June 2010 at 12:02am
Everytime I create a CXTPReportRecord with follow codes:
CXTPReportRecord* pRecord = new CXTPReportRecord();
Then add some items:
pRecord->AddItem(new CXTPReportRecordItemText(...));

At last I try to insert the record to the position I want, but failed always.
int nIndex = 0;
//CXTPReportControl m_wndReport;
m_wndReport.GetRecords()->InsertAt(nIndex, pRecord);

So if I want to insert the record to the appointed position, how should I do?
Thanks very much.
Back to Top
owyo View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2010
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote owyo Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2010 at 11:10pm
Anybody help me?
Back to Top
owyo View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2010
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote owyo Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2010 at 2:43am
Back to Top
GRLEX View Drop Down
Groupie
Groupie
Avatar

Joined: 17 February 2009
Location: Ukraine
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote GRLEX Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2010 at 4:21am
When you try to insert record into grid are you sure  that grid is not empty? Are you sure that you added column there?
Pls post more code from your project. And i'll try to help you.
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.109 seconds.