I am currently working in a C# application which has a class which will generate an excel file. Everything went smooth. The data populated on the excel sheet has 'Times New Roman' has font. I would like to change it to some other fonts (Calibari). How can I do that programmatically.
A:
Have you tried something like this:
new Font("Arial", 10, FontStyle.Bold);
Voulnet
2010-09-02 13:45:09
_range.Font = new Font("Arial", 16, FontStyle.Bold);It didn't work.
Sathish
2010-09-02 14:18:02
Have you tried it in your code context? See how .NET works with Font classes and how it builds a 'fonty' text.
Voulnet
2010-09-02 14:23:19
A:
I have gave up. As there seems to be no way to change the font family inside excel sheet programmatically in C# :(
Sathish
2010-09-03 06:52:11