Codeunit 1 Compilation Error.

When i am compiling code unit 1. I am getting the following error.

Could not load the selected type library.

It is on LaunchApp Function. When i open the function and goto local variables they are like these.

DataXML Automation Unknown automation server.

StyleSheetID GUID

ApplicationXML Automation Unknown automation server.

This unknown automation server is causing the problem in compilation.

How to fix this issue guys please help.

You need to have the automation server ‘Microsoft XML, v6.0’.DOMDocument60 and for both the variables.

Kindly check this URL http://social.msdn.microsoft.com/Forums/en-ZA/vbide/thread/66673c64-d329-4456-b036-9c9cadcbb638

You need to have Excel installed in your system,

karthik the excel is installed and working.

how to set these values.

Have you checked the automation server that I have mentioned is in your system or not.

if you would like to use this codeunit, do not compile it only save.

in object designer select this codeunit 1, and press f11 to compile it. normally it will be compiled, but do not occurs problem to use.