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.

Thu Mar 09, 2017 9:52 pm

Hello
As the subject implies, is there any way to force a paragraph to not have any page breaks, so that the entire paragraph is on the same page?

Thanks
Roy

shakazulu89
 
Posts: 4
Joined: Sun Nov 27, 2016 11:05 am

Fri Mar 10, 2017 2:02 am

Dear Roy,

Thanks for your inquiry.
Please use following code to keep the paragraph on same page.
Code: Select all
Paragraph.Format.KeepLines = true;


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Mar 14, 2017 9:42 am

Dear Roy,

Did you test the code ? Did it help you solve your issue ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc