Click here to Skip to main content
Click here to Skip to main content

liteWait PowerPoint to HTML Converter

By , 25 Oct 2002
 

Sample Image - liteWait.jpg

Introduction

This is a little app that I wrote for a client that has a number of PowerPoint presentations in their portal's document library. The problem with the presentations is that they are often fairly large especially for the users that were hitting the site through a 56k modem. The application scans a particular directory and it's subdirectories for Microsoft PowerPoint files (.ppt) and then uses the COM objects for PowerPoint to open the presentation and do a Save As HTML. We then modified the portal's document to have 2 links for each presentation, one that links to the PowerPoint file and one that links to the HTML version.

Form1.vb

This form initializes the app and is hidden right away only showing in the system tray. Further documentation is within the code.

SettingsForm.vb

This form is shown when the user right clicks the system tray icon and chooses Settings.... It will read the settings.xml file to populate the form. When the user modifies the entries it will then save the values back to the XML file. The settings are:

  • Scan Directory - The directory that will be crawled for PowerPoint files.
  • Scan Interval - The length of time in minutes between crawls.
  • HTML Directory - Where the PowerPoint files that are converted to HTML will be saved.

Some cool things in the app besides the HTML conversion shows intermediate and beginner programmers how to use:

  • the Timer control
  • an XML file as a data store
  • the NotifyIcon class
  • a custom trace listener for debugging and logging

Please note that Microsoft PowerPoint needs to be on the server and open for the application to work.

History

26 Oct 2002 - updated downloads

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

James Coleman
Technical Lead ICrossing
United States United States
Member
___________________________
J A M E S C O L E M A N
Director, Technical Services
Company: www.iCrossing.com
Blog: ledtalks.posterous.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralPPt to HTMLmemberMember 396884527 Apr '08 - 23:35 
The only problem I am facing is
events that were on the PPt were not captured and it moved page by page. Did you ever came to this kind of problem.
The task assigned to me is to render a PPt in HTML page ,the only method I got is to convert it into in HTML and then call that particular Page.
Please let me know if I am moving in right direction and help me in the above problem.
Questionhow to run ppt files in vb.net without ms office on systemmemberkk_upadhyay10 Sep '07 - 22:50 
hello,
i am making an application in vb.net.i want to run ppt files through that application. i am not having ms office on my system.
how to do this without msoffice installed?D'Oh! | :doh:
 
hhhhhhhhhh

Generalsending data from webapplication to ppt filememberswethaa16 Apr '07 - 2:21 
Sir,
 
I have one web application in which one combo box is there. based on the selection in combo box,it will resluts some records. i have to take the result and i have to send to power point file with some format...

In first slide
Product Road Map
by xyz company
 
In second slide
version1
release1
release2
release3
verison 2
release1
release2
release3
 
i know how to do in windows application but i dont know in web application...
 
please help in that
Frown | :(
 

 
swetha
Generalbinding power point slides in datagrid .netmembersandip manoj3 May '06 - 23:30 
Sir
Here is a problem for me in binding the powerpoint slides in datagrid.so Plzz help me to move forward.
Thanks and regards
 
Manoj Kumar
Infonet technologies
Hyderabad
GeneralWant POwerPOint SLides in Vb.Netmembermain hoona13 Dec '04 - 2:05 
Heello,
Sir I saw your project and I like this. On the base of this can u assit me or send me the code for importing PowerPoint slides to Vb.Net Form. SO that I can see a .ppt file's slides in VB Form
I will wait for ur quick response
Thanks
Raheel
GeneralNo event notification from Power PointsussDineshT11 Nov '02 - 0:57 
I am developing an app which needs PowerPoint to fire back events.
Though I can catch these events in VB6, in VB.NET it isn't possible.
Can U help???
Tanx!!!
GeneralUnhandled exceptionmemberRonny12 Jun '02 - 20:41 
Hi,
 
Thanks for the code! Smile | :) I am a beginner and playing with this code is fun, after getting through a couple of issues like the ICO files missing from the BIN dir and the Settings.XML file that was missing, also in my case the reference to "PowerPoint" was not correct, so I corrected the reference by removing the original and replacing with the "Interop.PowerPoint.dll" this worked fine.
My problem now is: An unhandled exception of type 'System.NullReferenceException' occurred in liteWait.exe
 
This error occur when I have saved my settings and right click the tray icon and hit "run".
Here is the line the error is reported on:
Dim prsPres As PowerPoint.Presentation = ppApp.Presentations.Open(targetFile)
 
Line 132 to be exact.
 
Ronny Flaatten
GeneralRe: Unhandled exceptionmemberJames Coleman13 Jun '02 - 7:42 
I am not at the office right now (which is where I have liteWait installed on one of my development boxes) so I can only guess.
 
Do you have PowerPoint open when you click on "run", if not then that is most likely the problem because the application needs PowerPoint open to work properly.
 
If that isn't the case, let me know and I will try and replicate the error when I get back to the office and post any findings I might uncover.
 
-James
 
___________________________
J A M E S C O L E M A N
Senior Technical Consultant
Microsoft Practice
AGENCY.COM
225 N. Michigan Ave, Suite 2100
Chicago, IL 60601
phone: 312.729.4652
mobile: 630.728.5129
GeneralRe: Unhandled exceptionmemberRonny14 Jun '02 - 9:38 
Power Point is up and running but it does not have a current slide open.
Also when I run your compiled version I do not get any errors but it failed to see the only 2 power point slides in the scan directory....so nothing was saved as html.
This is possibly an isolated problem on my box but wanted to see if you had any ideas Big Grin | :-D
 
Thanks!
 
Ronny
 
Ronny Flaatten
VB .NET beginner.
Denver, CO
Questionwhere are the settings.xml?memberbryanli23 May '02 - 22:17 
Confused | :confused:

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 26 Oct 2002
Article Copyright 2002 by James Coleman
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid