Hi,
My motive is to add 1 field in the WordManagement Codeunit in three functions - ExecuteMerge, ShowMergedDocument and CreateHeader which would provide this field in the mail merge document created on fly.
I have Win 2000 Prof OS and MS Office 2000.
Before adding the code in the CU 5054, if I compile, it flashes an error
" You have specified an unknown Variable - OpenDataSource2000 - Define the variable under Global C/AL Code"
So, does this error appearing after I add the code for adding field in the document. I saved the object without compiling it and executed the Show button on the Interaction Log Entries Form. But it gives an error saying that the CU should be compiled.
If anybody has encountered such a problem, pls share the solution with me.
Thank you in advance.
0
Comments
Can you compile it with "OpenDataSource" :?:
You can also see which function you need, if you make a manuel Mailmerge in Word with open an datasource (active the Macrofunction to record). Take a look into the Macro. Ther you can see which function you need.
Regards
I tried compiling this particular on a pc with OS XP and Office 2003, it got compiled and I was able to add the field I wanted to.
Does it have something to do with the compatilbility of Office and OS used with the version of Navision.
Kindly advice in detail.....
When you will use an older office (97,98,2000) you must change the code to
OpenDataSource.
An example:
Regards
Thanks very much for comprehensive explanation.
Well, I did a work around for it.
I installed MS Office 2003, and then compiled the object. It worked. Once, modified from my pc (with Office 2003) I compiled and saved the CU.
After that, if any calls from the form made to that particular CU 5054, it works perfectly.
Thanks once again.