Office_Version := 0; Automation_Server.SETFILTER(Name,'Microsoft Excel 8.0 Object Library'); IF Automation_Server.FINDFIRST THEN Office_Version := 1; Automation_Server.SETFILTER(Name,'Microsoft Excel 9.0 Object Library'); IF Automation_Server.FINDFIRST THEN Office_Version := 2; Automation_Server.SETFILTER(Name,'Microsoft Excel 10.0 Object Library'); IF Automation_Server.FINDFIRST THEN Office_Version :=3; Automation_Server.SETFILTER(Name,'Microsoft Excel 11.0 Object Library'); IF Automation_Server.FINDFIRST THEN Office_Version := 4; Automation_Server.SETFILTER(Name,'Microsoft Excel 12.0 Object Library'); IF Automation_Server.FINDFIRST THEN Office_Version := 5; Automation_Server.SETFILTER(Name,'Microsoft Excel 14.0 Object Library'); IF Automation_Server.FINDFIRST THEN Office_Version := 6;
Answers
Declare 2 variables
Then the code:
Will show the office version, in my environment 14.0 (office 2010)
Check in codeunit 5054 WordManagement for other stuffs about office integration.
Cheers!
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com