I have a document open in solid edge that I would like to be saved as an image (TIFF to be specific). Currently, this is the code I use to save the file:
FileName = objDocument.Name
NewFileName = "C:\Folder" & "\" & "OrtBo" & FileName & ".tif"
objDocument.SaveAs(NewFileName)
Where NewFileName dictates where the file is to be saved and with what extension. When I run the program in vb.net, the file saves, however when I open the saved file with irfan, I get an error that says either the "cannot read header, file format is not recognized or the file cannot be found". I thought it was a problem with the original file, however when I save the document as a TIFF file directly in solid edge, everything is fine. So there must be a problem with my vb.net code. Any suggestions for saving a file as an image? Thanks in advance!