Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / August 2006

Tip: Looking for answers? Try searching our database.

PPT to PDF conversion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
venkat - 24 Aug 2006 11:59 GMT
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
Glen Millar - 24 Aug 2006 12:52 GMT
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?

Signature

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

> Hi,
>
[quoted text clipped - 10 lines]
> Best regards,
> Venkat
venkat - 24 Aug 2006 13:35 GMT
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
> Hi,
>
[quoted text clipped - 32 lines]
> > Best regards,
> > Venkat
Steve Rindsberg - 25 Aug 2006 04:43 GMT
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.  

> > > I had written a macro for converting PPT files to PDF Files.
> > > I am getting Printing error while printing .ppt files to pdf files
[quoted text clipped - 8 lines]
> > > Best regards,
> > > Venkat

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.