E
Eugene
Hello,
I need some help. I have a code that was working fine in C# when it
was compiled with Office XP installed on my PC. Now I got a new PC
with office 2003 installed and I can't compile the code, I'm getting
following error: "'Word.Sections' does not contain a definition for
'Item'"
and here is the code I'm trying to compile:
private Word.Application m_app;
private Word.Document m_doc;
private Word.Range hRange;
private Word.HeaderFooter footer;
m_app = new Word.ApplicationClass();
m_doc = m_app.Documents.Add(ref template, ref newTemplate, ref
documentType, ref visible);
hRange = m_doc.Sections.Item(1).Headers.Item(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary).Range;
footer = m_doc.Sections.Item(1).Footers.Item(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary);
If somebody can help me, I will really appreciate it.
I need some help. I have a code that was working fine in C# when it
was compiled with Office XP installed on my PC. Now I got a new PC
with office 2003 installed and I can't compile the code, I'm getting
following error: "'Word.Sections' does not contain a definition for
'Item'"
and here is the code I'm trying to compile:
private Word.Application m_app;
private Word.Document m_doc;
private Word.Range hRange;
private Word.HeaderFooter footer;
m_app = new Word.ApplicationClass();
m_doc = m_app.Documents.Add(ref template, ref newTemplate, ref
documentType, ref visible);
hRange = m_doc.Sections.Item(1).Headers.Item(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary).Range;
footer = m_doc.Sections.Item(1).Footers.Item(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary);
If somebody can help me, I will really appreciate it.