Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Error when writing PPTX to a stream

Last post 02-08-2010, 11:38 AM by Mudassir. 3 replies.
Sort Posts: Previous Next
  •  04-30-2009, 5:37 AM 177453

    Error when writing PPTX to a stream

    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?

     
  •  05-05-2009, 2:15 AM 177940 in reply to 177453

    Re: Error when writing PPTX to a stream

    Hello,

    Thanks for reporting.

    I can replicate the problem with the following code. We will fix it as soon as possible.

    PresentationEx presEx = new PresentationEx("C:\\source\\source.pptx");

    this.Response.ClearContent();

    this.Response.ClearHeaders();

    this.Response.ContentType = "application/vnd.ms-powerpoint";

     

    System.IO.Stream st = this.Response.OutputStream;

    presEx.Write(st);

    this.Response.End();


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  02-08-2010, 3:25 AM 221172 in reply to 177940

    Re: Error when writing PPTX to a stream

    Has this issue been resolved yet?
     
  •  02-08-2010, 11:38 AM 221261 in reply to 221172

    Re: Error when writing PPTX to a stream

    Dear Dennis,

    Thanks for your interest in Aspose.Slides.

    Please try using the code mentioned in the above forum post. In my case, it is working properly. If you still face any problem, please convey to us.

    Thanks and Regards,
     

    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML