Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    vb
  » Printing Powerpoint Presentations (VBA)
      by rdove
 Page 1 of 1 
   

(Login to remove green text ads)
This code allows you to print print a powerpoint presentation automatically.

Code:
'Code written by Ryan Wischmeyer 'This code is intended for educational use 'and may not be implemented into projects 'which are to be sold for retail value. Option Explicit Dim AppPPT As Object 'create instance of powerpoint Set AppPPT = CreateObject("PowerPoint.Application") 'make powerpoint visible AppPPT.Visible = True 'open the file With AppPPT.Presentations.Open("c:\sample.ppt") DoEvents 'make sure printing will not start yet .PrintOptions.PrintInBackground = False 'Set the print what option '1 - Slides '2 - Handouts 2 per page '3 - Handouts 3 per page '4 - Handouts 6 per page '5 - Notes Pages '6 - Outline View '7 - Slides '8 - Handouts 4 per page '9 - Handouts 9 per page .PrintOptions.OutputType = 4 'start printing now .PrintOut .PrintOptions.PrintInBackground = True 'enable the slide frames .PrintOptions.FrameSlides = True End With AppPPT.Quit Set AppPPT = Nothing





 
 Page 1 of 1 
   

Rate This Article
1 2 3 4 5 6 7 8 9 10





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle