Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add an incrusted chart in a Excel sheet?
Message
 
To
24/11/2003 13:41:17
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00853013
Message ID:
00853024
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
One of the solutions could be to move chart from one sheet to another. Record a macro and translate it to foxpro.

Another solution could be like this:
oleapp.Worksheets(1).ChartObjects.Add(100, 100, 200, 200)

Wait wind "Creating Graph from cells(1,1) to cells(40,2) ..." nowait

oleapp.Worksheets(1).chartobjects(1).chart.;
	chartwizard(oleapp.Worksheets(2).;
		range(oleapp.Worksheets(2).cells(1,1),oleapp.Worksheets(2).cells(40,2)),;
	-4169,6,2,1,0,0,"Title","X-axis","Y-axis","")


with oleapp.Worksheets(1).chartobjects(1).chart
......
>Hi friend!
>
>I'm using Excel OLE automation to create a chart whose data source is in a worksheet. I need to create a chart in the same sheet as the data is. How can I do it? I used the Add() method of the charts class but it creates a new chart as a new sheet, I don't want that. I want to have the chart incrusted in a sheet.
>
>Any hepl would be very appreciated.
>
>TIA
>
>Luis Guerra
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform