web 2.0

ASP.NET(vb.net) & PowerPoint - Convert PPT To WMF Format

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

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

Example

AspNetPowerPointConvertToWMF.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AspNetPowerPointConvertToWMF.aspx.vb" Inherits="AspNetPowerPointConvertToWMF" %>
<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>

AspNetPowerPointConvertToWMF.aspx.vb


Imports Microsoft.Office.Interop.PowerPoint
Public Class AspNetPowerPointConvertToWMF
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"

ppApp.Visible = True

ppApp.Presentations.Open(Server.MapPath(ppName))
ppApp.ActivePresentation.SaveAs(Server.MapPath(FileName), 15)
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 WMF Format

.
.
.
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.