Printing to PDF Writer from Access VBA

I have the printer properties for the Adobe PDF Writer set to use a default output folder on my desktop, and to not prompt for a filename.  I have a loop in MS Access VBA that sends about 3000 individual reports to the PDF Writer, one after the next after the next.  Each one has a different filename and eventually it prints all my reports.  Recently I have been getting an error from MS Access that says "Error 2212.  Could not print your report."  It stops the print run and I have to reset and pick up where it left off.  Sometimes it prints 50 sometimes it prints 2500 before it hits that error.  Sometimes it takes 5 or  tries to get the job completed.  Does anyone have any suggestions as to what may be going on?
Access 2003 SP3 on Windows XP Pro SP3, each upgraded with all MS Windows/Office updates.  Adobe Acrobat 7, upgraded to 8, upgraded incrimentally to 8.14
Thank you for any advice. . .
~gabriel

You might also check the two developer forums
Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting
Acrobat SDK Developer Forum http://forums.adobe.com/community/acrobat/acrobat_scripting

Similar Messages

  • How may I print a pdf doc from access vba code

    I have a directory of files and I want to send these files to the printer in a specific order (right-clicking in the explorer seems to give an unpredictable order).
    I am using the sdk and know how to find the files in the directory, but I can't find any print-method???
    Has anybody any code?

    Thank you!
    Yes I have downloaded the SDK and read the documentation, but obviously not good enough (there are a lot of doc. files). Sorry for that!
    But I have got into a problem since one year ago....
    Looking in the references in Access (2007), I see that the Adobe Acrobat 8.0 Type Libray (Acrobat.tlb) is pointing to my program directory, not to the c:\Program files\Adobe\Acrobat 8.0\Acrobat where the Acrobat.tlb is placed. My program directory does NOT contain this Acrobat.tlb!!!
    When I remove and reconnects to the proper directory, it automatically goes back to point to my program directory (where the Access program is).
    As a result (?) my Access program stops working when I try to open a pdf-document.
    Any ideas what has happended / what to do?

  • How to Print  a PDF file from within a ABAP ( from gui input)

    Hi champions,
    This is Client requirement:
    "We need to print a PDF file from within a ABAP"
    We first need to test whether it is even feasible, and then if it 
    is, then write a small test ABAP which can accept a PDF file
    name as input (from GUI) and then print it to a SAP print
    device (printer).”
    Please Can any body help me on this.......
    It's urgent
    Thanks
    Basu

    Check following blog for PDF output from SAP
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    anya

  • Error when printing a PDF direct from SAP archive

    Hi together,
    I try to print a PDF direct from SAP archive and I got the error ""C:\Program files\Adobe\Acrobat 7.0\reader\AcroRd.exe" /p /h" not found. In the internet I found several topics which describe this way to print a PDF without open the Acrobat Reader.
    The customizing for document management (Local application) seems o.k. If I remove in the registry the parameters /h /p for print, Acrobat Reader will open and show the document if I use the print button in SAP.
    Have anybody an idea what the reason is?
    Thank you.
    Regards
    Thomas

    The rundll32 error seems to have disappeared.  Until this morning I had both this error and the rundll32.  All other types of docs open fine.  This one will open if saved to the desktop first, but not from Outlook.

  • Print a pdf file from sap

    Hello,
    I'm looking for a way to print a .pdf file from sap . The file  was created manualy and is in a newtwork folder.
    I have to send the print to a network printer . Is it possible to use the AcroRd32.exe as a command line?
    Thank you.

    hii,
    try this
    CONVERT_OTFSPOOLJOB_2_PDF
    http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm
    PDF - Printing a PDF file from ABAP or SAP Script
    regards,
    Sri.

  • How do I print a pdf file from windows 8?

    I can't find a command to print a pdf file. I'm working with windows 8. can anybody tell me how do I find that command?

    Please see FAQ: How to print a PDF file from Adobe Reader Touch.
    Starting from version 1.1, Adobe Reader Touch supports printing.
    If you do not see the Print button in the toolbar, you have an older version of Adobe Reader Touch. Please download and install the latest version of Adobe Reader Touch via the Windows Store.

  • Can I print a pdf file from my phone?

    Can I print a pdf file from my phone

    Hello Carmen1390,
    It sounds like you would like to print from your phone directly to a printer. This feature is called Airprint and your printer would need to support that function. Here is some more information on Airprint along with a list of compatible printers:
    AirPrint Basics
    http://support.apple.com/kb/ht4356
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • How to print a PDF document from Labview?

    I am looking to create a paper copy of a PDF document.  Note: I do NOT want to create a PDF document.
    In other words I want to print a PDF document from Lab View or Visual Basic or C#.  The application is used in a production environment so I want a clean solution.
    The requirements are:
    1) Be able to specify the output printer.
    2) Set the quantity to print.
    3) Specify the file to print.
    4) Function returns when printing is complete
    5) Silent operation, that means no popup boxes.
    Any help is appreciated.

    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prnmngr.mspx?mfr=true
    http://forums.ni.com/ni/board/message?board.id=170&message.id=183895&requireLogin=False
    you might be able to use system exec to print files.

  • The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The Acrobat 9.x product family passed into "End of Support" mid-year of 2013.
    Acrobat 9 support of MS Project via PDFMaker stops with Office 2007.
    For Office 2013 support you must use Acrobat XI (11.0.1) or newer. 
    A good to have reference:
    https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Acrobat Pro and Standard DC are what are currently available for purchase. 
    Be well...

  • Read and write from access

    I am arun, a beginner in the field of LabVIEW. Now I am trying to read and write data from MS Access with out database connection toolset. How this possible. How I can use activex in Labview for doing this. Please give me some reference materials.

    Hi Arun,
    The following discussion forum talks about the same issue, and provides a good explanation and references for the different options. Also, which version of LabVIEW are you using?
    How to read/write from Access database
    Thanks,
    Lesley Y.

  • After installing an update to Acrobat on my Windows computer, the option to print to .pdf disappears from my printer options menu in all programs.  What can I do?

    This is the second time I updated my Adobe Acrobat X Pro program and the option to "Print to .pdf" disappears from my word processing program and all other programs I am running.  Last time I uninstalled Acrobat and reinstalled and that fixed the problem, but that was a long process.  Is there any other way to restore the option?

    Do you mean there is no Adobe PDF printer listed? You can check the Start>Devices & Printers list and be sure it appears there.

  • Printing to PDF Writer using VBA from MS Access

    I have the printer properties for the Adobe PDF Writer set to use a default output folder on my desktop, and to not prompt for a filename.  I have a loop in MS Access VBA that sends about 3000 individual reports to the PDF Writer, one after the next after the next.
    The code in Access modifies the reports "caption" to include the employee number for the record it is on... that caption becomes the name of the report in the print queue... and the PDF Writer uses that as the filename!  Each one has a different filename and eventually it prints all my reports.
    Recently I have been getting an error from MS Access that says "Error 2212.  Could not print your report."  It stops the print run and I have to reset and pick up where it left off.  Sometimes it prints 50 sometimes it prints 2500 before it hits that error.  Sometimes it takes 5 or tries to get the job completed.  Does anyone have any suggestions as to what may be going on?
    Access 2003 SP3 on Windows XP Pro SP3, each upgraded with all MS Windows/Office updates.  Adobe Acrobat 7, upgraded to 8, upgraded incrimentally to 8.14
    Thank you for any advice. . .
    ~gabriel
    P.S. I posted this in another forum and it was suggested I ask here.

    You might also check the two developer forums
    Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting
    Acrobat SDK Developer Forum http://forums.adobe.com/community/acrobat/acrobat_scripting

  • Printing from Access VBA in Urdu Language

    I have some data in table in Urdu language, I want to print it by putting on LPT1 but when I get data in VBA it converts it into ???????. Urdu language pack is already installed and it's working in all other applications. How can I prevent my data to change
    into ?????? while getting it in Access VBA.

    I assume that "to get the data from the table into VBA" means that you assign a value from a recordset or from a form field that is bount to a recordset to a variable, e.g.,
    Dim rs As DAO.Recordset
    Dim UrduString As String
    Set rs = CurrentDB.OpenRecordset("UrduTable")
    UrduString = rs!SomeField
    In this assignment, the data in UrduString is not modified in any way, it is completely identical to the data in the table.
    However, if you look at it in the VBA Editor, e.g. with
       Debug.Print UrduString
    it displays as ???????. This is because of a limitation in the VBA Editor: It cannot properly *display* the contents of the Urdu string, allthough VBA correctly *stores* this content.
    What do you mean by "putting the data on LPT1"? Something like
    Open "LPT1:" For Binary Access Write As #1
    Put #1, , UrduText
    You will need to output the text in binary format. If you try to write in text format, it will indeed get transformed from Unicode to ANSI, thus producing the ????.
    Matthias Kläy, Kläy Computing AG

  • Creation of pdf-files from a VBA programming of a database application

    In a kind of form letter practice through a modular programming in Microsoft Access individual invoices created as PDF files shall be sent as serial e-mails.
    Example: After a seminar, for example 50 people shall receive individual invoices with invoice number and the respective address.
    After creation we don’t want the pdf-documents to be displayed on the screen. It should be automatically transferred through our MS-Access-programming to Outlook for serial e-mails.
    The functionality of the automation is positioned in a VBA module (Visual Basic for Application) of a MS Access form.
    At this point Acrobat PDF should be controlled by MS-Access VBA programming (and not manually by the user).
    To implement such an automatic, we need a documentation of the interfaces for the later in the text referred Acrobat objects, which can be addressed in the MS-Access VBA Programming.
    References in Microsoft Access:
    Adobe Acrobat 10.0 Type Library
    Acrobat Access 3.0 Type Library
    Acrobat Distiller
    Objects according to Microsoft Access Object Browser:
    AcroApp
    AcroAVDoc
    AcroAXDoc
    AcrobatAccessLib
    ACRODISTXLib
    AcroHiliteList
    AcroPDDoc
    AcroPoint
    AcroRect
    AcroTime
    Among the listed objects and their properties and methods, we need a comprehensive description.
    Are there special *. DLL or *. chm or *. hlp - files
    which can be addressed by MS-Access directly to automatically generate PDF files?

    Google the following:
    Software\Adobe\Acrobat Distiller\PrinterJobControl\
    I have done this using a Report I designed in MS Access, you basically print to the 'ADOBE PDF' printer. No need to use any of the References you listed.
    I loop thru a recordset of Customer IDs and generate my reports. I do the Outlook piece after I have generated the pdf files.
    My Access report has no RecordSet, it is set on the fly, using the following:
    Private Sub Report_Open(Cancel As Integer)
    Me.RecordSource = sqlReport
    End Sub
    sample code:
    sub genReports
    Dim lRC
    Dim sReg
    Dim emailPath As String
    Dim accessPath As String
    Dim strKey As String
    Dim rsCust As New ADODB.Recordset
    Dim rsRecs As New ADODB.Recordset
           emailPath = currentproject.path & "\email\"
           accessPath = SysCmd(acSysCmdAccessDir)
           accessPath = accessPath & "MSACCESS.EXE"
           strKey = "Software\Adobe\Acrobat Distiller\PrinterJobControl\"
            Set sReg = GetObject("winmgmts://./root/default:StdRegProv")
           'PrinterJobControl key
           lRC = sReg.CreateKey(HKEY_CURRENT_USER, strKey)
           'query to get Customer IDs     
           rsCust.Open "qryReportCust", CurrentProject.Connection, adOpenStatic
           Do Until rsCust.EOF
            strCust =rsCust!CustID
            'sqlReport is a function that uses CustID as parameter
            rsRecs.Open sqlReport, CurrentProject.Connection, adOpenStatic
            If Not rsRecs.BOF Then
               lRC = sReg.SetStringValue(HKEY_CURRENT_USER, strKey, _
                                         accessPath, emailPath & strCust & ".pdf")
                DoCmd.OpenReport "rptCustomerInvoice", acViewNormal
            End If
            rsRecs.Close
            Set rsRecs = Nothing
       rsCust.MoveNext
        Loop
       rsCust.Close
    end sub

  • Creating bookmarks from access(VBA)

    Hi all,
    Im creating a number of bookmarks from access 2010 via VBA. And it works fine except that the acrobat.exe file still remains in process permanently. Ive found that it is this line bookmarkList = bookmarkRoot.children which causes the acrobat.exe to stay in memory. I hope im missing something fundamental here.If i remove that line, acrobat.exe closes correctly and disappears from the proccess. Ive tried bookmarklist = null(long shot) and Set bookmarkList = Nothing without success. Im hoping someone can guide me in the right direction here Im using acrobat pro X. Can anyone replicate this issue or better yet know how to fix it?
    dim bookmarkList as variant
    dim objAdobe As Object
    dim avDoc As Object
    dim PDDoc As Object
    dim PDPage As Object
    dim JSO As Object
    dimBookMarkRoot As Object
    Set objAdobe = CreateObject("AcroExch.App")
    Set PDDoc = CreateObject("AcroExch.pdDoc")
    Set avDoc = CreateObject("AcroExch.avDoc")
    pdDoc.open("C:\xxxxx \test.pdf") 'it has one page in it
    Set JSO = PDDoc.GetJSObject
    Set BookMarkRoot = JSO.BookMarkRoot
    BookMarkRoot.createChild "TEST", "", 0
    bookmarkList = bookmarkRoot.children'causes acrobat.exe to stay open in task manager(processes), have tried set bookmarkList= Nothing and bookmarkList= null
    pdDoc.save(1,'C:\xxxx\test2.pdf')
    Set JSO = Nothing
    Set PDPage = Nothing
    Set avDoc = Nothing
    Set BookMarkRoot = Nothing
    PDDoc.Close
    objAdobe.CloseAllDocs
    objAdobe.Exit
    Set PDDoc = Nothing
    Set objAdobe = Nothing
    Regards,
    Ingman

    Hi,
    Thank you for your reply. Im not sure if i understand you correctly. if i want to loop a level of bookmarks. should i not use the .children? just to clarify, above code is just an exemple ive stripped in order to make replication of My case easier. I create about 500 bookmarks in a hierarcy structure depending on the data. So after i create a bookmark i retrieve it from the .children since i need it to create new children. Are There Any other way that i have missed doing this?

Maybe you are looking for

  • IPhoto '11 (version 9.4) Is Not Working With "My Photo Stream"

    OS X 10.8.2 iPhoto '11 version 9.4 (701.64) iOS 6 on iPhone 4 and third generation 64 GB WiFi iPad All iCloud services I require are enabled on all three devices - most important for this issue being Photo Stream on my MBP (and, of course, my iPhone

  • Error : while adding Items to Cart and while going to Checkout

    Hi All When I add Items to cart and when I click on checkout button below Error is coming atg.commerce.pricing.PricingException: Failed to get an adjuster for pricing model Item Discount - Percent Off:200131         at atg.commerce.pricing.DiscountCa

  • Query possible?

    Hi Experts, Please help me in designing a query for the below given requirement. The Flow: I have three DSO's X, Y, Z and a multiprovider over them. The three DSO's have a key figure each to be displayed in the report. Report requirment: The report n

  • How do i get a USB Omnikey 3021 card reader to work?

    I am trying to figure out how to make my USB Omnikey 3021 card reader work with my Macbook Pro. Please help.

  • USB reading error

    Hello. "Reading error" message is the response of my car audio system to a BB 9780 USB plugging in. USB connection to my home computer provide no problem. Looking for an Ideas how to solve it. Thank you in advance. Shlomo.