Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Nov 05, 2019 3:18 pm

Hi,

is there any option to pretend the pagebreaks that are created after create a table with the code from your
turioal for "Create Word Table in C#, VB.NET" ?

p_husmann
 
Posts: 1
Joined: Tue Nov 05, 2019 3:05 pm

Wed Nov 06, 2019 9:55 am

Hi,

Thanks for your inquiry.
Spire.Doc will automatically break a page according to the content that the page can hold. If the table cannot be placed on one page, the page will be broke automatically, and you don't need to set it.

If you want to insert page break manually, please refer to the code below.
Code: Select all
            Paragraph para = doc.Sections[0].AddParagraph();
            doc.Sections[0].Paragraphs[0].AppendBreak(BreakType.PageBreak);

If I misunderstand, please offer detailed information.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Wed Dec 25, 2019 10:15 am

Hi,

Greetings from E-iceblue.
How's your issue doing? Could you please give us some feedback at your convenience?

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Return to Spire.Doc