如何在表格中插入分页符 [英] How to insert a page break in a table
问题描述
嗨.
我有以下代码:
Hi. 昏暗 objWordApp Word.Application Dim objWordApp As Word.Application 昏暗 objDoc 新建 True objDoc = objWordApp.Documents.Add
Dim objDoc As New Word.Document 使用 objDoc With objDoc 昏暗 intLinie Int16 = 8 Dim intLinie As Int16 = 8
对于 a = 0 5
tblTable.Cell(a + 1,1).Range.Text = For a = 0 To 5
tblTable.Cell(a + 1, 1).Range.Text = 如果 a = 3 如果 If a = 3 Then 下一步 tblTable.Borders.InsideLineStyle = Word.WdLineStyle.wdLineStyleSingle tblTable.Borders.InsideLineStyle = Word.WdLineStyle.wdLineStyleSingle 结束 End With http://support.microsoft.com/kb/316383 >
本文中的示例代码演示了如何插入表和插入分页符.
The sample code in this article demonstrates how to insert tables and insert page break. 最诚挚的问候, Best regards, 这篇关于如何在表格中插入分页符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
I have this code:
objWordApp = 新建
objWordApp = New Word.Application
objWordApp.Visible = True 'IIf(chkShowWord.Checked, True, False)
objDoc = objWordApp.Documents.Add
tblTable 如 "\ endofdoc" ).范围,5, 2)
Dim tblTable As Word.Table
tblTable = objDoc.Tables.Add(objDoc.Bookmarks.Item("\endofdoc").Range, 5, 2)
'Insert a new page, and continue table on new page
End If
tblTable.Borders.OutsideLineStyle = Word.WdLineStyle.wdLineStyleSingle
tblTable.Borders.OutsideLineStyle = Word.WdLineStyle.wdLineStyleSingle
How do i insert the pagebreak (insert a new page), and then continue table on the next page?
Kindly Peer Larsen推荐答案
您可以使用并研究该代码示例以弄清您的问题.
You can play with and investigate the code sample to figure out your question.
谢马丁(Martin Xie)
Martin Xie