monacelli

Do not use .tmp file extension with ImportPictureFromFile method

Discussion created by monacelli on Feb 23, 2011
The IPictureElement.ImportPictureFromFile method throws an ArgumentException, value does not fall within the expected range, when you pass it a file path which ends in the .tmp extension. I changed the extension to .png, and now the method succeeds.

Outcomes