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 May 02, 2017 9:44 am

hello,
is it possible to add a table directly to a header in a document?
...something like:
Dim MyTable As Table = ParHeader.Body.AddTable(True)

thank you,
Paola

paolagumi
 
Posts: 81
Joined: Tue Apr 21, 2015 11:32 am

Tue May 02, 2017 9:59 am

Dear Paola,

Thanks for your inquiry.
Of course, here is sample code for your kind reference.
Code: Select all
            HeaderFooter header = section.HeadersFooters.Header;
            Table HTable = header.AddTable(true);
            HTable.ResetCells(1, 3);

If you still have issues, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue May 02, 2017 12:25 pm

Thank you, Betsy,
It works fine!!

best regards,
Paola

paolagumi
 
Posts: 81
Joined: Tue Apr 21, 2015 11:32 am

Wed May 03, 2017 1:36 am

Dear Paola,

Thanks for your feedback.
Please feel free to contact us if you have any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.Doc