how to save img or pdf

Hi,

I'm trying to save files to an image folder.

Both version works OK if the file is open in the solid.

Yet if I'm running on an asm file and wanting to make pictures of files which aren't open for view I can't.

doc.Windows.Item(1).View.SaveAsImage(jpegFileFullName);//jpeg
doc.SaveAs(pdf3dFileFullName, Type.Missing, true); //3D pdf

 

(edited) if I'm opening each file in and saving it all works, yet this takes too much time.. is there a faster solution to update the Windows view or different API?

Thanks.

 

Posted by: joseph polk
Post date: 9/4/2012 1:52:32 PM