Print Page | Close Window

How to use the method PrintToDC

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=21841
Printed Date: 19 May 2024 at 9:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to use the method PrintToDC
Posted By: harishchsm
Subject: How to use the method PrintToDC
Date Posted: 08 August 2013 at 1:41am
How to use the method PrintToDC()?

I'm trying to print the chart using the method PrintToDC(). I used the following code, but I don't get it clearly.


CXTPChartControl *pChartCtrl;
.
.
.
CPrintDialog *pPrintDlg = new CPrintDialog(FALSE);
if (pPrintDlg->DoModal() == IDOK)
{
.
.
pChartCtrl->PrintToDC (pPrintDlg->GetPrinterDC(), CRect (0, 0, 800, 600));
}

Please help me with this one.



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