wrdDoc.MailMerge.OpenDataSource2000(MergeFileName,ParamInt);The compiler says, that the OpenDataSource2000 variable could not be found. Means, that the Automation variable wrdDoc and its property MailMerge could be found. We have Office2000 Prof. installed, the automation is there, but something is wrong. What have to be additionally installed in the Office?
Comments
Sometimes the automation (in excel to) don't work if you chane version of office and the instruction change. i don't think that you can change automation, you have to change office version, maybe you can try in a different pc where you have a different version of office.
Note: I didn't change the codeunit 5054 and suppose it should work and be compilable right out of the box with a not very new Office version like Office2003, because the NA V3.70, I am using, has been released before Office2003 and should be compatible with Office2000 as well.
The error message I get by compiling the CU is BTW, I could maybe addapt the C/AL code, but I think there is only something missing in the office2000 installation. Therefore I don't want to change the CU.
Thanx
I' ve added a new field to be pumped in the mail merge document.
But on compiling the code, I get an error :
" You have specified an unknown Variable OpenDataSource2000 Define the variable under Global C/AL symbols"
I have installed office 2000. I am unable to trace where exactly the problem is.
If anybody has a solution to this, pls let me know asap
Regards