Form automation with PDF's created in Livecycle

Hi,
I'm having a issue getting the fields from a PDF file created in Livecycle. I get the following error once I access a field:
Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND))
Is it possible to use the OLE API's to retreive the fields in the Livecycle form? Here is the code in question:
Public Function FillForm(ByVal patient As clsPatient, ByVal isNew As Boolean, Optional ByVal CompletionDate As Date = #1/1/1900#) As String Implements iPDFProcess.FillForm
Dim ds As New DataSet
Dim dr As DataRow
Dim NewFile As String
Dim formApp As AFORMAUTLib.AFormApp
Dim bOK As Boolean
Dim avDoc As Acrobat.CAcroAVDoc
Dim pdDoc As Acrobat.CAcroPDDoc
Try
  'Set the mouse icon to display an hourglass
  System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
    If isNew = False Then
        ds = GetData(PatientId, CompletionDate)
        If ds.Tables(0).Rows.Count > 0 Then
            dr = ds.Tables(0).Rows(0)
        End If
    End If
    avDoc = CreateObject("AcroExch.AVDoc")
    bOK = avDoc.Open(lTemplateFileName, "NB")
    avDoc.Maximize(1)
    formApp = CreateObject("AFormAut.App")
    If isNew = True Then  'Only fill Demographic data
        formApp.Fields("PatientId").value = patient.PatientId
        formApp.Fields("DateCompleted").value = Format(Now(), "M/dd/yyyy")
        formApp.Fields("PatientName").value = patient.LastName & ", " & patient.FirstName
     end if
     The rest of the code is not shown to save room.
As soon it tried to access a field I get the above error. I also have a problem with the following code in another section of my code (for another PDF form). Here is a segment of the code:
    avDoc = CreateObject("AcroExch.AVDoc")
    bOK = avDoc.Open(lTemplateFileName , "NB")
    avDoc.Maximize(1)
    formApp = CreateObject("AFormAut.App")
    acroForm = formApp.Fields
    If isNew = True then
        For Each f As AFORMAUTLib.Field In acroForm
            Select Case f.Name
                Case "PatientName"
                    f.Value = patient.LastName & ", " & patient.FirstName
                Case "Gender"
                    f.Value = patient.Gender
                Case "DateCompleted"
                    f.Value = format(Now(), "M/dd/yyyy")
                Case "PatientId"
                    f.Value = patient.PatientId
                Case "DOB"
                    f.Value = patient.BirthDate
            End Select
        Next
    Else
It always passes right over the loop as it it can't find the fields. What up with that. Thanks for any help that you can provide.

Apparently the IAC api's will not work with livecycle forms. I just recreated the pdf file in Acrobat alone, and it now works. But this leaves me with other issues such as:
1. How can I represent a Date picker field?
2. A few of our forms created in Livecycle use dynamic forms. I.E. Hiding pages until a checkbox is selected for example. Is it possible to get similar results with just Acrobat/reader?
Thanks for any suggestion or comments.

Similar Messages

  • Writing data programmatically into PDF template created in LiveCycle designer

    Hi!!!
    I have a PDF template designed in Adobe LiveCycle Designer 7.0. This template has form fields which needs to be filled with data programmatically (I don't want to open LiveCycle Designer 7.0 and from there do import/export). I want to write a program in java, which will fetch data from database and will merge this data into PDF form in respective fields.
    How this can be achieved? Do I have to write an XDP file? Is there any API which will create XDP out of the PDF template created in designer? If so, then how to merge the data from the XDP into the PDF programmatically.
    Thanks in advance.
    - Shriram

    [email protected] wrote:
    > If I correctly understand what you're trying to do then Adobe XPAAJ should be adquate:
    >
    >
    >
    > Below is a link to a "video" demonstration of building an application that uses XPAAJ:
    >
    >
    >
    > (I don't think your question about having to write an XDP file is crucial to what you're trying to do, but you don't need to write an XDP file -- it is a "save as" option within Designer. You can save a Designer file as either PDF or XDP. Or both, one after the other, if you need both.)
    Careful with the recommendations for XPAAJ. There are specific restrictions around whether you can
    use XPAAJ or not. Specifically, you have to own a copy of one of the server-based LiveCycle
    products. This does not include LiveCycle Designer, which is a client product.
    Maybe someone from Adobe can clarify.
    Justin Klei
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • Problem with PDF files created by Indesign

    PDF files created by Adobe Indesign come up as blank pages whereas PDF files created by Mac OS X or Apple's Pages display OK. Is there a difference in the way PDF files are created?

    No problem with Adobe Reader 8 or 9 .

  • Printing problem through PC with PDF file created by app

    I created a 20 pages document by the numbers app on my iPad and sent it to myself as PDF. the format on each page looks great on my iPad, iPhone and appears the same look on a PC. However, everytime I tried to print it out, the print has a widened margin on top of each page. Does anyone experience this? What should I do to 'move' the content of each page on the right place as displayed on the screen? I'm so desperate to solve this. please kindly give some guidance.
    thank you.

    Flo,
    In my limited experience with the iOS iWork apps, they weren't designed for those who are picky about the layout. They are highly automatic and if you don't like the result, it's not easy to override. If the format when printed leaves unpleasant margins, I think your best approach is to reshape the tables in such a way that they will better fit the target media. If you are having large top margin, make the tables narrower, then when they scale to fit the paper, then may fill it better.
    Jerry

  • PC-Mac issues with PDF multimedia created in Acrobat X

    I created a slideshow in Lightroom and exported it to pdf. I brought it into Acrobat and added a few slides in the beginning, plus sound that starts at the first Lightroom slide (and the Lightroom slides autoplay, presumably this was a setting in Lightroom that carried over, since the slides I added don't?). This all works fine on my PC with Reader.
    I need this to work on a Mac. I don't know what OS, but the person has downloaded Reader X and reports that the sound player doesn't appear on that slide, and the Lightroom slides don't autoplay. I don't have a Mac to test with, so are there settings in her Reader that can be made so that these two things will work? She can play the source mp3 file separately.
    BTW, I created the mp3 from my own WAV in an old edition of Audition, if that makes any difference. Also, I have since found the autoplay setting in Edit>Preferences, at least in the PC version.

    You should NEVER expect that Apple's Preview application will be able to give the quality of preview you'll see in Acrobat. Apple chooses to implement or not implement the parts of the PDF specification that they choose.
    You should complain about this in the Apple user forums because they developed the application, not Adobe.

  • How to mail pdf file created in LiveCycle Designer

    I have a problem with how to do it...
    How can I sendto:[email protected] and add the pdf file with data.
    //Janne Lindwall

    Not possible with the 'Create Adobe PDF Online' service. Try the Designer forum.

  • Adobe Reader error with PDF reports created using AS Reports Server 10g

    Hi,
    Recently when trying to run reports in our system (which uses Oracle Application Server Forms & Reports Services 10g - 10.1.2.0.2), sometimes when we try to run a report in PDF format the following happens:
    1. A new window appears as expected
    2. This window hangs/appears to try to load for a couple of minutes
    3. Eventually an Adobe Reader error message appears saying the following:
    *"There is a problem With Adobe Acrobat/Reader. Please exit Adobe Acrobat/Reader and try again".*
    I have noticed that this problem only seems to occur when the client has Adobe Reader 9.3 installed (8.2 works fine).
    Has anyone else encountered this problem? Is there a known workaround or is this a known issue?
    Many thanks,
    Chris

    Does anyone have any ideas on this or has anyone encountered the same problem?
    thanks

  • Printing problems with Pdf documents created with Pages

    I upgraded to Acrobat 8.0 recently and for some reason when I save a Pages document to pdf, within the print options then try and print, it prints blank.
    I have created other pdf documents which print OK, so the problem lies somewhere within Pages.
    I didn't have the problem with Acrobat 7.0
    ANy ideas

    When you say "Acrobat", do you mean Adobe Acrobat Standard or Pro? Or do you mean Adobe Reader?
    If it is Adobe Acrobat, I would go to the preflight option and see what information you get there. But no, I have not had the problem myself.

  • Problem to open with  PDF file  created in acrobat 5.0

    Hi,
    I always open my pdf files with acrobat 5.0, but now I made the instalation of Acrobat Reader 7.0 and now when I try to open the pdf files I only see blank pages.
    There is some option to fix this problem?
    Somebody could you help me?
    Regards
    Rodrigo

    Adobe Reader Lite version 1.5
    Basically is as useful as a chocolate teapot. NUL POINTS
    I bought PDF+ from www.mBrainSoftware.com fro my Nokia E61
    Brilliant
    It has opened a 22MB file which is the biggest PDF I have with graphics etc

  • Unable to view the form in Mobile which was created using LiveCycle

    When I click on the link to view the dynamic form it says "Please Wait" . please let me know your valuable thoughts.
    Thanks,
    Anusha

    The "Please wait..." message is the shell PDF every dynamic XFA-forms lives in.
    A PDF-viewer that doesn't support XFA technology will only display that message.
    The fact is, that there is currently no PDF-viewer for mobile divices which will support XFA, even Adobe's Reader mobile doesn't support it.

  • Import data in a PDF created by LiveCycle

    Anyone know how I can take a txt file or (any other format I can create from a txt file) and import data into a pdf document created in LiveCycle?  Is this possible?  What do I need to do?  Thanks in advance.

    ((SID))
    This is definitely what I want to do I can get it to work with a new pdf that I create but not with my current pdf.  When I try to create the xml I just get this.
    <?xml version="1.0" encoding="UTF-8"?>
    <form1 xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup"
    />
    Any thoughts?

  • Form automation and renaming fields

    I've been trying to reliably get the data from a dynamic XFA PDF file  (created in Livecycle) which has expanding fields and hidden pages. I  gave up trying to get data out of the dynamic pdf and have decided on  another approach. Unless you can tell me I can reliably get the data out  of the pdf!! I read in a forum I couldn't if it was a dynamic form.
    Anyways to do what I want to I'll need to do the following:
    1. Open main pdf form
    2. Allow user to add a new page (supplement) from an existing pdf file.
    Question: What is the best way to merge the new page to the existing pdf?
    3. Before adding the supplement page, I'd like to rename the fields  before adding. The user may need to add several pages based on the  requirements of the users job. So to reduce confusion while getting the  data out of the PDF. It may look something like this.
    Page 1
    Field1
    Field2
    Supplement page 1
    SupField1
    SupField2
    SupField3
    Supplement page 2
    SupField4
    SupField5
    SupField6
    Or
    Supplement page 2
    Sup2Field1
    Sup2Field2
    Sup2Field3
    Question: Can this even be done. I have not found a way to do this  inside the Acrobat sdk. I can easily do this with a tool from Aspose but  was hoping to keep coding to the acrobat sdk.
    Thanks for any suggestions

    You can reliably get data from a dynamic PDF - people do it all the time (and have been doing so for years!).  You need to use a different method for XFA than you do for AcroForms, but it can still be done.
    On your requirements - you can't do #2 with a dynamic/XFA form UNLESS the "new page" is also an XFA form.  Basically you can either have XFA OR you can have PDF/AcroForms - but you can't mix them in a single document.  NOTE, this is true for ANY tool - it's a PDF design choice.
    With XFA-based forms there is no need to rename the fields - you can have multiple fields with the same name in the PDF.  It's only AcroForms that have this limitation.

  • QTP Automation with Acrobat SDK

    Hi,
    I would like to verify the PDF content using HP Automation tool - QTP by opening the PDF and extracting the Text content from PDF.
    I am trying the OLE style and using a series of commands, as described in many postings. The first one is:
    CreateObject("AcroExch.App")
    It throws error, saying "Cannot create ActiveX component"
    From the Forums I found that it will not work with Adobe Reader and will work with Full Adobe Product with Adobe SDK.
    Now I would like to know which version of Acrobat will have Acrobat SDK.
    My Client already procured the below Acrobat Products.
    VLA ACROBAT 10  win universal English
    VLA ACROBAT 10 WIN Universal English STD to STD Upgrade ST-ST
    VLA ACROBAT Pro 10  win universal English
    VLA ACROBAT Pro 10 WIN Universal English STD to STD Upgrade ST-ST
    Pls let me know which product( which has Adobe SDK as well)  I should choose to proceed with QTP Automation.
    Any Advise/Help greatly appreciated.
    Thanks.
    Anand Muthunayagam.

    Check out http://labs.adobe.com/technologies/aptt/
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Fri, 28 Oct 2011 06:09:25 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: QTP Automation with Acrobat SDK
    QTP Automation with Acrobat SDK
    created by AnandMuthuNayagam<http://forums.adobe.com/people/AnandMuthuNayagam> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3995113#3995113

  • I've exported a pdf document created in 2009 at least 20 times for a doc or docx version. Gibberish.

    I've exported a pdf document created in 2009 at least 20 times for a doc or docx version. Gibberish.

    Hi,
    Please open your PDF file in Adobe Reader then check the producer from File menu>Properties then let me know.I have seen the same issue with PDF file created by some producers.
    Or you can send me your PDF file so that I can look at it.
    Please use below site to share your file.
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg#
    Thank you.
    Hisami

  • Creating a pdf form that with document assembly = allowed

    I am having trouble creating a print and mail pdf form that i can combine with other pdf documents. I have created a form in live cycle designer. when i try and combine it with other documents it says that the form i have created is protected and cannot be used for this command. I have not explicitly put any security on the form. I have simply created the form and saved it as a pdf. when i open the form with adobe acrobat pro and check the document properties it is always set to "document assembly = not allowed" how do i change this? i have experimented with the security settings and even using a password and allowing changes to the document but nothing seems to change the "document assembly = not allowed" i have adobe acrobat 7.0 professional with Live Cycle Designer. Please Help!

    Brian,
    PDF Files made with Acrobat are based on postscript.
    PDF Files made with LiveCycle Designer are based on XML and are essentially wrapped in a PDF. Once modified in LiveCycle Designer, you can no longer edit the file directly in Acrobat.
    They do not share the same base file type and can not be combined into a single PDF using Acrobat version 7.
    One of the new features of Acrobat version 8 - is called packages. Packages allow you to combine files of different types (acrobat and designer) as well as documents with different security settings (also not previously allowed). Each file in the package maintains it's independent identity and settings, wrapped in a new pdf file.
    Recommended solution: Upgrade to Acrobat 8 Professional, get the new version of designer, and the ability to use packages.
    Hope this helps.
    Angie Okamoto

Maybe you are looking for

  • How do I transfer all files from macbook to windows 7 laptop

    Hi there, I am having a problem with my macbook. 6 weeks ago I got a new logic board installed under extended warranty as it was having kernel panics which I took out.  Sadly my warranty expired 3 weeks ago.  I am now having a problem with my macbook

  • QM-SD: Sales Return Inspection lot status Error

    Hello Expert, I want to post Goods receipt in a Returns delivery with QM activated in the material but the following message is displayed: Status of inspection lot 060000000001 / partial lot 000000 does not allow good issue Message no. VL171 The insp

  • Opening documents using DocLink results in ReadOnly Mode

    We are using harmon.ie plugin with Outlook to store emails and documents to a Sharepoint library. Users are experiencing an issue with Harmon.ie when opening an office document using persistent URLs(Document Link). The document opens in the client ap

  • PI 2.0 - virtual express "setup" Fail - The passwords do not match:

    Hi all, Since my lab is mostly VM, I was going to upgrade my PI 1.3 to 2.0.  Cisco documentation says the inline upgrade is not supported for the small virtual appliance.  Anyhow, I deployed the new 2.0 Express virtual OVA file, allowing to to use al

  • What are roles and responsibilities of Fico consultant

    Hi gurus can please tell me any one urgently.... what are the roles and responsibilities of fico consultant. Thank you kiran