1
我想產生一個表,並將其插入到Word文檔,內容如下:最大行數Microsoft.Office.Interop.Word.Table
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.
」
請顯示代碼 –