Hi,
I've searched and tried several ways but without sucess in order to update Header/Footers fields in a word template using Word Automation.
My template it's being correctly update on the document body, but when i try to update one of the Header/Footer the document doesn get updated..
Can anyone give me the exact sintax in order to achieve this?
Try 1
//wdApp.ActiveWindow.View.SeekView := 10;
//wdApp.ActiveWindow.Selection.SetRange(0,0);//select nothing
//IF wdApp.ActiveWindow.Selection.Find.Execute(SearchField) THEN //find and select
// wdApp.ActiveWindow.Selection.TypeText:='Teste';//the actual replace
[b]Try 2[/b]
///wdApp.ActiveWindow.ActivePane.View.SeekView(10);
//wdApp.Selection.TypeText :='Teste';
etc...
Comments
Does anyone had this type of problem, that can help me?
Any help will be appreciated.
Best Regards
JM
Solved this way:
Hope it helps someone
Regards
´JM