Works in Word XP not Word2000

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);
 
R

rajas

Figured it out - EndNoteOptions is not available in earlier versions

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top