![]() |
Print CXTPReportControl |
Post Reply ![]() |
Author | |
FSauer ![]() Groupie ![]() ![]() Joined: 10 May 2006 Location: Germany Status: Offline Points: 96 |
![]() ![]() ![]() ![]() ![]() Posted: 21 January 2008 at 5:13am |
Hi.
How can i print a CXTPReportControl?
The CXTPReportView Class provide printing, but CXTPReportControl don't provide it.
Have anybody a idea?
Regards
Fabian
|
|
![]() |
|
FSauer ![]() Groupie ![]() ![]() Joined: 10 May 2006 Location: Germany Status: Offline Points: 96 |
![]() ![]() ![]() ![]() ![]() |
Hi. I find a way.
I override the following method of class
CXTPReportControl
virtual BOOL PaginateTo(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo); virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnPrint(CDC *pDC, CPrintInfo *pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); and CFormView:
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo); Attached the Header and CPP Files:
Regards
Fabian
|
|
![]() |
|
FSauer ![]() Groupie ![]() ![]() Joined: 10 May 2006 Location: Germany Status: Offline Points: 96 |
![]() ![]() ![]() ![]() ![]() |
The entire Project:
|
|
![]() |
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 |