<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Visual Basic and Excel export issue in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12527386#M14136</link>
    <description>&lt;P&gt;If it worked in debug then it should work when released.&lt;/P&gt;&lt;P&gt;What's the problem after release and install?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 19:54:56 GMT</pubDate>
    <dc:creator>Frederick_Law</dc:creator>
    <dc:date>2024-01-29T19:54:56Z</dc:date>
    <item>
      <title>Visual Basic and Excel export issue</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12527305#M14135</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing an inventor addin to improve our workflow, using vb.NET. Currently my goal is to export all the Excel tables of a drawing to the same file, however, my addin does works when I debug but not when I release and install,&amp;nbsp; and I cannot debug any error in the console. I am importing the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Imports System.Runtime.InteropServices&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Import Inventor&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Imports Microsoft.Win32&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Imports Excel = Microsoft.Office.Interop.Excel&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Imports System.Collections.Generic&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything else I need to do to work the Excel export from Inventor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll be grateful for any help,&lt;/P&gt;&lt;P&gt;SV&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 11:53:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12527305#M14135</guid>
      <dc:creator>sebastian_varelaRD3LQ</dc:creator>
      <dc:date>2024-01-31T11:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Basic and Excel export issue</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12527386#M14136</link>
      <description>&lt;P&gt;If it worked in debug then it should work when released.&lt;/P&gt;&lt;P&gt;What's the problem after release and install?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 19:54:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12527386#M14136</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-01-29T19:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Basic and Excel export issue</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12527445#M14137</link>
      <description>&lt;P&gt;The problem is that it doesn't even start the sub that uses the excel's library&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Private Sub ExportExcel(drawingDoc As DrawingDocument, excelFilePath As String, boxTitle As String)

MsgBox("EXCEL INSTANCE N°0")

'Crear una instancia de Excel
Dim excelApp As New Excel.Application
MsgBox("EXCEL INSTANCE N°1")
.
.
.
End Sub&lt;/LI-CODE&gt;&lt;P&gt;This is the start of my sub, I put those msgboxes but&amp;nbsp;"EXCEL INSTANCE N°0" never appears&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 20:19:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12527445#M14137</guid>
      <dc:creator>sebastian_varelaRD3LQ</dc:creator>
      <dc:date>2024-01-29T20:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Basic and Excel export issue</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12529445#M14138</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14179002"&gt;@sebastian_varelaRD3LQ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your past message you have not got an instance of excel.&lt;A href="https://reinventinginventor.wordpress.com/vba-code-for-exporting-inventor-parts-list-to-excel-with-thumbnails/" target="_blank" rel="noopener"&gt;From this article here is how to set up the object.&lt;/A&gt;&lt;BR /&gt;The API help doesn’t show this method as a sample or documents which is a little weird really.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;‘Check if Excel is running and close it first
Dim oExcel As Excel.Application
oExcel = GetObject(, “Excel.Application”)

If Not (oExcel Is Nothing) Then
MsgBox “Close Excel first.”
Exit Sub
End If
‘Open Excel.

oExcel = CreateObject(“Excel.Application”)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:40:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/visual-basic-and-excel-export-issue/m-p/12529445#M14138</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-01-30T15:40:38Z</dc:date>
    </item>
  </channel>
</rss>

