PPT to PDF conversion

  • Thread starter Thread starter venkat
  • Start date Start date
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
 
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
 
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
 
You don't mention the specific error message but it's probably because of this:
p.PrintOut PrintToFile:=filePath

You don't want to force PPT to print to file; that will confuse things when
printing to Adobe PDF.

I'd check on the Adobe User to User forum for info on printing w/o any prompt
for filenames.
 
Back
Top