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 Aug 30, 2012 2:41 pm

Hi,

Spire.Doc adds a blank (empty) page to any document I make. After debugging a bit I found out that it happens when I add a footer.

Here is the code:

Dim footer As HeaderFooter = section.HeadersFooters.Footer
Dim footerParagraph As Paragraph = footer.AddParagraph()
Dim txt = footerParagraph.AppendText("footer text")
footerParagraph.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center
txt.CharacterFormat.FontName = "Tahoma"
txt.CharacterFormat.FontSize = 8

What am I doing wrong here?

Thanks,

Elger

cengiz
 
Posts: 1
Joined: Fri Nov 11, 2011 9:49 am

Fri Aug 31, 2012 9:57 am

Hi cengiz,

Sorry, we don't know what your problem is. Could you provide us more information(for example, error information, sreenshot, the code which produce error or your document)? Thanks.

Best wishes,
Amy
e-iceblue support
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc