![]() |
CXTPReportControl PrintPreview |
Post Reply ![]() |
Author | |
vjedlicka ![]() Senior Member ![]() Joined: 04 September 2007 Status: Offline Points: 122 |
![]() ![]() ![]() ![]() ![]() Posted: 01 December 2013 at 1:16pm |
How do I switch CXTPReportControl to print-preview mode?
|
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
![]() |
|
SuperMario ![]() Senior Member ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
GetReportCtrl().EnablePreviewMode(!GetReportCtrl().IsPreviewMode());
GetReportCtrl().Populate();
|
|
![]() |
|
vjedlicka ![]() Senior Member ![]() Joined: 04 September 2007 Status: Offline Points: 122 |
![]() ![]() ![]() ![]() ![]() |
Is that all I need to do to display a print preview?
I added those two lines as the last statements in the CReportItemControlsDlg::OnInitDialog() method (sample ReportItemControls) and nothing happened.
|
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
![]() |
|
Michl ![]() Senior Member ![]() Joined: 14 September 2007 Status: Offline Points: 138 |
![]() ![]() ![]() ![]() ![]() |
|
|
![]() |
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 |