1

Closed

Not Able to Write to a Footer

description

Hi, I am not able to write to a footer. Here is my Code in IronPython:

Create Word Application instance

TypeLib = clr.LoadTypeLibrary(System.Guid("00020905-0000-0000-C000-000000000046"))
Word = TypeLib.Word.Application()

Word.Documents.Open("Temp.doc")
Word.Visible = 0
WordDoc = Word.ActiveDocument

WordSection = WordDoc.Sections
Footer = 'Test'
WordSection.Footers[Microsoft.Office.Interop.Word.WdHeaderFooterIndex.wdHeaderFooterFirstPage].Range.Text = Footer

I am getting following error:
Error : '__ComObject' object has no attribute 'Footers'

Can anybody help me on this.
Regards,
Suma
Closed Dec 18, 2012 at 6:10 PM by TomCornelius
Hi, this is the issue tracker for the codeplex site. You may want to post your issue on the individual project's issue tracker page.

comments

suma_putani wrote Dec 18, 2012 at 10:28 AM

IronPython Version : 2.7.3