web 2.0

How to use ASP & PowerPoint - Convert PPT To JPG Format

How to use ASP & PowerPoint - Convert PPT To JPG Format This is learn/tutorial asp developers how to using ASP script Create PowerPoint and Export/Convert PPT To JPG Format

ShotDev Focus:
- ASP & Create PowerPoint and Export/Convert PPT To JPG Format

Example

asp_ppt_to_jpg.asp


<% OptionĀ  Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim ppApp,ppName,FileName
Set ppApp = Server.CreateObject("PowerPoint.Application")
ppApp.Visible = True

ppName = "MySlides.ppt"
FileName = "MyPP/MyPPt"

'*** Open Document ***'
ppApp.Presentations.Open(Server.MapPath(ppName))

'*** Save Document ***'
ppApp.ActivePresentation.SaveAs Server.MapPath(FileName),17 '*** 18=PNG, 19=BMP **'

ppApp.Quit
Set ppApp = Nothing
%>

PowerPoint Created <a href="<%=ppName%>">Click here</a> to Download.
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_ppt_to_jpg.asp

Screenshot

ASP & Create PowerPoint and Export/Convert PPT To JPG Format
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.