R
rajas
My C++ program is creating a Word document with text and footnotes. Am using the code below to get the EndNoteOptions - works in WordXP but the GetEndNoteOptions fails in Word2000 with a message "Member not found" - what should I be doing
MSWord::_Document objDoc;
MSWord::StoryRanges stories;
MSWord::Range range; //documents range
MSWord::Selection sel;
objDoc = win.GetDocument();
stories = objDoc.GetStoryRanges();
range = stories.Item(1);
objWordApp.SetVisible(TRUE);
//endnote formatting
MSWord::EndnoteOptions eno = range.GetEndnoteOptions(); // end of document *** Word XP fails here
eno.SetLocation((long)1); //end of document
eno.SetNumberingRule((long)0); //restart-continuous
eno.SetNumberStyle((long)0); //arabic
eno.SetStartingNumber((long)1);
MSWord::_Document objDoc;
MSWord::StoryRanges stories;
MSWord::Range range; //documents range
MSWord::Selection sel;
objDoc = win.GetDocument();
stories = objDoc.GetStoryRanges();
range = stories.Item(1);
objWordApp.SetVisible(TRUE);
//endnote formatting
MSWord::EndnoteOptions eno = range.GetEndnoteOptions(); // end of document *** Word XP fails here
eno.SetLocation((long)1); //end of document
eno.SetNumberingRule((long)0); //restart-continuous
eno.SetNumberStyle((long)0); //arabic
eno.SetStartingNumber((long)1);