title: How to format heading in excel / csv using C#
body: <p>My code will generate the excel document like this </p>
  
  <pre><code>|id  | Name  | Address  | company_Name | Destination|
  |----|-------|----------|--------------|------------|
  |##1 | xxx   | xxxx     | xxx          | xxxxx      |
  </code></pre>
  
  <p>But I want like this...<br></p>
  
  <pre><code>-----------------------------------------------------
  | Personal Information  |   Working INFO            |
  -----------------------------------------------------
  |id  | Name  | Address  | company_Name | Destination|
  |----|-------|----------|--------------|------------|
  |##1 | xxx   | xxxx     | xxx          | xxxxx      |
  -----------------------------------------------------
  </code></pre>
  
  <p>I get the data from the API and I will save it using the <code>SaveFileDialog</code></p>
  
  <pre><code>SaveFileDialog dialog = new SaveFileDialog();
  dialog.Title = "Save file as...";
  dialog.Filter = "Text files (*.csv)|*.csv";
  dialog.RestoreDirectory = true;
  
  if (dialog.ShowDialog() == DialogResult.OK)
  {
       System.IO.StreamWriter writer = new System.IO.StreamWriter(dialog.FileName); //open the file for writing.
       writer.Write(report); //write the current date to the file. change this with your date or something.
       writer.Close(); //remember to close the file again.
       writer.Dispose(); //remember to dispose it from the memory.
  
       program.ShowInformationMessage("File Save successfully");
  }
  </code></pre>
  
  <p>There is no problem with it.</p>
  
  <p>I want to make the heading as the inline something like it.</p>