Print Page | Close Window

HOWTO: Print report control into arbitrary DC

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=18067
Printed Date: 16 June 2025 at 3:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO: Print report control into arbitrary DC
Posted By: mgampi
Subject: HOWTO: Print report control into arbitrary DC
Date Posted: 17 March 2011 at 8:46am
Hi;

I want to print a CXTPReportControl (no CXTPReportControlView) into a print / preview device context but I don't know how this can be done.
I'm not using the MFC standard print framework because I use a 3rd party report generator that only provides a callback in my application with the HDC and the RECT (in device coordinates - MM_LOMETRIC, MM_HIMETRIC, ...) defined for the report control.
So what do I have to do that the report control correctly scales into this rect?

Any help or sample is very welcome!


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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