<?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 Include thumbnail in custom table in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7943240#M89682</link>
    <description>&lt;P&gt;I am using iLogic to create an HTML page with a table listing certain parts from an assembly BOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to include a column for a thumbnail image of the part. Here is some of the code (please note, large chunks of code is missing, but just to give a better idea of what I'm building on)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oWrite&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;File&lt;/SPAN&gt;.&lt;SPAN&gt;CreateText&lt;/SPAN&gt;(&lt;SPAN&gt;oHTMLDoc&lt;/SPAN&gt;)	&lt;SPAN&gt;' Create the HTML file&lt;BR /&gt;&lt;/SPAN&gt;' Lines to set up HTML table, fonts etc.....&lt;BR /&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oRow&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BOMRow&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oBOMRows&lt;BR /&gt;&lt;/SPAN&gt;        oRowCompDef = oRow.ComponentDefinitions.Item(1)
	&lt;SPAN&gt;fullfilename&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
	&lt;SPAN&gt;partnumber&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;
	&lt;SPAN&gt;category&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Category"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;
	&lt;SPAN&gt;comments&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Comments"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;

	&lt;SPAN&gt;' Add thumbnail image here&lt;/SPAN&gt;
	&lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;(&lt;SPAN&gt;"&amp;lt;td Class=""tg-yw4l""&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;a href="""&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;fullfilename&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"""&amp;gt; "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;partnumber&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/a&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;(&lt;SPAN&gt;"&amp;lt;td Class=""tg-yw4l""&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;category&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;(&lt;SPAN&gt;"&amp;lt;td Class=""tg-yw4l""&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;comments&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;)
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What is the best way to access the thumbnail image for me to use it on my HTML document?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2018 00:14:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-19T00:14:10Z</dc:date>
    <item>
      <title>Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7943240#M89682</link>
      <description>&lt;P&gt;I am using iLogic to create an HTML page with a table listing certain parts from an assembly BOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to include a column for a thumbnail image of the part. Here is some of the code (please note, large chunks of code is missing, but just to give a better idea of what I'm building on)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oWrite&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;File&lt;/SPAN&gt;.&lt;SPAN&gt;CreateText&lt;/SPAN&gt;(&lt;SPAN&gt;oHTMLDoc&lt;/SPAN&gt;)	&lt;SPAN&gt;' Create the HTML file&lt;BR /&gt;&lt;/SPAN&gt;' Lines to set up HTML table, fonts etc.....&lt;BR /&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oRow&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;BOMRow&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oBOMRows&lt;BR /&gt;&lt;/SPAN&gt;        oRowCompDef = oRow.ComponentDefinitions.Item(1)
	&lt;SPAN&gt;fullfilename&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
	&lt;SPAN&gt;partnumber&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part Number"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;
	&lt;SPAN&gt;category&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Document Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Category"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;
	&lt;SPAN&gt;comments&lt;/SPAN&gt; = &lt;SPAN&gt;oRowCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor Summary Information"&lt;/SPAN&gt;).&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Comments"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt;

	&lt;SPAN&gt;' Add thumbnail image here&lt;/SPAN&gt;
	&lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;(&lt;SPAN&gt;"&amp;lt;td Class=""tg-yw4l""&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;a href="""&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;fullfilename&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"""&amp;gt; "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;partnumber&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/a&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;(&lt;SPAN&gt;"&amp;lt;td Class=""tg-yw4l""&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;category&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;)
	&lt;SPAN&gt;oWrite&lt;/SPAN&gt;.&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;(&lt;SPAN&gt;"&amp;lt;td Class=""tg-yw4l""&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;comments&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/td&amp;gt;"&lt;/SPAN&gt;)
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What is the best way to access the thumbnail image for me to use it on my HTML document?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 00:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7943240#M89682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-19T00:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7943385#M89683</link>
      <description>&lt;P&gt;I am able to get the thumbnail iProperty as IPictureDisp but I need a way to convert &amp;amp; save this as an image for me to use on my page. Can anyone provide some guidance how to achieve this?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 02:15:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7943385#M89683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-19T02:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7943794#M89684</link>
      <description>&lt;P&gt;You could create a image on saving the document, and use that..&lt;/P&gt;&lt;P&gt;I mean export ie *.bmp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 07:32:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7943794#M89684</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-04-19T07:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7944152#M89685</link>
      <description>Do you have some sample code?</description>
      <pubDate>Thu, 19 Apr 2018 09:16:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7944152#M89685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-19T09:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7944157#M89686</link>
      <description>&lt;PRE&gt;Public Sub SaveAsBmp()
    ' Get the active view.
    Dim oView As View
    Set oView = ThisApplication.ActiveView
    
 'Create a new NameValueMap Object
    Dim oOptions As NameValueMap
    Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap '.TransientObjects.CreateNameValueMap
    
    oOptions.Value("TransparentBackground") = True 'True
    oOptions.Value("OnlyShowActiveComponentsForIn-PlaceEditing") = True
    oOptions.Value("OnlyShowActiveComponentsForInPlaceEditing") = True
    oView.Fit
    Call oView.SaveAsBitmapWithOptions("C:\Temp\TestB2.bmp", 0, 0, oOptions)
End Sub&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:18:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7944157#M89686</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-04-19T09:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7946671#M89687</link>
      <description>&lt;P&gt;As I am looping through the 'parts only' bom rows I won't be using ThisApplication.ActiveView.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I could access an image from each BOMRow item?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 01:55:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7946671#M89687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T01:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7947170#M89688</link>
      <description>&lt;P&gt;If you just want to save the thumbnail(IPictureDisp) of a document via API you can refer to below posts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://modthemachine.typepad.com/my_weblog/2010/06/accessing-thumbnail-images.html" target="_blank"&gt;http://modthemachine.typepad.com/my_weblog/2010/06/accessing-thumbnail-images.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.msdn.microsoft.com/andreww/2007/07/30/converting-between-ipicturedisp-and-system-drawing-image/" target="_blank"&gt;https://blogs.msdn.microsoft.com/andreww/2007/07/30/converting-between-ipicturedisp-and-system-drawing-image/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope they help.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 07:43:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7947170#M89688</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2018-04-20T07:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7951098#M89689</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715"&gt;@YuhanZhang&lt;/a&gt;&amp;nbsp; Yes that is what I'm trying to achieve. I'm struggling to add the correct references for any of the codes in the links you sent me to work in iLogic environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It fails on either SavePicture or&amp;nbsp;&lt;SPAN&gt;Compatibility.VB6.IPictureDispToImage because&amp;nbsp;of missing reference to my project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;Could you advise on what I would need to add to get either of these methods to work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AddReference "&lt;EM&gt;blah blah&lt;/EM&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Imports &lt;EM&gt;blah blah&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 22:26:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7951098#M89689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-22T22:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7952149#M89690</link>
      <description>&lt;P&gt;To add the reference to &lt;SPAN&gt;Compatibility.VB6&lt;/SPAN&gt; you need to add it as below in your .Net project(create a VB.net project to try it):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RefToVB.png" style="width: 823px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/492002i2E52AD09018FA352/image-size/large?v=v2&amp;amp;px=999" role="button" title="RefToVB.png" alt="RefToVB.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use Browser... to reference it from GAC using below path:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualBasic.Compatibility\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.Compatibility.dll&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in iLogic&amp;nbsp;Rule editor I think you can just add below line&amp;nbsp;to the Header Statements area:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#ff0000"&gt;Imports&lt;/FONT&gt; &lt;FONT color="#993300"&gt;Microsoft.VisualBasic.Compatibility.VB6&lt;/FONT&gt; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me if any more problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 11:06:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7952149#M89690</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2018-04-23T11:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7953785#M89691</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715"&gt;@YuhanZhang&lt;/a&gt;&amp;nbsp;thank you for your help. I'm still getting an error&amp;nbsp;unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My full code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AddReference "stdole.dll"&lt;BR /&gt;AddReference "Microsoft.VisualBasic.Compatibility.dll"&lt;BR /&gt;Imports Microsoft.VisualBasic.Compatibility.VB6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub Main SaveThumbnail()&lt;BR /&gt;' Get the active document.&lt;BR /&gt;Dim doc As Document&lt;BR /&gt;doc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Get the thumbnail from the document.&lt;BR /&gt;Dim thumb As Inventor.IPictureDisp&lt;BR /&gt;thumb = doc.Thumbnail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Create the filename for the bmp file so it is the same&lt;BR /&gt;' as the document name but with a "bmp" extension.&lt;BR /&gt;Dim filename As String&lt;BR /&gt;filename = Left$(doc.FullFileName, Len(doc.FullFileName) - 3) &amp;amp; "bmp"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Save the thumbnail.&lt;BR /&gt;'Call stdole.SavePicture(thumb, filename)&lt;BR /&gt;img = Compatibility.VB6.IPictureDispToImage(thumbnail)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error I get is with Compatibility.VB6.IPictureDispToImage:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Reference required to assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise if I try using SavePicture method I get this errror:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'SavePicture' is not declared. It may be inaccessible due to its protection level.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can fix to get either of these to work?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:09:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7953785#M89691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-23T20:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Include thumbnail in custom table</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7954413#M89692</link>
      <description>&lt;P&gt;Here is the updated iLogic code, please check if it works there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;AddReference "system.drawing.dll"
AddReference "stdole.dll"
AddReference "Microsoft.VisualBasic.Compatibility.dll"
Imports Microsoft.VisualBasic.Compatibility.VB6

Sub Main()
' Get the active document.
Dim doc As Document
doc = ThisApplication.ActiveDocument

' Get the thumbnail from the document.
Dim thumb As Inventor.IPictureDisp
thumb = doc.Thumbnail

' Create the filename for the bmp file so it is the same
' as the document name but with a "bmp" extension.
Dim filename As String
filename = Left$(doc.FullFileName, Len(doc.FullFileName) - 3) &amp;amp; "bmp"

 
Dim img As Drawing.Image
img = Compatibility.VB6.IPictureDispToImage(thumb)

Call img.Save ("C:\temp\custom.bmp")

End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Apr 2018 03:16:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/include-thumbnail-in-custom-table/m-p/7954413#M89692</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2018-04-24T03:16:41Z</dc:date>
    </item>
  </channel>
</rss>

