Click here to Skip to main content
Click here to Skip to main content

Working with Excel in MFC

By , 9 Apr 2013
 

Using the Code

A few coders asked me to share my developed COlezAutomation which is taken from here, because somewhere, I wrote that I developed a little bit of existing classes. So, I was thinking of putting up a small example here of how you can play with Excel charting via OleAutomation, even with more than one series. Of course, you can do almost any operation with Excel (exporting, importing, working with formulas, working with worksheets, etc.), but I think that the charting operation is useful here.

After some tests, if Excel is properly installed, on CMainFrame::OnHelpPlayexcel, you can start a window top most dialog from where you can control an Excel charting (like extern application), with two kinds of charts (pie and column, 3D or not), and from "Randomize" button, you can generate one or more charts series.

Of course, you can integrate the Excel application in your, let's say MDI application, like ActiveX control, to have an "all in house" solution.

There are not many things to say, the credit goes to Val Golovlev, who I thank again. I just want to share what I have from this class.

Enjoy it!

History

  • 9th April, 2013: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Flaviu2
Romania Romania
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 9 Apr 2013
Article Copyright 2013 by Flaviu2
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid