Report Control CustomDrawReport |
Post Reply |
Author | |
Andy121070
Groupie Joined: 01 December 2010 Location: UK Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 14 March 2017 at 6:11am |
I am in the process of looking at generating a report that looks similar to the CustomDrawReport.exe sample. I have had a look at the samples and sample source code but can't find anything relating to how you get a report row to display like the sample above.
Does anyone have any example source code of this in use that I can take a look at? |
|
Regards
Andy |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Andy121070,
Initialization of ReportControl is in CCustomDrawReportDlg::OnInitDialog()
Every row described by class CMessageRecord which contents 4 items CXTPReportRecordItemText, CMessageRecordItemCheckGroup, CMessageRecordItemRadioGroup, CXTPReportRecordItemProgress. CXTPReportRecordItemText and CXTPReportRecordItemProgress are drawed as default. CMessageRecordItemCheckGroup and CMessageRecordItemRadioGroup are drawed with method CCustomDrawReportDlg::DrawItem(). You can set breakpoints to see callstack. Regards, Oleksandr Lebed |
|
Andy121070
Groupie Joined: 01 December 2010 Location: UK Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Thank you for the response Oleksandr
Should I be able to find the full source code file in any of the CodeJock sample source code? If so, which one do I need to look at?
|
|
Regards
Andy |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
you can open sample project
c:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v17.3.0\Samples\ReportControl\ReportCustomDraw\CustomDrawReport_vc140.sln and see in Solution Explorer all files of sample. Source files of ReportControl you can find in c:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v17.3.0\Source\ReportControl\ Better way is to add ToolkitPro project to solution of sample ReportCustomDraw. You can find project of ToolkitPro in c:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v17.3.0\Workspace\ToolkitPro\ToolkitProShared_vc140.vcxproj Then with using debugging and breakpoints in methods you can explore how ReportControl works. |
|
Andy121070
Groupie Joined: 01 December 2010 Location: UK Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Thanks for that. That would explain why I can't find the sample. We only have the ActiveX version of the controls.
|
|
Regards
Andy |
|
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 |