Adobe PDF printer  - Use VBA??

I am using Microsoft Access 2003 and have Acrobat 7 (Adobe PDF) and Acrobat 5 (Adobe PDF Writer) installed on my machine.   I can print to the Adobe PDF printer by using this code:
Set Application.Printer = Application.Printers("Adobe PDF")
DoCmd.OpenReport strReport, acViewNormal, , , acHidden
I am trying to figure out if there is a way to use an Acrobat object to set the path and document name without user intervention (which the code above requires as a dialog pops up requesting that information).
So, I am pretty good at figuring out how to use the various properties and methods of objects but I am just not sure WHICH objects I should be dealing with and I got lost in trying to read the SDK.
Can anyone provide at least a push in the right direction?
Bob
P.S. If I posted this to the wrong forum or category, please do not just tell me that I did, but let me know where it should go.  I posted this originally to the wrong place and was told so, but I had to use a private message to the employee (who told me I had posted to the wrong place and locked the thread) in order to find out that THIS might be the proper location.

"Adobe no longer supports Acrobat 7 (let alone Acrobat 5!!!)"
Yeah, I know - I work for a large bank (contractor) and they move VERY SLOWLY with upgrades.

Similar Messages

  • Problem printing files to Adobe PDF printer using VBA

    I have an Excel project. Part of the code prints the active sheet range as a PDF file. Later code then sends the PDF file as an e-mail attachment. The Code was originally written using the free application PDFCreator and works as intended. However the client wants to use the Acrobat "Adobe PDF" printer instead.
    Each PDF must have a name as specified in the code and must be sent to a specified folder, again as specified in the code.
    The Adobe PDF printer insists on 1) using the path specified in the printer preferences and 2) naming it as the workbook name + .pdf.
    I have checked the Distiller API reference and it tells me that if a key is set, the output path and name can be controlled. However, setting the key as described does not work. The PDF printer ignores it and creates another key named as the output file with a REG_SZ value that is numeric and increments each time print is invoked.
    Attached is a screen shot of the registry entries.
    What am I doing wrong?

    I have.
    However, I think I have solved this.
    First, I am using Win 7 64 bit, so the application is not excel but c:\windows\splwow64.exe. I've modified my code so that both XP 32 and Win7 64 are catered for.
    Second, the print command I used in VBA was
    ActiveSheet.Printout ActivePrinter:= "Adobe PDF"
    It looks like that starts a different Adobe DF printer to the one that would look at the registry. If I change the code to
    ActiveSheet.Printout
    and set Adobe PDF as the default printer in control panel, the whole thing works as planned.
    All I need to do now is to set the printer to Adobe PDF within the code so the user doesn't have to do this in Control Panel. Obviously, my approach above didn't work, so what is the way to do this?
    Here's the sub routine as it stands at the moment:
    Public Sub PrintUsingAcrobat()
        Dim strOutFile As String
        Dim PDFPath As String
        Dim FileName As String
        Dim XPApplic As String
        Dim X64Applic As String
        XPApplic = Application.Path & "\excel.exe"
        X64Applic = "C:\Windows\splwow64.exe"
        Const HKEY_LOCAL_MACHINE As Long = &H80000002
        Const HKEY_CURRENT_USER As Long = &H80000001
        Dim lRC
        Dim sPath
        Dim objRegistry
        PDFPath = outpath ' outpath is a global variable set elsewhere
        strOutFile = Range("Suppliername") & ".pdf"
        FileName = PDFPath & strOutFile
        Set objRegistry = GetObject("winmgmts://./root/default:StdRegProv")
        sPath = "SOFTWARE\Adobe\Acrobat Distiller\PrinterJobControl"
        lRC = objRegistry.SetStringValue(HKEY_CURRENT_USER, sPath, XPApplic, FileName)
        lRC = objRegistry.SetStringValue(HKEY_CURRENT_USER, sPath, X64Applic, FileName)
        ActiveSheet.PrintOut
        DoEvents
    End Sub

  • Win7 does not show "Adobe PDF" printer using Acrobat 8 Pro

    using Acrobat Pro 8.1.0 I cannot see or add Adobe PDF printer. I do see "Microsoft XPS Document Writer" as a printer.

    Concentrate on getting the scanner working without any Adobe software. Once you can scan to a file, any OSX program (except Adobe) that can read the file can generate PDF files via the Print command.

  • Printing from Appleworks using Adobe PDF Printer

    I have a large number of Appleworks files to convert to PDF. At the moment, I open the file, do a command-p, choose PDF, then "Save as PDF". This method works fine. I would like, however, to automate the process, and doing so would be much easier if the Adobe PDF Printer would print with the expected settings when I click the "Print" button. Is there any way to make this happen? It seems strange that it is not the default behavior, considering the fact that the PDF printer is only a virtual printer, and would never be used to print to paper.
    Peter

    I have a g5 running Tiger. I updated my profile after posting my original question.
    The "Save as PDF..." button works, but not the button on the right that says "Print". It is important to me to be able to use that button, because it forces the application to print to the Adobe PDF virtual printer.
    Peter

  • Word to PDF using Adobe PDF printer

    Friends,
    I am using 'Adobe PDF' printer to convert MS Word doc to PDF file. When converting some files I find that image size differ in Windows XP and Windows 7.
    I use same joboptions for both systems and I use exact configurations in both systems.
    I am using Acrobat 8 professional in both systems.
    How can I ensure that I get same PDF with exact image size in both operating systems ?
    Thank You,
    Sriram

    Acrobat is NOT for server use. Look into LiveCycle PDF Generator, intended and licensed for server use.

  • I can not print an PDF using the Adobe PDF-Printer with Acrobat DC

    Hi all,
    i installed the Trial of Acrobat DC but it dont let me use the Adobe PDF-Printer well, because i cannot print from any third-party-application using Adobe PDF.
    I tryed to print from within Word, Editor and Browser and selected the Adobe PDF-Printer as target, but at 75% both, the Application from which i print and the PDF-Creating-Wizzard are freezing (for hours) and i need to kill the procesed. No PDF-File is created. Same Problem with trying to print a Testfile from within the Windows-Printer-Dialogs.
    Only Adobe DC cause this issue, if i use freeware like Bullzip PDF the files get created successfully, so i assume its not a generally problem with PDF on my system.
    What could be the problem? (pls dont say its because of the trial, a trail should allow to test all features and Why should i buy a programm if it cannot do what a freeware can do?)

    Hey Daniel,
    Have you tried repair Adobe Acrobat DC?
    If no, then please repair the installation under Help menu.
    This could also happen due to an Adobe Acrobat DC installation file corruption. To resolve this issue :-
    Uninstall Adobe Acrobat DC using the Acrobat cleaner utility.
    Restart your computer.
    Re-install Acrobat Acrobat DC  Download Adobe Acrobat free trial | Acrobat Pro DC.
    Let me know if the issue persist.
    Regards,
    Aadesh

  • Problem creating PDF file using the Adobe PDF printer

    Apologies if I have hit the wrong forum for this issue.
    I am using Adode Acrbat 9 PRO version 9.4.6 on a Windows 7 SP1 machine.
    I am running an application that presents information on web pages that I need to capture as pdf files. I am using an automation tool so it is limiting my posibilities of accomplishing this task.
    I am attempting to use the Adobe PDF printer as the vehicle to create these PDF files but have encountered the following issues
    The page is truncated on the right hand side
    Only 1 page is created when I was expecting 7
    I have specified a file path for the ADOBE PDF Output Folder      ...  C:\Windows\Temp  and
    checked the box "Add document information" but I am not given the opportuniy to enter a file name. It is using the file name from the URL
    To verify my PDF content I used a different method to create the PDF from the same web page
    Right click within the web page and select Convert to Adobe PDF. The pdf file has the full content with no truncation and is 7 pages in total.
    Unfortunately I am unable to use this method with my automation tool
    Any pointers will be gratefully received

    Some progess
    I changed the page orientation to landscape and that removed the truncation. I am not sure why it is not using the "shrink to fit" but for the purposes of this exercise I can live with this solution.
    If I click Print Preview I can view all pages and then if I select the Print Icon I get a PDF file containing all pages. This is so bizarre.
    So to recap
    File > Print > Adobe PDF Printer only creates 1 page
    File > Print Preview > Print Document (Alt +P) > Print >Adobe PDF Printer creates 7 pages
    I guess this would be a good time to call support to see what they have to say on this topic.

  • Snow Leopard: can't use Adobe PDF printer through Distiller

    I am on Quark 8.1.6.2 and Snow Leopard (10.6.4) and use Acrobat Pro 9.4.
    To make a PDF file I am always used to going through the Quark print dialogue boxes, selecting Adobe PDF as the printer, setting up sizes, settings etc, saving to a .ps file then using Adobe Acrobat Pro (9.4) Distiller to make a high res PDF for press. Worked fine, before I got Snow Leopard.
    I have now read that Adobe PDF Printer is not available on Snow Leopard and that all applications that used Adobe PDF Printer to print pdfs will not be able to print pdfs.
    See this link: http://kb2.adobe.com/cps/509/cpsid_50981.html which only helps InDesign users, not Quark 8 users.
    In the print dialogue box it no longer allows me to set up custom page sizes for a .ps file.
    How do I now print to high res for print PDF (through a .ps file for Distiller). ie, I don't want to export to PDF through the Quark print dialogue, as it makes too big a file, that's why I need to go through Distiller first. Help!

    PDF/X-3 is the best choice to use in those provided by Quark. You can read up on the PDF/X format here. For correct use, version 3 requires all fonts used to be embedded (which the Quark function does automatically). Version 3 also requires all images to be CMYK or spot color. That doesn't mean you can't use it for RGB, though. PDF/X-3 also allows calibrated RGB images and CIELAB.
    I assume for pre-press output I should use ''Press - high quality/high resolution', but then Acrobat Distiller asks for settings too...
    You don't go through Acrobat Pro or the Distiller at all when outputting a PDF from Quark. The function is built in. There are nice, short descriptions of the various PDF choices here.
    When you select a style, the defaults are automatically applied. You will get center and trim marks and whatever else is in the default settings. After you have selected the PDF version you want to use, then click on the Options button. Turn off marks, downsampling of images, or whatever else you want to change. Click the Capture Settings button and Quark will then automatically use your last settings as the method to create PDF files. When clicking the option to capture, you'll be thrown back to the document the first time, so you'll have to go to the menu to choose Layout as PDF again. But you'll see the choice is on Captured Settings. So until you change it, all you have to do is choose a location and click Save.

  • Trying to reinstall using "setup.exe" in fixing 64-bit Adobe PDF printing error...?

    Greetings.  I found the following solution to my problem in the Adobe forums:
    http://helpx.adobe.com/creative-suite/kb/error-file-adobepdf-dll-needed.html
    The text is:
    Manually extract the file "adobepdf.dll_64" from the data1.cab file before installing Acrobat. When the prompt appears, navigate to this file and select it.
    Navigate to the folder that contains the setup.exe file for your Acrobat 8 installation.
    Locate the file "data1.cab" and open it (you sometimes need a  third-party compression utility, such as WinZip, to extract the file).
    Inside the content listings, locate the file "adobepdf.dll_64" and copy it to your desktop.
    Run the installer setup.exe and when the prompt appears, choose browse and select the file you copied to the desktop.
    Incredibly, my problem starts at #4.  How do I run the installer program?  I found both the command prompt and the run functionality on the start menu (yes, Windows 8, KMN).  Couldn't get either of them to run the installer, and I cannot seem to find the correct .exe file in the directory.  Any help is much appreciated, thank you!

    The problem may be related to trying to install AA8 on Win8. You may or may not be successful, or at least fully successful. The first thing after completing the install is to open Acrobat and go to the Help>Updates and install all updates (in order if more than one appears, and repeating until no updates are shown). You can also install the updates manually in order using http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows.
    There is a good chance with AA8 that the print driver will not install. If that is the case, find a nice PS color print driver for an HP or other PS printer. Install that and change the name to Adobe PDF printer. Check the ports -- if an Adobe PDF port is present, select that and if not change the port to FILE.
    You should be able to print to the new PDF printer to obtain a PS file. Open that file (the extension may be PRN) in Distiller to obtain a PDF.
    The alternative is to buy the newest version of Acrobat (XI).

  • PB with print using Adobe PDF printer

    I'm using LR2.6 on Windows 7 / 64 bits  with adobe acrobat pro 9.3.1.
    When I try to print an image from lightroom printing module using the Adobe PDF printer, the file I obtain has no picture but a gray rectangle with an error message in red : Error - A2code.
    Does anyone know what is the problem?
    Thank you.
    Eric

    OK, a discussion on that problem has already been launched! Going to had a post to it!

  • Printing using Adobe PDF printer

    Dear all,
    I have a digital file with an .swf extension, that opens with a program Ebook_reader.exe. From within the opened (compressed adobe files) program I print to my Adobe PDF printer. The printer is a virtual printer used to create pdf files.
    The printing proces is almost fine, except for one detail that I cannot seem to fix by changing settings of teh Adbobe PDF printer.
    In the program I see the graphs clearly, and after I print them to PDF they seem funny.
    http://www.flickr.com/photos/117661095@N06/12538105853/
    When I open the file with Adbobe 8.0 (I know old ...) there seems to be a triangler layer inserted (first graph). Wiith the second graph the lines seem at an angle of 45 degrees ... also layered however when I delete these I delete the grid ... which is not what I would like.
    Does anyone know a way to get the above mentioned fixed?
    Kind regards,
    OS: windows 7, x64

    I have a g5 running Tiger. I updated my profile after posting my original question.
    The "Save as PDF..." button works, but not the button on the right that says "Print". It is important to me to be able to use that button, because it forces the application to print to the Adobe PDF virtual printer.
    Peter

  • Adobe PDF printer not listed using Acro8Pro

    Using AcroPro8 and Win8 I don't have a the Adobe PDF printer available from my list of printers. When I install AcroPro7 it returns. ANy ideas?
    Thanks,
    Mart

    Sorry for the misunderstanding. Perhaps I could put it more clearly: "Since you have upgraded Windows, it is time to also upgrade Acrobat". The only version currently sold is XI (11).
    I observe from this page http://www.adobe.com/uk/products/acrobatpro/buying-guide-upgrade-pricing.html that upgrade pricing for Acrobat 8 is only available until May 31, 2013. After that, a full price purchase will be needed.

  • Re-use acrodist.exe process when printing to Adobe PDF printer

    We're using BarTender to print to Adobe PDF printer and it is creating an acrodist.exe process for each print job. Is there an Adobe setting or something BarTender could do differently to re-use an existing acrodist.exe process instead of creating a new one. We've noticed that Notepad will re-use an existing acrodist.exe process.
    Thanks,
    Paul

    Well, after restarting my machine the print queue was cleared of all the dead jobs, but when attempting to print to PDF it hung up again, and then did the same as before - all subsequent jobs tried to save as the filename of the first job in the queue. Very annoying!

  • I can't use Adobe PDF printer

    Hello,
    I can't print with my adobe pdf printer.
    My version is adobe acrobat 8
    Windows 8 64 bit.
    I have a message "error impression on adobe pdf..."
    NB : when I installed acrobat I had to decompress adobePDF.dll,
    Thx

    I have heard of no one who has been successful with AA8 on Win8. If you have any chance, you need to be sure you have updated Acrobat to the latest update to work with 64-bit systems.

  • Adobe PDF Printer not working as print driver; 9.5.5 (pro) with Windows 7, 64 bit

    I have installed, repaired, uninstalled and re-installed Acrobat Pro 9.5.5 on a newly formatted SSD with Windows 7, 64 bit on my desktop machine. The program was installed from Acrobat Pro 9.0.0 and updated within the program. I have the program also installed on my laptop, and the Adobe PDF Printer driver is working properly on my laptop.
    On my desktop with the newly formatted SSD, the Adobe PDF printer driver is not working. Note that I am using the printer driver, and not any pdf creation techniques within MS Office or other programs.
    When I go to the Adobe PDF printing preferences on my desktop, I only get a generic, two tab window open. When I print a file to this printer on my desktop machine, I do not get a window opening that asks where to create the pdf or what to name it, and I never see any files created. In MS Word, the Create PDF option under the Acrobat tab works and opens a dialog to ask the name and location to save, and then opens a PDF Maker progress window and properly creates the file. I can also save a file as an .eps or .ps file and use Distiller to create the pdf. However I cannot get the Adobe PDF printer driver in my Devices and Printers to work properly, although it works just fine on my laptop with the same program (Pro 9.5.5) and same Windows version (7, 64 bit).
    Repairing, uninstalling and re-installing does not solve the problem. Acrotray.exe *32 process is running. Any ideas on why this won't run properly on my desktop, but will run on a similarly configured laptop?
    On my laptop, I get a full, (7) tabl menu with all the normal options:

    I found this answer from Deepak Chauhan on another forum, and it solved this problem!
    Try this to add Adobe PDF printer manually on Windows 7, and Windows Vista.
    If windows 7 is Enterprise or better edition: (Admin rights required)
    Start>search for printmanagement.msc and open the print management module
    Expand the print server and expand the computer name to see availbale printers, drivers and printer ports.
    - from printers ensure there's no Adobe PDF printer, if there is delete it
    - go to ports and delete the PDF ports (the ones ending in *.pdf)
    - go to drivers and delete the PDF converter.
    Take note if any errors occur, but continue with the following steps regardless.
    If on windows 7 home edition, just goto start>Devices and Printers and ensure PDF pritner is not listed.
    Then open the registry (if any erors deleting these keys happen, see below)
    1: go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers
    delete any adobe PDF printer subkey present
    2: go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors
    delee the PDF port monitor if present
    3: go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers
    again delete and pdf printer subkey
    If any erros occur, you need to set the owner of the key to the currently logged in admin user, then ensure that user has full control.
    Do this by right-click the key and selecting permissions, clicking on advanced, then the owner tab.
    Once you've all that has been done, open a command line as administrator.
    Copy and pate the following commands in order
    1: net stop spooler
    2: rundll32.exe setupapi.dll,InstallHinfSection AdobePDFPortMonitor 128 C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf
    3: net start spooler
    4:rundll32.exe printui.dll,PrintUIEntry /if /b "Adobe PDF" /f "C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf" /r "Documents\*.pdf" /m "Adobe PDF Converter"
    That should set back the pdf printer.
    This seemed to provide the link that provided the Adobe PDF Settings tab to the Adobe PDF Printing Preferences that was missing!

Maybe you are looking for

  • Error in SDK 1.4.0 SSL

    Hi, I have an application running on Linux Slackware 8.1, using SDK 1.4.0 Every couple of days this error occurs, and the server dies (which is really bad for something I want to just sit there, and do stuff without needing to baby sit it). This erro

  • Strange digital artifacts at the end of each song importing via iTunes

    I've tried a few variations on archive searches and wasn't able to find an answer to this: In ripping some of my CD's into iTunes (either Apple Lossless or WAV) I've been getting some very odd, brief digital artifacts at the end of each songs on a CD

  • BUSINESS AREA OR PROFIT CENTER BEST FUNCTIONALITY

    HI, TO ALL FRIENDS OUR COMPANY HAS 23 SALES OFFICES.SO CAN BODY CAN ADVICE METHAT BUSINESS AREA IS GOOD OR PROFIT CENTER. AS COMPANY NEED BALANCE SHEET FOR  EVERY SALES OFFICE SAPERATELY. WAITNG FOR YOUR SOONER REPLY THANK YOU IN ADVANCE. Moderator:

  • Generating TEXT output from RTF template/reports

    Hi , We have been working with XML Publisher for a long time now.. and we have come across some requirements such as 1. Page break in TXT report output 2. Page Headers after every 'X' lines in TEXT output. This was easily achieved with RTF template a

  • HT5634 how to keep boot camp from changing time?

    As I go back & forth between Mac and BootCamp, the operating system time changes. How can I make it consistent between the two?