I'm using the office 2007 interop assemblies to create some excel spreadsheets.
There are plenty of questions on here about getting started and MSDN contains heaps of articles, like this one.
The API is funky, and sometimes a bit confusing.
When I set a value of a cell, is there a way to set it's format? I'd like to mark particular fields as Date's so my customer can run excel macros on them. Also, numbers would be useful.
Thanks!
VBA based code. However same should work with c# (ignore the syntax).
The best way to learn Excel Object Model is to create a macro of actions you wish to take, look at the code & modify the parts which require external input. Also, the object model is pretty easy to understand (Application -> Workbook -> Worksheets -> Worksheet -> Range (Cell)).