Thank you for the quick response. Here is the code that worked under 7.9:
public static byte[] GetBytesFromPresentation(PresentationEx presentation)
{
byte[] bytes = null;
MemoryStream ms = null;
try
{
ms = new MemoryStream();
presentation.Write(ms);
ms.Seek(0, SeekOrigin.Begin);
bytes = new byte[ms.Length];
ms.Read(bytes, 0, (int)ms.Length);
}
finally
{
if (ms != null)
{
ms.Close();
ms.Dispose();
}
}
return bytes;
}
When I change the type of the parameter from PresentationEx to Presentation, it tells me that Presentation does not have a Write method.
How do I update this code to work with the new API?