Print Page | Close Window

Print CXTPReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=9369
Printed Date: 22 November 2024 at 6:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Print CXTPReportControl
Posted By: FSauer
Subject: Print CXTPReportControl
Date 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



Replies:
Posted By: FSauer
Date 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:
https://forum.codejock.com/uploads/20080122_025525_Neuer_Ordner.zip - uploads/20080122_025525_Neuer_Ordner.zip
 
Regards
Fabian


Posted By: FSauer
Date Posted: 22 January 2008 at 3:25am
The entire Project:
https://forum.codejock.com/uploads/20080122_032447_View.zip - uploads/20080122_032447_View.zip



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net