I get this error, "Specified argument was out of the range of valid values", when I try to write a PPTX to an output stream. However if I write to a file instead, the presentation is output correctly.
writing to the response stream fails...
System.IO.Stream st = this.Response.OutputStream;
presEx.Write(st);
but this works ok...
presEx.Write("myfile.pptx");
Any ideas?