Can u tell me how can i put a text into a specific part

Edu@rdo
Member Posts: 3
Hello,
I'm trying to Export e Report in Navision to a Word Document but I have dificult in pass the values with the function GoTo, can anyone give me an example how to do that.
Regards,
Edu@rdo
I'm trying to Export e Report in Navision to a Word Document but I have dificult in pass the values with the function GoTo, can anyone give me an example how to do that.
Regards,
Edu@rdo
0
Comments
-
Hello,
I usually do something like:WordAF.ActiveDocument.Range.Words.Item(30).InsertAfter('something'); WordAF.ActiveDocument.Range.Words.Item(40).InsertAfter('to '); WordAF.ActiveDocument.Range.Words.Item(50).InsertAfter('insert');
or I have entered in the doc my marks and try to find and replace them like:a:='<EXPIRATION DATE>'; IF WordAF.ActiveWindow.Selection.Find.Execute(a) THEN WordAF.ActiveWindow.Selection.TypeText:=FORMAT(SalesOrder."Service Contract Expire Date"); END;
Or in your case with the goto:a:=3; b:=1; c:=3; d:=''; WordAF.ActiveWindow.Selection.GoTo(a,b,c,d);
where a = goto line (and goto Page=1, goto section=2...), b=gotofirstfind, c=line number (or page number or ...). The a,b,c,d vars are Variants.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