Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Chart Control
  New Posts New Posts RSS Feed - How to use the method PrintToDC
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to use the method PrintToDC

 Post Reply Post Reply
Author
Message
harishchsm View Drop Down
Newbie
Newbie
Avatar

Joined: 08 August 2013
Location: India
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote harishchsm Quote  Post ReplyReply Direct Link To This Post Topic: How to use the method PrintToDC
    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.
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.143 seconds.