web 2.0

ASP.NET(vb.net) & PowerPoint - Convert PPT To HTML Slides

ASP.NET(vb.net) & PowerPoint - Convert PPT To HTML Slides - This isĀ  example scripts how to use ASP.NET convert PPT (PowerPoint Presentations) To HTML Slides

ShotDev Focus:
- ASP.NET(vb.net) & PowerPoint - Convert PPT To HTML Slides

Example

AspNetPowerPointConvertToHTML.aspx.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AspNetPowerPointConvertToHTML.aspx.vb" Inherits="AspNetPowerPointConvertToHTML" %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>

AspNetPowerPointConvertToHTML.aspx.aspx.vb


Imports Microsoft.Office.Interop.PowerPoint
Public Class AspNetPowerPointConvertToHTML
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim ppApp As New Microsoft.Office.Interop.PowerPoint.Application
Dim ppName As String = "MySlides.ppt"
Dim FileName As String = "MyPP/MyPPt"

ppApp.Visible = True

ppApp.Presentations.Open(Server.MapPath(ppName))
ppApp.ActivePresentation.SaveAs(Server.MapPath(FileName), 13)
ppApp.Quit()
ppApp = Nothing

Me.lblText.Text = "PowerPoint Created to Folder <strong> " & FileName & "</strong>"

End Sub
End Class

Screenshot

ASP.NET(vb.net) & PowerPoint - Convert PPT To HTML Slides

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.