Пример #1
0
        public static void LoadIntegration()
        {
            ExcelIntegration.ConfigureHost(new IntegrationHost());

            // Check the version declared in the ExcelIntegration class
            int integrationVersion = ExcelIntegration.GetExcelIntegrationVersion();

            if (integrationVersion != ExcelIntegrationVersion)
            {
                // This is not the version we are expecting!
                throw new InvalidOperationException("Invalid ExcelIntegration version detected.");
            }
        }