小编Ske*_*363的帖子

Max Rows Microsoft.Office.Interop.Word.Table

我正在尝试生成一个表并将其插入到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);
Run Code Online (Sandbox Code Playgroud)

但是当行数超过63时,这会导致异常:" COMException was unhandled by user code. The number must be between 1 and 63."

c# ms-word office-interop

1
推荐指数
1
解决办法
1190
查看次数

标签 统计

c# ×1

ms-word ×1

office-interop ×1