WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with PowerPoint

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Print Presentation

 Keywords: Print Presentation PPS PowerPoint PrintOut

Question:

I need to open an existing PowerPoint presentation and print it to the default printer.

Answer:

objPP = ObjectCreate("PowerPoint.Application")
objPresentation = objPP.Presentations.Open(presentation, ::WithWindow=0)
objPresentation.Printout()
; Insert code here to ensure the file is finished in the spooler
objPresentation.Close()
objPresentation = 0
objPP.Quit
objPP = 0

Article ID:   W18148
Filename:   Print Presentation.txt
File Created: 2010:09:28:08:28:54
Last Updated: 2010:09:28:08:28:54