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: 29 September 2024 at 5:24am
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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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