![]() |
CXTPReportControl Request |
Post Reply
|
| Author | |
Italo
Groupie
Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPReportControl RequestPosted: 23 July 2004 at 8:12pm |
|
It would be great if the control had a function to safe the current layout (columns index, sort order, grouped columns, etc) to a string. Thanks, Italo. |
|
![]() |
|
hunter
Newbie
Joined: 27 July 2004 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2004 at 2:05pm |
|
There are methods to Serialize config (check XTPReportControl.h) |
|
![]() |
|
Italo
Groupie
Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 July 2004 at 10:56am |
|
Thanks, but I was hoping to be able to serialize it to a string (maybe XML).
|
|
![]() |
|
spike
Groupie
Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 July 2004 at 8:39am |
|
Yea, I dont understand why they didnt stick with *their* standard of saving to an XML file or registry or whatever, like docking panes or window positions.
|
|
![]() |
|
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 July 2004 at 9:24am |
|
Window positions are just a binary WINDOWPOS struct saved to the registry, not strings or xml.
|
|
![]() |
|
spike
Groupie
Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 July 2004 at 3:27pm |
|
What is your point? |
|
![]() |
|
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 July 2004 at 10:24pm |
|
Point was "Yea, I dont understand why they didnt stick with *their* standard of saving to an XML file or registry or whatever, like docking panes or window positions." when the only thing that really applies to is docking pane layouts as far as I can tell. Every other thing I have saved to the registry via codejock is a binary structure as far as I have seen. |
|
![]() |
|
spike
Groupie
Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 August 2004 at 6:34pm |
|
They may be in binary, but they atleast give you the option to save to the registry or XML already built in. I dont see why they didnt add the same functionality to this control.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 August 2004 at 3:48am |
|
void CReportSampleView::LoadReportState() CMemFile memFile(pData, nBytes); } void CReportSampleView::SaveReportState() ar.Flush(); DWORD nBytes = (DWORD)memFile.GetPosition(); AfxGetApp()->WriteProfileBinary(_T("ReportControl") , _T("State"), pData, nBytes); ar.Close(); } |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |