Upgrading classic reports using COM automation or Office integration

If you have reports using COM automation or have code depending on standard NAV Office integration, such as the Excel buffer, you must upgrade your C/AL code to adopt the new interface(s).

In most cases, you will get a compile error when you try to compile your converted reports – but in some cases, you will get hard to understand COM automation errors (for example, “Unable to create an instance of Automation Server”) because the NAV server does not support COM automation and your code has to run the client side on the RTC in order for your code to work. Therefore, in most cases it is better to rewrite your code to use .net components or OpenXML, which is more robust and secure than COM and is supported by the NAV server.

 

There are several articles on this topic that you might find helpful: