MS Word 11.0 OL + Textfields + HeaderFooter

prassl
Member Posts: 24
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.
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
-
-
thank you - that one was not too helpful, unfortuately :-(
thanks for your reply though
cheers, m.... I am not a programmer, I just write code.0 -
There is something that is called Search.
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).0 -
maybe I should phrase it more clearly:
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.... I am not a programmer, I just write code.0 -
This forum is to exchange knowledge and ideas.
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..Mark van der Meij,
http://home.casema.nl/mvandermeij0 -
Here are some other Word Automation posts
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=9270 -
Solution how to access and afterwards edit the Page Header:
// 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.... I am not a programmer, I just write code.0 -
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions