views:

382

answers:

1

How do you create and then insert an Excel 2007 chart in Word 2007 with office interoperability?

Important: I do not want to save an Excel file to create a chart.

A: 

Someone kind of did it (but XLS and not XLSX):
http://www.eggheadcafe.com/software/aspnet/32178562/insert-excel-chart-into-w.aspx

I have not tried it myself though, hope it helps.

o.k.w
What is the type of chart for this line of code in your link: oClassType = "Excel.Chart.8"?
Partial
I am not really sure this is the way for Excel 2007 and Word 2007. :S
Partial
@Partial: I've not studied the codes nor have I tried it. Thought it might give you some hints. Guess not?
o.k.w
It wasn't really helpful. Adding OLEObjects was the way of doing with previous versions of Office and I am really looking for the most up to day way of it.
Partial