NAV 4.00 SP3 with Word 2007 Automation
Marcus_Ross
Member Posts: 3
Hallo Everybody,
I like to use the automationserver for Word in Navision. For Office 2003 everything is fine.
Now I like to use the Microsoft Word 12.0 Object Library.Application automation for 2007.
If I like to compile the following:
I got the error: The Variable WRDAPP::MAILMERGEDATASOURCEVAL is defined more than once.
Can someone help me?
Greetz,
Marcus
I like to use the automationserver for Word in Navision. For Office 2003 everything is fine.
Now I like to use the Microsoft Word 12.0 Object Library.Application automation for 2007.
If I like to compile the following:
CREATE(wrdApp);
I got the error: The Variable WRDAPP::MAILMERGEDATASOURCEVAL is defined more than once.
Can someone help me?
Greetz,
Marcus
0
Answers
-
It looks like an error from the automation...
If you de clare the variable with the property "with events", you can see that there are 2 events with the same name:
Declared events for "wrdApp"
....
wrdApp::MailMergeAfterRecordMe(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document")
wrdApp::MailMergeBeforeMerge(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";StartRecord : Integer;EndRecord : Integer
wrdApp::MailMergeBeforeRecordM(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";VAR Cancel : Boolean)
wrdApp::MailMergeDataSourceLoa(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document")
wrdApp::MailMergeDataSourceVal(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";VAR Handled : Boolean)
wrdApp::MailMergeWizardSendToC(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document")
wrdApp::MailMergeWizardStateCh(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";VAR FromState : Variant Value;VAR ToSta
wrdApp::WindowSize(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";Wn : Automation "'Microsoft Word 12.0 Object Librar
wrdApp::XMLSelectionChange(Sel : Automation "'Microsoft Word 12.0 Object Library'.Selection";OldXMLNode : Automation "'Microsoft Word 1
wrdApp::XMLValidationError(XMLNode : Automation "'Microsoft Word 12.0 Object Library'.XMLNode")
wrdApp::DocumentSync(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";SyncEventType : Integer)
wrdApp::EPostageInsertEx(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";cpDeliveryAddrStart : Variant Value;cpDeliver
wrdApp::MailMergeDataSourceVal(Doc : Automation "'Microsoft Word 12.0 Object Library'.Document";VAR Handled : Boolean)
==============
The same error ocurs on Nav 3.70B and 4.0 SP10 -
-
In fact you have to change the name of your automation variable because that name ist already in use by the system...
Greetings0 -
Thank´s to all. The textexport solved the problem. Deleted all Event´s an the code compile well!
:P0
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
- 251 Dynamics CRM
- 103 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