Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Print CXTPReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Print CXTPReportControl

 Post Reply Post Reply
Author
Message
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Topic: Print CXTPReportControl
    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
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2008 at 3:17am

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
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2008 at 3:25am
The entire Project:
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.156 seconds.