PPT to PDF conversion

V

venkat

Hi,

I had written a macro for converting PPT files to PDF Files.
I am getting Printing error while printing .ppt files to pdf files
automatically in background.
When I run this macro each time I need to Save the file.
I need to suppress the popup and it should convert and save
automatically to the given path.
Please tell me how Can i overcome this error.

Many thanks in advance,

Best regards,
Venkat
 
G

Glen Millar

Hi,

Hmmm. I guess it would be handy of you could step through your code and get
an idea of where the problem is, and then post some code for people to look
at?

--

Regards,

Glen Millar
Microsoft PPT MVP

Tutorials and PowerPoint animations at
www.pptworkbench.com

glen at pptworkbench dot com

Please tell us your PowerPoint / Windows version,
whether you are using vba, or
anything else relevant
 
V

venkat

I am using vba code for this

here is the code

Sub Create_PDF_of_NotesView()
Dim filePath As String
filePath = "C:\Documents and Settings\test_pdf\"

On Error GoTo Hell
' Dim app As Object
' Dim aPresentation As Presentation
' Dim strFilePath As String
'


'p.PrintOptions.ActivePrinter = "Adobe PDF"


With p.PrintOptions
.RangeType = ppPrintAll
.NumberOfCopies = 1
Debug.Print p.PrintOptions.ActivePrinter
.Collate = msoTrue
.OutputType = ppPrintOutputNotesPages
.PrintHiddenSlides = msoTrue
.PrintColorType = ppPrintColor
.FitToPage = msoFalse
.FrameSlides = msoFalse
.ActivePrinter = "Adobe PDF"
End With


' p.PrintOut -1, -1, filePath, 1, msoCTrue
p.PrintOut PrintToFile:=filePath



Regards,
Venkat
 
Top