c# - How to Open Powerpoint file in Browser using asp.net -


I just want to open the Powerpoint file in the browser (Google Chrome). I am using this code, but this code only saves the file directly. I want to open the Chrome file in the browser where all the slides can be viewed.

Here is my code < / P>

  string filePath = Server.MapPath ("~ / attachments / Sample.ppt"); FileInfo file = new FileInfo (filePath); If (file.Exists) {Response.ClearContent (); Response.AddHeader ("content-displacement", "file name =" + file name); Response.AddHeader ("content-length", file-length.tostring ()); Response.ContentType = "app / vnd.ms-powerpoint"; file.IsReadOnly = True; Response.TransmitFile (file.FullName); Response.End (); }   

But this code is saving the file directly, but not directly showing the slide of the PowerPoint file in the browser (Google Chrome)

Thanks in advance ...

response. Transmission file is to send a file as a download for the user.
What are you doing to do this?

If you want to embed the presentation on your website, then you have to look for other options. These days there are options using some Power Point webcams in the office

Take a look at this:
It depends on the online office, but there are many other ways to embed your presentation on the website. Another popular resident is.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -