How will read the value from Adobe Reader/Viewer in c# windows App

I m using VS2005 . working in windows appliction. i am using adobe Reader 9, Then the new pdf document open  inside the Acrobat adobe reader , Exsiting PDF file is created by Adobe Forms(Adobe LiveCycle designer and Adobe pro 9).
Using the Class is:
1.AcroExch.App
2.AcroExch.AVDoc
3.AcroExch.pdDoc
4.Acrobat.CAcroApp
namespace is:
using AxAcroPDFLib;
using AFORMAUTLib;
using Acrobat;
Using DLL is:
1. Interop.Acrobat
2. Interop.AcroPDFLib
3. Interop.AFORMAUTLib
4. AxInterop.AcroPDFLib
My problem is,
I am Working in
                   PDFis open inside the adobe reader/Viewer, but i can not able to get the value from PDF Forms.
                    ( This Pdf forms is Some more Control Design is Available)
Ex:
I have Attached my Pdf  disgn file.        Please see this Pdf file.
I am not able to get the value from  inside window(adobe Reader/Viewer),  but i can able to get the value from the out side of adobe viewer/Reader.
This coding not working properly,
try
                CAcroAVDoc AcroExchAVDoc = default(CAcroAVDoc);
                CAcroApp AcroExchApp = default(CAcroApp);
                CAcroPDDoc oDoc = default(CAcroPDDoc);
                AFORMAUTLib.AFormApp AFormAut = default(AFORMAUTLib.AFormApp);
                AFORMAUTLib.Field Field = default(AFORMAUTLib.Field);
                AFORMAUTLib.Fields Fields = default(AFORMAUTLib.Fields);
                bool OK = false;
                AcroExchApp = new AcroApp();
                oDoc = new AcroPDDoc();
                AcroExchAVDoc = new AcroAVDoc();
                AFormAut = new AFormAppClass();
                //AcroExchApp = (Acrobat.AcroApp)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.App" ));
                //oDoc = (Acrobat.AcroPDDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.PD Doc"));
                //AcroExchAVDoc = (Acrobat.AcroAVDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.AV Doc"));
                //AFormAut = (AFORMAUTLib.AFormApp)Activator.CreateInstance(Type.GetTypeFromProgID("AFormAut .App"));
                bool bOK = AcroExchAVDoc.Open(pdfWindowLeft.src, "Temp"); ' some time not true
                    ' if  ok (true) then
                if (bOK)
                    Fields = (AFORMAUTLib.Fields)AFormAut.Fields;
                    foreach (Field myField in Fields)
                        if (myField.Name == "form1[0].#subform[0].Id[0]")   ' field value not get from the inside window
                            string Id = myField.Value; ' not getting a answare
                        if (myField.Name == "form1[0].#subform[0].PatientName[0]")
                            string PatientName = myField.Value;
                        if (myField.Name == "form1[0].#subform[0].Email[0]")
                            string Email = myField.Value;
                        if (myField.Name == "form1[0].#subform[0].PhoneNo[0]")
                            string PhoneNo = myField.Value;
                        if (myField.Name == "form1[0].#subform[0].Address[0]")
                            string Address = myField.Value;
            catch (Exception Ex)
                lbl_Result.Text = Ex.Message;
            finally
                Conn.Close();
This coding is working properly,
try
                String FORM_NAME = addressLeft.Text;
                //String FORM_NAME = Application.StartupPath + "\\..\\..\\..\\..\\..\\TestFiles\\SampleForm.pdf";
                // Initialize Acrobat by cretaing App object.
                CAcroApp acroApp = new AcroAppClass();
                // Show Acrobat Viewer
                acroApp.Show();
                // Create an AVDoc object
                CAcroAVDoc avDoc = new AcroAVDocClass();
                // Open the pdf
                if (!avDoc.Open(FORM_NAME, ""))
                    lbl_Result.Text = "Cannot open" + FORM_NAME + ".\n";
                    return;
                // Create a IAFormApp object, so that we can access the form fields in
                // the open document
                IAFormApp formApp = new AFormAppClass();
                // Get the IFields object associated with the form
                IFields myFields = (IFields)formApp.Fields;
                // Get the IEnumerator object for myFields
                IEnumerator myEnumerator = myFields.GetEnumerator();
                bool bFound = false;
                // Fill the "Name" field with value "John Doe"
                while (myEnumerator.MoveNext())
                    // Get the IField object
                    IField myField = (IField)myEnumerator.Current;
                    // If the field is "Name", set it's value to "John Doe"
                    // form1[0].#subform[0].Name[0]
                    if (myField.Name == "form1[0].PatientInformation[0].Id[0]")
                        //form1[0].#subform[0].Id[0]
                        bFound = true;
                        lbl_id.Text = myField.Value;
                    //form1[0].#subform[0].Name[0]
                    if (myField.Name == "form1[0].PatientInformation[0].PatientName[0]")
                        bFound = true;
                        lbl_name.Text = myField.Value;
                    if (myField.Name == "form1[0].PatientInformation[0].Email[0]")
                        bFound = true;
                        lbl_email.Text = myField.Value;
                    if (myField.Name == "form1[0].PatientInformation[0].PhoneNo[0]")
                        bFound = true;
                        lbl_phoneno.Text = myField.Value;
                    if (myField.Name == "form1[0].PatientInformation[0].Address[0]")
                        bFound = true;
                        lbl_address.Text = myField.Value;
can u anyone help me. It's very urgent for my project.
Thanks for ur replay,
Regards
Ganesaselvam.I

First off - the code you wrote won't work with Reader, it will only work with Adobe Acrobat.
Second, LiveCycle Designer-based forms are a special type of PDF and don't use AcroForms, they use an XML-based forms grammar.  Therefore, the AcroForms API calls aren't designed to work with them.  You should be using the JSObject bridge code along with JavaScript to access the values of the fields.

Similar Messages

  • How to retrieve the values from a Transient View Object

    Hi Experts,
    I am using Jdevelpoer11.1.1.5.0. I created one Transient view object with attributes EmpId,Salary.
    In Backing Bean i will create rows for that view object and display it in the form of <af:Table> like Empid, Salary and an Update Link.
    Now my problem is i want to update the salary of the particular EmpId. For Example if the EmpId is 100 and salary is 10000 now i want to increase the salary to 20000 and if i click on the update button; i want to retrieve the particular employee details in my backing bean. How can i acheive this?
    Thanks in advance.

    A better approach would be to programmatically populate rows in the <VO>Impl.java by overriding the executeQueryForCollection(0 as specified here -
    http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
    You can write the logic to update the salary in an AM method then on click of Update or in the getter of Salry field if logic is valid for all fields...

  • How do I delete documents from Adobe Reader?

    I frequently edit bulletins and such for church, that I then no longer need to have taking up space on my computer.  How do I delete them from Adobe Reader?

    Reader does not contain files, it only opens them. You need to find where the files are located on your computer, browse to that folder (via My Computer), select them and press Delete, just like with any other file-type.

  • How can i open file from adobe reader..i already have adobe read

    how can i open file from adobe reader..i already have adobe reader installed and cannot open a
    file and i cannot convert my file into pdf..

    Is the file really a PDF? Where is it? Have you tried opening it from within Reader?

  • How can i transfer files from adobe reader to my kobo e-book

    how can i transfer files from adobe reader to my kobo e-book??

    I think you should ask in the Digital Editions forum,
    http://forums.adobe.com/community/adobe_digital_editions
    This is the Reader one.

  • How to determine the version of Adobe Reader X I have

    How to determine the version of Adobe Reader X, I have

    I am in the software, where can I find it?
    On Tue, Jan 27, 2015 at 9:59 AM, Sara.Forsberg <[email protected]>

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to retrieve the values from a table if they differ in Unit of Measure

    How to retrieve the values from a table if they differ in Unit of Measure?

    If no data is read
    - Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
    If no quanity in result internal table
    - There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
    - - Remove the CORRESPONDING, so quantity will fill the first field adqntp1.  ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
    - - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
    * Fill the internal table
    SELECT msehi adqntp
      INTO TABLE internal table
      FROM lipso2
      WHERE vbeln = wrk_doc1
        AND msehi IN ('KL','K15','MT').
    * If required move the read quantity in the appropriate column.
    LOOP AT internal_table ASSIGNING <fs>.
      CASE <fs>-msehi.
        WHEN 'K15'.
          <fs>-adqnt2 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
        WHEN 'MT'.
          <fs>-adqnt3 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
      ENDCASE.
    ENDLOOP.
    - You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
    Regards,
    Raymond

  • How to delete the values from TKOMV at runtime after creating PO

    Hi,
      How to delete the values from TKOMV at runtime after creating PO from IDOC. I am creating PO through IDOC, subsequently need to create Sales order and again need to create 2nd PO with reference of Purchase Requestion(created with sales order). At the time creation of 2nd PO the Header conditions are appearing twice and net price value is appearing wrong.
    Thanks in advance.

    Hi Padma
    Can you do this activity once the company code is in to production. I guess you can not do this activity, if the company code is already in to live. Setting or resetting of the recon accounts will hinder the previous actitivity. Infact resetting of the company code is also not a good option.
    Any how, thanks for the inputs. Please let me know whether i can do this activity only at the subledger level which will not impact other modules. The one solution i can figured out is , reverse all the transactions for the corresponding asset in the year of takeover and pass the entries again in the same year correctly which will have effect in Subledger and also in general ledger. But the business people will not allow this, since for a big client it will require lot of authorizations and approvals. Infact the vendor also, is cleared. So we have to reverse the cleared documents as well which is again a task and require approvals as well.
    Thanks and regards
    Seshu.

  • How to get the value from a JavaScript and send the same to Java file?

    Hi.
    How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
    Thanks and regards,
    Leslie V

    Yes, I am trying with web application.
    In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
    How to send this 'message' with and to the 'request'?
    Thanks for the help :-)
    The actual JS code is:
    function productdeselection()
    var i=0;
    var j=0;
    var deselectedproduct = new Array(5);
    var message = "Are you sure to delete Product ";
    mvi=document.forms[0].MVI;
    mei=document.forms[0].MEI;
    lpi=document.forms[0].LPI;
    if(null != mvi)
    ++i;
    if(null != mei )
    ++i;
    if(null != lpi)
    ++i;
    if(null != mvi && mvi.checked)
    deselectedproduct[++j]="MVI?";
    if(null != mei && mei.checked)
    deselectedproduct[++j]="GAP?";
    if(null != lpi && lpi.checked)
    deselectedproduct[++j]="LPI?";
    if( 0!=j)
    if(i!=j)
    for (x=0; x<deselectedproduct.length; x++)
    if(null != deselectedproduct[x])
    message =message+ "-" +deselectedproduct[x];
    alert(message);
    else
    //alert(" You cannot remove all products!");
    return false;
    return true;
    }

  • How to get the values from the resultset???

    I have a problem with this code given below,
    i am executing an sql query which return a union of values from two tables.
    the problem here is how do i read the values from the resultset.
    here is the code....
    package com.webserver;
    import java.sql.*;
    public class UnionDemo{
    public static void main(String args[]){
    Connection connection =null;
    Statement statement =null;
    ResultSet rs =null;
    try{
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    connection = DriverManager.getConnection("jdbc:oracle:thin:@:1521:ORCL","scott","tiger");
    statement = con.createStatement();
    rs = statement.executeQuery("(select tablename from node where appid=432) union (select tablename from uomnode where appid=432)");
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    while (rs.next()){
    System.out.println(rs.getString(1));
    // instead of rs.getString(1) I also used rs.getString("tablename") but of no success....
    }//end of while
    }catch(Exception exp){
    exp.printStackTrace();
    finally{
    try{
    if (rs!=null) rs.close();
    if (statement!=null) statement.close();
    if (con!=null) con.close();
    }catch(Exception exp1){
    exp1.printStackTrace();
    }//end of finally
    }//end of main
    }//end of class
    when i execute this program i get an oracle error ORA-01009
    which says (java.sql.SQLException: ORA-01009: missing mandatory parameter)
    can anyone help to retrieve the values from this resultset...
    thanx

    [cut]
    i am executing an sql query which return a union of
    values from two tables.
    the problem here is how do i read the values from the
    resultset.[cut]
    When the error occours?
    1) Executing query ?
    2) Retrieving the field from the resultSet ?
    3) ecc. ?
    BTW, first of all, try to execute the query removing the parenthesis
    of the two select statement. I know that there are some problem
    with the oracle jdbc driver about them.
    Hope it helps.

  • How to move the value from a character field to numeric or packed decimal

    Hi,
    can anyone explain me on how to move the value from a character field to numeric or packed decimal.
    Please help me on this. Thanks...
    Regards,
    Rose.

    Hi ,
    if you use keyword MOVE u may loose the decimal and thoussan separator and if u don't want to loose them just call the FM ..HRCM_STRING_AMOUNT_CONVERT.
    i doubt wherther it is HRCM or HCRM just try using *
    this will suit ur requirement.
    Regards,
    KK

  • How to pass the value from Sub report to main report

    I have un report(mainreport) within a subreport(subreport).
    With reporting services, how to pass the value from Sub report to main report?
    thanks

    Hi Alebet,
    With reporting services to pass values from sub report in to main report is not supported directly.
    But there are some workarounds through which you can get this .
    There are two ways to get this.
    1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
    2- Using this temporary tables data write some Scala function in the data base.
    3- Now in your main report query return this scala function as a column.
    4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
    This will definitely work fine as i have done some report in this way.
    Another way of doing is that
    1- prepare another data set with the same query as in sub report in the data tab.
    2- then refer this 2nd dataset in your main report .
    But better way will be the top one.
    Anyway please let me know if you get the solution.
    Thanks
    Mahasweta

  • I have created a PDF and password protected it for view. However, when reading the PDF in Adobe Reader app on the iPad the commenting and annotation options are not available. Is there a way to allow commenting and annotation in the app while password pro

    I have created a PDF and password protected it for view. However, when reading the PDF in Adobe Reader app on the iPad the commenting and annotation options are not available. Is there a way to allow commenting and annotation in the app while password protecting the document?

    Is there a setting that needs to be set to allow the annotation features?  I set password protection to open and then password for editing and set it to Any except page extraction, but it still did not give the annotation option

  • How to get the value from databank

    Hi,
    How to get the value from databank? and how to set the same value to visual script object?
    thanks,
    ra

    Hi,
    You can use GetDatabankValue(HeaderName, Value) to get the value from databank and SetDataBankValue(HeaderName, Value) to set the value to databank.
    You can refer to the API Reference to see list of associated functions and techniques we can use with related to Data Bank.
    This is the for OFT but if you are using Open Script then you have direct access for getting the databank value but when it comes to setting a value you have to use File operation and write you own methods to do the set operation.
    Thanks
    Edited by: Openscript User 100 on Nov 13, 2009 7:01 AM

Maybe you are looking for

  • CRM - Pricing User Exit in Java - BADI CRM_COND_COM_BADI

    Hi All I have to convert some user-exit from Abap to Java in order to work in CRM Pricing Scenario (I use VMC technology based on Web AS 7.00). In the manual attached to note 809820 (New userexit concept for pricing) I find this chapter but I don't u

  • Apple DVD Player 5.4 Doesn't Work

    I recently updated my MacPro to 10.6.5. Included in this update is a new version of Apple's DVD Player. The new version of DVD Player is 5.4. The installation package includes the application and an entirely new system framework to support it. Unfort

  • Proxy error while creating indexes

    hi all          i configured my trex name server and TREX host in the field http ¨C Bypass Proxy Servers.in System Administration ¡ú System Configuration ¡úService Configuration ¡ú Applications (Content Catalog) ¡ú com.sap.portal.ivs.httpservice ¡úSe

  • RMI over IIOP

    Hi all... I am now trying a program with RMI over IIOP. My server is behined a firewall and proxy and client will be running out side the network. So in this situation I want to allow this particular client through the proxy. I am not sure whether th

  • Moving Systems Between Partitions

    What is the best way to move an SAP system from its current partition to another partition that has no SAP systems loaded on it?