Show PowerPoint in Web - c#

How to show a PowerPoint file in web using C#? I want to get file from a URL then do some ways to show this PowerPoint in HTML.
I do not want to use drive in my project.
Help me ! Thanks

I was looking for a simple way to do this as well recently and found this answer by #wclear:
just to update this question - as there is a new way to embed
Powerpoints in a web page. If you have an account on OneDrive, do the
following using Powerpoint Online (accessing Powerpoint via the
browser) to embed a Powerpoint:
Click 'File', then 'Share', then 'Embed' Click the 'Generate' button to generate HTML
code to be embedded
Copy the 'Embed Code' and paste it in the HTML of a website

Related

How to find the path of WebBrowser.ShowSaveAsDialog()

The WebBrowser control has a method named ShowSaveAsDialog() which can save a loaded document into a file. I want to find out the path of the saved file and open it. How can I find such a path or an alternative way to save an html file loaded by WebBrowser control.
It seems you want to save everything to a web archive (.mht) file. I can't see that anyone has got that working via the WebBrowser control.
However, there are alternatives for doing this programatically. Jeff Atwood posted an article on CodeProject: Convert any URL to a MHTML archive using native .NET code but it's in VB.NET. Incidentally, Jeff is one of the co-founders of this site and is Stack Overflow Valued Associate #00001!
Someone has kindly ported Jeff's code to C# and that can be found on Google Code here: url2mhtml
Also see this question: generate .mht file programmatically

Opening Word (.docx) files on a Windows Form C#

I'm trying to make my program have the ability to display a Microsoft Word file on a form but not having any luck in doing so. I want to be able to open the file and display it on the form as a Read-Only. So basically just display it's contents. Various users on the web have recommended displaying files in the WebBrowser control (under toolbox). I have tried this but failed to get it working. My end goal is to be able to annotate on top of the web browser (or something of similar manner) and subsequently save the annotations along with the opened file.
I'm not that experienced in the C# language too so any help on how to achieve my problem would be greatly appreciated.
You need a DOCX viewer control. My company recently gave away our multi-format WinForms viewer control as a free product - XtremeDocumentStudio .NET Free. It can display DOCX and is available on NuGet. It does not require a Web Browser control for embedding an online viewer or Word software installed locally.
http://www.nuget.org/packages/XtremeDocumentStudio.NETFree/
There are some good links that might help you.
First, you will find a closely related or similar question here
And in that conversation someone posted the following link which is about how to build a user control for displaying Word documents in a webbrowser control.
I also found another article here about how to integrate Excel in a Windows Form application using WebBrowser. But Excel is used as an example and you may be able to adapt it to Word.

Clicking a link in PDF file

Some help needed with clicking link in downloaded pdf file.
With C#, Selenium and AutoIt , i have downloaded a pdf file. Now i want to open that pdf file and click on dynamic link that is placed in page 2.
I was able to open pdf but didnt got to know how to click link in pdf. some help needed
Web driver does not support clicking links inside a PDF - use an open source pdf API - Apache pdfbox- this will extract all the links and then you can navigate further with webdriver.

Show excel file in web page

I have created an excel file using EPPlus library, is there a short way to show it in the webpage without writing lots of codes ?
One solution would be to embed your report as a PDF or as a large PNG/Jpeg.
Another solution would be to embed a PDF using pdf.js
http://mozilla.github.com/pdf.js/
This allows javascript to render a PDF without using any additional plugins, etc. (although it does need a HTML 5 browser)
http://mozilla.github.com/pdf.js/web/viewer.html

Word viewer in asp web application

I've to create one asp web application page for show .docx file( with exact alignment text,images, table etc) and also table of content(like tree view of that document). I would like to ask, Is there any open source ActiveX control or plugin or something else to achieve the specific task . I already done it in windows form application but now want to do it asp web form . i used dsoframer control in windows application . please make me to achieve that.
Please look into following article,
Link
There is support to render a .docx file as HTML - I can't speak to how accurately it renders in the webpage verse desktop version of Word. Still, there is a tutorial here:
http://blog.maartenballiauw.be/post/2008/01/11/Preview-Word-files-%28docx%29-in-HTML-using-ASPNET-OpenXML-and-LINQ-to-XML.aspx

Categories