I've imported XML file and buttons in Word became available, but when I press neither works.
Code isn't important here.
Problem is solved. My Word application wasn't registered. Now when registered everithing works.
Problem is solved. My Word application wasn't registered. Now when registered everithing works.