Ask the Expert

LotusScript to print PowerPoint

I am using Lotus Script to print a MS PowerPoint Presentation and need to specify the output type to print speaker notes instead of slides.

When setting the PrintOptions.OutputType I am getting the error "Invalid Enumeration Value." Can you review my code and let me know what I am doing wrong or what the valid types are?
 

Code-
Call object.extractfile(fname)
Set app = createobject "PowerPoint.application")
app.visible = True
app.presentations.open(fname)
Print("Printing PowerPoint Attachment")
app.ActivePresentation.PrintOptions.OutputType = ppPrintOutputNotesPages
app.ActivePresentation.PrintOut


This is really a Powerpoint Question and I'm not sure of an answer. However, the code you submitted is assigning a variable called ppPrintOutputNotesPages to the output type. This variable is not defined anywhere in the code you submitted. If it isn't supposed to be a variable, maybe it should be a string in quotes.
 

This was first published in March 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: