Results 1 to 2 of 2

Thread: How to supress save as dialog when printing to Adobe pdf

  1. #1
    Lively Member oswaler's Avatar
    Join Date
    Jul 06
    Location
    U.S. of A.
    Posts
    87

    How to supress save as dialog when printing to Adobe pdf

    I've spent the last couple days looking through this and other forums and I was never able to find a way to supress the save as dialog you get if you try to do a simple print to the adobe pdf printer from VBA code.

    I finally found the answer for anyone interested. Go to the list of printers in the Windows Settings list and right click the Adobe PDF icon and click on Properties. On the Advanced tab click on the Printing Defaults button. There is a setting there for Adobe pdf output folder. By default this is set to prompt the user. If you click the browse button you can set a folder for it to save to. There is also a checkbox you can use to turn off the autoloading of the document after it is created.

    On the General tab there is also a button that says Printing Preferences. This will bring you to the same place I described in the last paragraph, but for some reason it seemed that I had to do the settings again. I don't know why this would be but I just did the same settings for the default folder. When I ran my code it finally worked.
    (d/(du)[∫(fu)du]
    Occupation: A respiring organism
    Hobbies: Respiration

  2. #2
    Super Moderator Hack's Avatar
    Join Date
    Aug 01
    Location
    Searching for mendhak
    Posts
    58,283

    Re: How to supress save as dialog when printing to Adobe pdf

    Wouldn't want to see this get buried...moved to the CodeBank
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •