is there any way to suppress header in asppse to word reporting.
Hi
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your request. If you need just remove all headers/footer from your document you can try using the following code:
// Open document.
Document doc = new Document(@"in.doc");
// Loop through all sections and remove headers/footers.
foreach (Section section in doc.Sections)
section.HeadersFooters.Clear();
// Save output document.
doc.Save(@"out.doc");
Hope this helps.
Best regards,
thanks for your code. actually i am creating word template to create reports in pdf using aspose. normally we suppress any section in template by seperating it using section break and applying a book mark on tht section. but here i need 3 logos in header section. there i cant place book mark and section.
so my question is there any way to do that.
Thanks.
Hi
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for additional information. Could you please attach your template and expected output document (you can create it manually in MS Word)? I will check the issue and provide you more information.
Best regards,