private static string GetPictureFilename(ExportType export, PreviewImageType previewImage) { if (previewImage != null) { foreach (object o in export.Content.Items) { if (o is AssetType) { AssetType asset = o as AssetType; if (string.Equals(asset.Guid, previewImage.GuidRef)) return asset.AssetFilename; } } } return null; }
private static string GetPictureFilename(ExportType export, PreviewImageType previewImage) { if (previewImage != null) { foreach (object o in export.Content.Items) { if (o is AssetType) { AssetType asset = o as AssetType; if (string.Equals(asset.Id, previewImage.IdRef)) { return(asset.OriginalSource); //---articy converts filename, so use original. Was: asset.AssetFilename; } } } } return(null); }