chetan Allipur

chetan Allipur

  • NA
  • 541
  • 166.9k

I am getting error in property Style

Jul 12 2017 6:45 AM
Here is my code
 
 
Microsoft.Office.Interop.Word.Application app = Globals.ThisAddIn.Application;
Microsoft.Office.Interop.Word.Document doc1 = app.ActiveDocument;
 
foreach (var para in doc1.Paragraphs)
{
AddItemToCollection(objcol, ('\t' + (para.Style.TrimStart() + ('\t' + (para.Style.Font.Name.TrimStart() + ('\t' + (para.Style.Font.Size.TrimStart() + (char)11)))))));
}
 
I am getting error in Style in every place.
 
can anyone help me? 
 

Answers (1)