does anyone know if there’s any good online tutorial for building pivot tables using Interop.Excel.PivotTable?
These are the only two I can find:
http://blogs.msdn.com/andreww/archive/2008/07/25/creating-a-pivottable-programmatically.aspx
http://www.dreamincode.net/code/snippet1217.htm
And I’m looking for more complicated examples?
Thanks,
If you’re going to write your own COM Excel code, you aren’t going to use the Wizard. Simply record a macro of a pivot table creation and translate the resultant VBA into your language (C#?) Record macros of yourself playing around with pivot tables and you’ll soon get a feel for how to write this code.
Some words of warning: