Modify chart data through program

D

Deepak

Hello

I am using Office 2007 SP2. I am changing chart data through program using
the below code.

shape.Chart.ChartData.Activate();
newWorkbook = shape.Chart.ChartData.Workbook as
MSExcel.Workbook;
targetSheet = (MSExcel.Worksheet)(newWorkbook.Worksheets[1]);
....//Code to change the data.

It is working fine. The only issue is it is opening excel and then changing
the excel data.

Is there any way i can hide the excel and all data change should done in
background.

Thanks
Deepak
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top