How to display an Excel Diagram with VC++
-
I want to display an Excel Diagram on one of my property sheet. I write my programm with VC++6.How can i do it?Could someone help me?:-D and what means LPDISPATCH GetDiagram()?What will i get? Is the value of the diagram ? Or a diagram? Thanks!:rose: grf
-
I want to display an Excel Diagram on one of my property sheet. I write my programm with VC++6.How can i do it?Could someone help me?:-D and what means LPDISPATCH GetDiagram()?What will i get? Is the value of the diagram ? Or a diagram? Thanks!:rose: grf
I'm not entirely sure what you intend to do, but I think you'll need to investigate COM. I believe the new name for doing such things is .net, but I don't think that is supported by VC++6(I may be completely wrong about this though as I haven't used visual studio much in the past) I believe under the projects menu there will be a menu "Add Class", which will generate some header files for you to interface with COM objects. Do a google for COM etc. You can also use MSDN.com as a resource. Be warned though if you go down this path, as most documaentation you will find will be for VB applications, and a strong use of variant types can make debugging a nightmare without docs.
-
I'm not entirely sure what you intend to do, but I think you'll need to investigate COM. I believe the new name for doing such things is .net, but I don't think that is supported by VC++6(I may be completely wrong about this though as I haven't used visual studio much in the past) I believe under the projects menu there will be a menu "Add Class", which will generate some header files for you to interface with COM objects. Do a google for COM etc. You can also use MSDN.com as a resource. Be warned though if you go down this path, as most documaentation you will find will be for VB applications, and a strong use of variant types can make debugging a nightmare without docs.
Use class wizard to add class from type library function and fro the TLB file u will get the interface needed to program any app that support OLE COM etc
-
I want to display an Excel Diagram on one of my property sheet. I write my programm with VC++6.How can i do it?Could someone help me?:-D and what means LPDISPATCH GetDiagram()?What will i get? Is the value of the diagram ? Or a diagram? Thanks!:rose: grf
My job is to write in Excel ,read from Excel and display Diagram .Now i could write and read.I've used EXCEL.EXE from type library function to write/read (Excel.Application, Excel.Workbook,Excel.Sheet...).But i don't know how to display with VC++. I know that it is no easy to do it with VC++.But i have to use VC++ . :confused: