views:

1535

answers:

2

Hi,

Does anyone know how I can embed an Excel Pivot table control in a win form application developed in C#?

The raw data for the form would be coming from a SQL Server 2000 database and loaded into a DataTable.

Thanks,

+1  A: 

I don't that you can embed the actual Excel pivot table control into your application but you can make a reference to the Excel libraries to manipulate your data then display it in a DataGridView or other third party control.

Here is a good article on linking to Excel: http://support.microsoft.com/kb/302096

Here is my favorite third party Excel like control: http://www.spreadsheetgear.com/

Hope this helps.

sbeskur
Thanks :) Will have a good read of these links.
theburningmonk
A: 

You can try the Winforms OLAP grid from VIBlend. You can easily get it to create pivot tables on the fly using APIs.

Hope it helps with solving the problem.

Sasha