Hello everybody,
how are you ? :-)
I m desperately trying to fill in text fields in Word, using Automation in Navision, but having no luck so far ...
Plus, I would need some advice in how to address a page Header and Footer also, please :-(
any help would be appreciated
cheers,
m.
... I am not a programmer, I just write code.
0
Answers
thanks for your reply though
cheers, m.
If you go to the office developer site and you type in 'Page Header Word Text' in the search box (located at the upper left side of the screen), the first URL that appears is :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd11/html/woobjHeaderFooter1_HV05210930.asp
Unlike for Navision, Microsoft *does* provide clear and meaningfull documentation for Office on it's site, if one takes the effort to search for it (writing this post took longer than searching for it).
If I would have succeeded in using the pages you suggested, I wouldn t have posted this question, so your sarcasm is funny, but inappropriate, thank you. :roll:
have a nice evening
cheers, m.
And this is not the way to do it.
Passl, may'be you can be more specific in what you already tried to do (seeing your reactions, you've already tried a lot). If we know exactly what you tried to do the answers will be more specific..and will give you your solution..
http://home.casema.nl/mvandermeij
http://www.mibuso.com/forum/viewtopic.php?t=3373
http://www.mibuso.com/forum/viewtopic.php?t=1900
yes even this one
http://www.mibuso.com/forum/viewtopic.php?t=927
http://www.BiloBeauty.com
http://www.autismspeaks.org
// switch to Header/Footer view via:
Winword.ActiveWindow.ActivePane.View.Seekview := 9;
Selection.TypeText('This is some Header Text');
// return back to the main document:
Winword.ActiveWindow.ActivePane.View.Seekview := 0;
0 and 9 are the value of the constants "wdSeekCurrentPageHeader" and "wdSeekPrintview", as they cannot be used in Automation, using their internal values works though.
cheers, m.