title: How to write data in excel or csv with different color, size , Font , Bold and Italic format using c#
body: <p>I am writing some report in csv ...so for the best visibility i have to write some data in bold style and some data in different color while writing data into csv..i am using below code for writing in csv ..</p>
  
  <pre><code>        FileInfo outtxt = new FileInfo(filename);
          //  StreamWriter logline = outtxt.AppendText();
          // initialiseStream();
          StreamWriter logline = new StreamWriter(fs);
          if (f == 0)
          {
              logline.WriteLine("sometext");             
          }
  </code></pre>
  
  <p>So how can we format this.</p>