Excel Chart

A

aitzi

Hi,

I have to do an application that opens an excel page, and I have to do a
chart.
I can create the chart but I can´t put it in cell that I want.

How can I do it?

Sorry for my English!
 
A

aitzi

Thanks,
But I need use Excel because the Excel page is for my clients.
My code is this:
libro.Charts.Add(opc, opc, opc, opc);

rangos = hoja1.get_Range("A" + fila.ToString(), "C" + (fila +
6).ToString());

//libro.ActiveChart.ChartWizard(rangos, Excel.XlChartType.xlColumnClustered,
opc, Excel.XlRowCol.xlColumns, opc, opc, opc, "historial", opc, opc, "");

libro.ActiveChart.Location(Excel.XlChartLocation.xlLocationAsObject,
"Detalles");



rangos = hoja1.get_Range("I420", "I424");//coge los valores que hay ese
rango en la hoja de c lculo

libro.ActiveChart.SetSourceData(rangos, Excel.XlChartType.xl3DArea);

libro.ActiveChart.Legend.Delete();

libro.ActiveChart.ChartType = Excel.XlChartType.xlBarClustered;

//libro.ActiveChart.PlotBy = Excel.XlRowCol.xlRows;

//libro.ActiveChart.SizeWithWindow = Excel.XlSizeRepresents.xlSizeIsArea;

libro.ActiveChart.SizeWithWindow = true;


//proteger el grafico

libro.ActiveChart.ProtectData = true;

libro.ActiveChart.ProtectFormatting = true;

libro.ActiveChart.ProtectGoalSeek = true;
 
A

aitzi

Sorry, I dont understand.

So, I can use Aspose and open an excel application, yes??

I will try with aspose.

Thanks




Mark Rae said:
[please don't top-post]
But I need use Excel because the Excel page is for my clients.

What difference does that make...?

You're posting in an ASP.NET newsgroup - server-side Office Automation
isn't supported by Microsoft, so you can't use the code that you've
posted.

Therefore, you need a solution which will allow you to manipulate an Excel
workbook *WITHOUT* instantiating Excel itself - hence Aspose...
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top