Free Support Forum - aspose.com

Presenting user with a Save file dialog

Hi Support team,

I have a requirement in which I want to present the user with a Save file dialog before I write my modified PPTX (I am using PresentationEx object) to the disk.

Can you please suggest a way I can do this.

Regards,

Varun

Hi Varun,


I like to share that Aspose.Slides exposes the presentation save method that can take string or OutputStream as input and you may use that to save the presentation files; whether you save that normally or by calling modal Save dialog. As far as Aspose.Slides is concerned, it expects either presentation name+ path or OutputStream whether it comes from Save dialog or from hard coded string.

Many Thanks,

Thanks Mudassir.

I used the output stream.

For anybody else, who wants an idea, this is the code.

Response.Clear();

Response.AddHeader("Content-Disposition", "attachment;filename=\"" + filename + "\"");

pres.Write(Response.OutputStream); // pres is PresentationEx object.

Response.End();

Regards,

Varun

Hi Varun,


Thanks for your feedback. Please share, if I may help you further in this regard.

Many Thanks,