我正在尝试生成一个表格并将其插入到 Word 文档中,如下所示:
object missing = System.Reflection.Missing.Value;
var paragraph = miDoc.Paragraphs.Add(ref missing);
Microsoft.Office.Interop.Word.Table tablaEvaluacion =
Globals.ThisDocument.Tables.Add(paragraph.Range, lstContacto.Count + 1, lstEvaluacion.Count + 3, ref missing, ref missing);
但是当行数超过 63 时,这会导致异常:“ COMException was unhandled by user code. The number must be between 1 and 63.
”