How to open a presentation to show it on the browser

I downloaded your demo Slides for ASP.net and created the new file, but I’m trying to figure how to open it to show it on the browser to the users. Been searching all over, your blogs, documentation and over the internet with not luck so far.


This message was posted using Page2Forum from Aspose.Slides for .NET API Reference - Aspose.Slides for .NET and Java

Dear JOHACAMI,

Thanks for considering Aspose.Slides.

You cannot do so unless you have an access to client computer. Actually, whether browser will display Open or Save dialog box, depends upon the settings of user’s computer.

You can try it, these are the steps

http://pptfaq.com/FAQ00189.htm

  • Open My Computer.
  • On the Tools menu (or the View menu), click Folder Options (or click Options).
  • Click the File Types tab.
  • In the Registered file types list, click “PPT Microsoft PowerPoint Presentation”, and then click Advanced (or click Edit).

If you put a check next to “Confirm open after download”, when the user clicks the link, they’ll see a File Download dialog box and will be able to choose Open, Save or Cancel.

“Browse in same window” controls whether the file opens in the same or a new window, for example, when “Confirm open after download” is checked and the user clicks Open.

Then write this code in page load event of your APS.NET application and run it, you will see a slide show in browser

C#

http://support.microsoft.com/default.aspx/kb/306654

//Set the appropriate ContentType.
Response.ContentType = "Application/vnd.ms-powerpoint";

//Get the physical path to the file.
string FilePath = MapPath("source.ppt");

//Write the file directly to the HTTP content output stream.
Response.WriteFile(FilePath);
Response.End();