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.
Wed Oct 04, 2023 9:28 am
Hi Team ,
Please let us know how to add rectangle border to each page in the document. Please find the attached screenshot.
Thanks in advance
Login to view the files attached to this post.
-
pr20080798
-
- Posts: 159
- Joined: Wed Jan 20, 2021 1:15 pm
Fri Oct 06, 2023 3:38 am
Hi,
Thanks for your inquriy.
Please refer to the following code for reference.
- Code: Select all
Document doc = new Document();
Section section = doc.addSection();
section.getPageSetup().getBorders().setBorderType(BorderStyle.Single);
doc.saveToFile("result.docx");
If you have any other questions or concerns, just feel free to contact us.
Best regards,
Triste
E-iceblue support team
-
Triste.Dai
-
- Posts: 1000
- Joined: Tue Nov 15, 2022 3:59 am