Click here to Skip to main content
15,881,882 members
Articles / Desktop Programming / MFC

How to print an ActiveX MSChart control

Rate me:
Please Sign up or sign in to vote.
4.30/5 (9 votes)
4 Aug 20023 min read 197.9K   5.3K   44  
A demonstration of printing or print previewing a MsChart component
// PrintMyChart.h : main header file for the PRINTMYCHART application
//

#if !defined(AFX_PRINTMYCHART_H__6D9580A5_92E8_4FEC_B220_590859B4F1EB__INCLUDED_)
#define AFX_PRINTMYCHART_H__6D9580A5_92E8_4FEC_B220_590859B4F1EB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CPrintMyChartApp:
// See PrintMyChart.cpp for the implementation of this class
//

class CPrintMyChartApp : public CWinApp
{
public:
	CPrintMyChartApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPrintMyChartApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation
	COleTemplateServer m_server;
		// Server object for document creation
	//{{AFX_MSG(CPrintMyChartApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PRINTMYCHART_H__6D9580A5_92E8_4FEC_B220_590859B4F1EB__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer Shohero Technologies Ltd
Taiwan Taiwan
Victor Porter is a software engineer who is in Taiwan learning martial arts in his virtually little free time. He also enjoys playing golf occasionally at 5:30 in the morning by sacrificing his dearly needed sleep. He is constantly racking his brains trying to decided if his next project should use his near-decade-experienced-C++ or his near-half-year-C# skills. An American from Pennsylvania, he is currently living in Taipei, Taiwan with his wife and lovely 6 months old daughter, Christine.

Comments and Discussions