问题描述
- C#导出word时插入表格不换行
- 我插入表格的代码试这样的
table = myWordApplication.ActiveDocument.Tables.Add(myWordApplication.Selection.Range 1 1 ref missing ref missing);table.Cell(1 1).Range.Text = str; table.Columns.Width = ColumsWidth; table.Range.Font.Size = 9F; table.Rows.Height = 24F; table.Rows.HeightRule = WdRowHeightRule.wdRowHeightExactly; table.Rows.Application.Selection.ParagraphFormat.LineSpacing = 10f; table.Rows.Application.Selection.ParagraphFormat.LineSpacingRule = WdLineSpacing.wdLineSpaceExactly; object objCount = 2; MoveDown(4); 这样在插入表格的时候表格会换行,怎么让他在插入表格的时候不换行啊! 求大神指教一下
时间: 2024-10-03 22:09:21