I have successfully used this code for many years (since Inventor 2009) to view .ipt thumbnails on a form.
However, after I installed Inventor 2012 the code has stopped working.
If I start Inventor 2011 and run the code, the thumbnail is extracted successfully.
If I start Inventor 2012 and run the code, it fails at the xImg.Extract(img) line (see attachment).
If I again start Inventor 2011 and run the code, the thumbnail is extracted successfully.
Are there anyone who can help in solving this?
Guess what happened when I tried this on .dwg files?
OK, I'll tell you, I got previews.
Dwg files were save as 2000 or 2007 file type.