Posted 3 November 2021, 8:07 am EST
I want to read the paragraphs of a word file and when I open the file I get the error shown. I have tried with 2 files and it always does.
GrapeCity.Documents.Word.GcWordDocument doc = new
// ERROR. (-2146233088) Default table style cannot be changed.
GrapeCity.Documents.Word.GcWordDocument();
doc.Load(“F:\Temp1\BOE - Codigo de Derecho Agrario (new).docx”);
foreach (dynamic MyParagraph in doc.Body.Paragraphs) { string Texto_Parrafo = MyParagraph.Text; }