How to add page number to text in footer, using word automation from VC++, MFC??
Posted on 2003-11-23
I'm using VC++ and MFC to make a .doc thru automation. All works ok. But I'm having trouble with headers and footers. I have all the ms word constants added to my project, so I have access to all the pertinent classes.
Here is my question:
How to add a footer with text AND the page number?
This is my code THAT DOES NOT WORK so far:
rangeFooter1.SetText("This is the footer for all pages");
Can someone help me sort this out please ?