Extract image and output it to an excel file

hi every one. could anyone help me, now i have some .stl files, what i want is: when i open a .stl file, i hope i can get the active view and extract it to a image, then output this image to an Excel file. how can i do this? thank you very much.

thank you very much. seems now i can input image into excel, but how can i get the picture from an opened .stl file? as you know we can use ExtractPreviewImage to extract an image from .3dm file, but how can we do to a .stl file? thank you very much.

Try using CreatePreviewImage().


thank you very much, this helps me a lot to solve this issue.