Format Excel Using C#

You can also look at this topic