Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Drawing charts in excel and importing them to a Win32 C++ App

  • 31-03-2002 02:45AM
    #1
    Closed Accounts Posts: 5


    Urgently need to know if it is possible to draw a chart or graph from a Win32 App in Visual C++ using MS Excel ??

    Have scoured web and found nothing.

    Any help would be appreciated !!!

    Thanks.


Comments

  • Closed Accounts Posts: 7,346 ✭✭✭Rev Hellfire


    Not sure exactly what you want to do.
    But you can always use the Excel DOM to do it get a WorkSheetPtr and look for teh charts collection and add to that or enumerate it if you're trying to retrieve a chart

    to help you on your way

    #import "C:\Program Files\Microsoft Office\Office\mso9.dll" no_namespace
    #import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\vbe6ext.olb" no_namespace
    #import "C:\Program Files\Microsoft Office\Office\excel9.olb" rename("DialogBox", "ExcelDialogBox") rename("RGB", "ExcelRGB") rename("DocumentProperties", "ExcelDocumentProperties") rename("ExitWindows", "ExcelExitWindows")

    You'd get more help on the programming board I'd suspect.


  • Closed Accounts Posts: 5 viper_47_2


    Thanks Rev Hellfire,

    So this will let me retrieve a chart from excel and display it in a Win32 App using Visual C++ ??

    If so, then it sounds like it is exactly what i need.


Advertisement