Edding Text to a MS Word Circular letter
MissesMagic
Member Posts: 39
Hi all,
one question about MS Word, specific Circular letters...
I need to add some text to the document, but I´m not able to set it to the textarea.
The details:
I have created an template with some fields comming i.e. from Contact.
(for example look at "Segment"
Under this I want to type some text via code.
But when I open this document, the text is shown in one of the fields comming from Contact.
I have set a bookmark at the place I want the text to be shown, but he doesn´t find this.
Does anyone have solved such a problem?
Please help me
MM
one question about MS Word, specific Circular letters...
I need to add some text to the document, but I´m not able to set it to the textarea.
The details:
I have created an template with some fields comming i.e. from Contact.
(for example look at "Segment"
Under this I want to type some text via code.
But when I open this document, the text is shown in one of the fields comming from Contact.
I have set a bookmark at the place I want the text to be shown, but he doesn´t find this.
Does anyone have solved such a problem?
Please help me
MM
0
Comments
-
I do not think that without customisations this is going to work.
You can try using bookmarks and some additional coding to place the cursor at the bookmark and type the text there. Always works for me.0 -
I could be wrong, but I think you're asking to put some text at an extra field when using the mailmerge, no?
MOst of the work is done in codeunit 5054:
For an extra field, you should add it in by:
- Adding code in ExecuteMerge-function;
- Adding code in ShowMergedDocument-function;
- Adding code in CreateHeader-function;
- Adding code in fctPrintMergedDocument-function;
In all these functions, you find a bunch of Addfield functions. Just write similar code (all in the same order!) for adding you extra field.
When added an extra field, this is how you can handle it to be able to put multiple lines in it:wrdMergefile.NewMultiField; WHILE NOT <your statement> DO BEGIN <GetNextPieceOfText> wrdMergefile.AddMultiToField(txtTextLine); END; wrdMergefile.EndMultiField;
Hope this helps you ...0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

