I open source document and make some modifications in it. Due to those modifications footer text will be gone. So i get footer text and set it again to concerned pages and save the document. So my destination document will have modifications as well as footer data properly.
The code i use for getting footer text is
foreach(Section section in doc)
footerPrimary = section.HeadersFooters[HeaderFooterType.FooterPrimary];
string primary = footerPrimary.GetText();
for setting footer text is
But now problem is source document contains table. But GetText() method is not fetching the table structure. It is fetching content of table as normal paragraph only. So if i try to set that footer which i got from gettext method then in destination document table is missing.
I am attatching source document with footer having table for your reference.PFA.
My destination documnet also should contain table data in footer.
Kindly tell me how can i get footer text from a documnet in such a way that table information also comes and how can i set footer text with table in another document.
I just want to know how to get and set footer text which contains a table. Destination document can be anything it can be another new documnet. My requirement is i want to get footer info present in attatched source document and set it to another document footer but table information should come properly.
Kindly reply ASAP…Thankyou in anticipation.