{"id":408,"date":"2023-03-22T05:05:09","date_gmt":"2023-03-22T05:05:09","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=408"},"modified":"2023-03-22T05:05:11","modified_gmt":"2023-03-22T05:05:11","slug":"interface-not-supported-error-when-attempting-to-open-excel-or-word-from-delphi","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2023\/03\/22\/interface-not-supported-error-when-attempting-to-open-excel-or-word-from-delphi\/","title":{"rendered":"&#8220;Interface not supported&#8221; error when attempting to open Excel or Word from Delphi"},"content":{"rendered":"\n<p>When using Delphi that outputs some text into Excel or Word, I encountered the error &#8220;Interface not supported&#8221; on one machine<\/p>\n\n\n\n<p>The problem was that the previous version of Excel was uninstalled incorrectly on the machine. To fix it, I used these steps :<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open the regedit editor.<\/li><li>Open\u00a0<code>HKEY_CLASSES_ROOT >> TypeLib >> {00020813-0000-0000-C000-000000000046}<\/code><\/li><\/ol>\n\n\n\n<p>(The Excel PIA key is\u00a0<code>{00020813-0000-0000-C000-000000000046})<\/code>\u00a0<\/p>\n\n\n\n<p>3. Delete the version that you don&#8217;t have. Leave only the version that you have instaled. In my case it was Excel 2010 which is 1.7. For Excel 2013 is 1.8, and for Excel 2016 is 1.9<\/p>\n\n\n\n<p>Here are the version controls<\/p>\n\n\n\n<p><strong>Excel<\/strong>&nbsp;HKEY_CLASSES_ROOT\\TypeLib{00020813-0000-0000-C000-000000000046}\\<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>1.7 is for Office 2010<\/li><li>1.8 is for Office 2013<\/li><li>1.9 is for Office 2016<\/li><\/ul>\n\n\n\n<p><strong>Word<\/strong>&nbsp;HKEY_CLASSES_ROOT\\TypeLib{00020905-0000-0000-C000-000000000046}\\<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>8.5 is for Office 2010<\/li><li>8.6 is for Office 2013<\/li><li>8.7 is for Office 2016<\/li><\/ul>\n\n\n\n<p><strong>PowerPoint<\/strong>&nbsp;HKEY_CLASSES_ROOT\\TypeLib{91493440-5A91-11CF-8700-00AA0060263B}\\<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>2.a is for Office 2010<\/li><li>2.b is for Office 2013<\/li><li>2.c is for Office 2016<\/li><\/ul>\n\n\n\n<p><strong>Outlook<\/strong>&nbsp;HKEY_CLASSES_ROOT\\TypeLib{00062FFF-0000-0000-C000-000000000046}\\<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>9.4 is for Office 2010<\/li><li>9.5 is for Office 2013<\/li><li>9.6 is for Office 2016<\/li><\/ul>\n\n\n\n<p>Hope it helps<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Interface not supported&#8221; error when attempting to open Excel or Word from Delphi<\/p>\n","protected":false},"author":1,"featured_media":409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,2],"tags":[36,77,238,87],"class_list":["post-408","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-day-to-day-life","category-delphi-and-interbase","category-windows-and-beyond","tag-delphi","tag-excel","tag-interface-not-supported","tag-windows-10"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=408"}],"version-history":[{"count":1,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/408\/revisions"}],"predecessor-version":[{"id":410,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/408\/revisions\/410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media\/409"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}