Can any one give me the correct way to get this?
I am trying to set, for example, the "Different Odd & Even Page
Header" property in a Word doc.
I have a word document object m_WordDoc.
I am trying ...
m_WordDoc.PageS etup.OddAndEven PagesHeaderFoot er = 1;
.... but get error msg
System.Argument Exception: The parameter is incorrect,
at Microsoft.Offic e.Interop.Word. PageSetup.set_O ddAnd EvenPagesHeader Footer
(Int32 prop) at <...goes on to provide code location...>
Should I be using an accessor method in this code, or am I just
missing something ... if so, is there an example available?
Thanks for any assistance,
Santu.
I am trying to set, for example, the "Different Odd & Even Page
Header" property in a Word doc.
I have a word document object m_WordDoc.
I am trying ...
m_WordDoc.PageS etup.OddAndEven PagesHeaderFoot er = 1;
.... but get error msg
System.Argument Exception: The parameter is incorrect,
at Microsoft.Offic e.Interop.Word. PageSetup.set_O ddAnd EvenPagesHeader Footer
(Int32 prop) at <...goes on to provide code location...>
Should I be using an accessor method in this code, or am I just
missing something ... if so, is there an example available?
Thanks for any assistance,
Santu.
Comment