I load the files using Streams. Also if I force to use the DocumentFormat XLS it is not loaded:
Code: Select all
if (_filename.ToLowerInvariant().EndsWith(".xlsm"))
{
documentFormat = GdPicture14.DocumentFormat.DocumentFormatXLS;
}
var status = oGdPictureDoc.LoadFromStream(_filestream, documentFormat);
if (status != GdPictureStatus.OK)
{
throw new Exception("Could not read File!");
}
The format .dotm is supported, when I load using DocumentFormat.DocumentFormatDOCX.