Dynamically generating and printing output from user input on pdf form

Hi Everyone,
I am consider the purchase of of Designer with the hopes of doing something really simple (and hopefully in a simple way)
I would like to present the user with a form which they will fill out. On clicking a "submit button", I would like to generate a letter and have it print out based on the information provided in this form (note, the user doesn't ever really even need to see the letter).
Would Designer be able to do something like this? I have been messing around with the trial version, so I am somewhat familiar with the scrip language. For instance, I am at the point where I would be able to get all the information, and generate the letter in HTML stored in a string object. But I wouldn't know what to do with this string to render and print it.
Thanks!
- Dave

I have just downloaded the trial version of Acrobat 7. It appears that if you want to create a new form, it pretty much brings you to Designer... which is really fine by me.
I appreciate everyone telling me that it is doable, I'm still left with the problem of what I should actually do to do it! =)
- Dave

Similar Messages

  • Load a PDF and Print it Without User Seeing the PDF

    I have a client who has a need to allow users via a web browser to print PDFs wihtout gaining direct access to them.  Ignoring all the flaws in this logic , I am new to Flex and am having difficulty determining if this is possible.  So, here are the details:
    1) This is a web browser application.
    2) The files reside on a server.
    3) The user will view a list of available PDF files in their browser.
    4) There will be a print icon next to each one.
    5) When they click on the print icon we need to pull in the PDF from the server and initiate a print, all without the user seeing the PDF.  So once they click the print icon the next thing they see is thier browser's print dialog box.
    I have 1-4 done, I just need help with the most important one, #5.
    So, can Flex (without AIR) load a PDF in without displaying it and print it?
    I am using Flash Builder 4.6, if it matters.
    Thanks in advance for any input.

    Well, that's going to be difficult. Before everything else, a silent printing in general, is not what Browser is all about. A print dialog is thrown by the browser when a user selects a print option. Same thing if an application is trying to print using built into it conventional methods of printing - you get Print dialog. It gets even harder if you want to print PDF files silently. You will need to make sure that a file is available to print in case it's generated on the fly. The following code will print your PDF without dialogs to a selected (var printer) printer:
    var WshShell = new ActiveXObject("WScript.Shell");
    var fs = new ActiveXObject("Scripting.FileSystemObject");
    var fi = "AcroRd32.exe /N /T " + '"c:\\temp\\' + "filename" + '" ' + printer;
    WshShell.Run(fi, 0, false);
    As you notice, the file is on the local system. Or you can try printing over the network.
    This code will be a part of a JS function in your html wrapper. You will call this function from Flex using ExternalInterface.
    AcroRd32.exe is an Adobe free PDF reader.  I would suggest starting from the end - have a file on the local system and working on everything esle.
    HTH

  • Supress Header and Trailer from being generated and printed

    I am using oracle 9i Reports Builder.
    Is there a way to supress the header and trailer pages from being generated and printed.

    Increase the marigin size to zero size header and trailer in the layout editor and then run the report.

  • How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char

    Hi,
    I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4.
    Regards

    Refer to Note: 239196.1 - PASTA 3.0 Release Information
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=239196.1
    Or, you can use XML Publisher.
    Note: 551591.1 - Need Latest XML Publisher / BI Publisher Patches For R12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=551591.1

  • My mac keeps freezing when i try and print anything from preview. any ideas as to what the issue is or how to fix it?

    my mac keeps freezing when i try and print anything from preview. any ideas as to what the issue is or how to fix it?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • ANN: 1/2-hr webinar (free), June 5 -- Enable and encourage user input in PDFs (viewed with Adobe Rea

    Enable and encourage user input in PDFs (viewed with Adobe Reader)
    with FrameMaker-to-Acrobat TimeSavers + Form Assistant
    Half-hour webinar (free; no fluff, no hype, no nonsense)
    Wednesday, June 5, starting 9am PDT
    Register at: https://www3.gotomeeting.com/register/157658438
    Enabling PDFs for various types of user input can strengthen the interaction between users and the content, and improve satisfaction due to greater user involvement/control. In addition, designated avenues for user input can contribute to documentation quality and provide outlet for frustration, for example by sending inputs regarding the documentation or the product directly from within the PDF.
    Techniques demonstrated in this webinar include features that are all embedded in PDFs that are viewed with the free Adobe Reader:
    • text fields where users can record data values and options
    • checkboxes to track progress
    • page marks and notes (optionally e-mailed)
    • embedded grading/feedback forms
    • storing of useful search queries within the PDF for future use
    Shlomo Perets
    MicroType, http://www.microtype.com
    FrameMaker/Acrobat/Captivate training & consulting • FM-to-Acrobat TimeSavers/Assistants

    https://crash-stats.mozilla.com/report/index/bp-0a0b872f-5127-4ee1-a355-ca3cb2120721
    https://crash-stats.mozilla.com/report/index/bp-9cd87dd7-205f-4844-9e6d-3ce262120721
    https://crash-stats.mozilla.com/report/index/bp-8c07c846-b2ed-4535-8db4-4ee072120720
    https://crash-stats.mozilla.com/report/index/bp-f29a89ed-f8b1-4a62-ba3e-983e22120720
    https://crash-stats.mozilla.com/report/index/bp-e16d2b91-0f7d-4e5a-9e25-255852120718
    https://crash-stats.mozilla.com/report/index/bp-1226c709-5f87-41c6-95d3-4310d2120718
    https://crash-stats.mozilla.com/report/index/bp-4de2a0da-dd36-4ec8-8e53-c42742120714
    https://crash-stats.mozilla.com/report/index/bp-e16d2b91-0f7d-4e5a-9e25-255852120718
    https://crash-stats.mozilla.com/report/index/bp-4de2a0da-dd36-4ec8-8e53-c42742120714
    https://crash-stats.mozilla.com/report/index/bp-eac1c5a5-2dce-4415-b645-07a1f2120714
    https://crash-stats.mozilla.com/report/index/bp-1ede5bd3-8c72-4362-8d79-4f29c2120714
    https://crash-stats.mozilla.com/report/index/bp-d4fd5dae-dacd-45f8-9549-2c3702120722
    https://crash-stats.mozilla.com/report/index/bp-ca510991-de29-44b3-be02-0255a2120722
    https://crash-stats.mozilla.com/report/index/bp-8600c221-3fd3-4eaa-a5af-a602b2120722
    With Hardware Accelaration in Flash turned off. Still crashing.

  • How to update jTable from user input?

    I create one jTable with 2 rows and 3 columns. the jtable colums contains deviceIP and Status. I am getting device IP from user input through jTextfield. so, when user enter IP and click add button, it must added in the jTable rows one by one.
    how can I add it by user enter the IP. Also, I want to update the status column value by "UP" or "DOWN" by just getting string value from other function.
    but, my problem is i need to update the correct IP status value to correct column (ie., I want to put IP 1(row 1) status to column 1 in status column list.
    I don't know about jTable .
    If any one have any examples please give me.

    use
    ((DefaultTableModel)jTable.getModel()).addRow(Object[]);
    Object[] is the array of row data values you want to insert;

  • How to create a VI that detects and records responses from user

    Does anyone has experience in creating a VI that allows the user to e.g., watch a video or series of images, pause or rewind video etc. and the VI records the duration of all pauses or user responses.

    avenue wrote:
    How to create a VI that detects and records responses from user
    You definitely need to check what 'EVENT STRUCTURE' is and how to use it... because thats needed to write such code.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Generate and print itemised bill for book store management software

    i want to generate and print (atleast generate ) bill for book store management software.
    such that i enter the bookID ,no of copies (any variable no of items in a bill )
    sr no bookid name price copies total
    1 9898 java 500 2 1000
    2 8728 os 350 1 350
    TOTAL 1350

    Nice! - Me too, I want to programme a lot of things.;-)
    Do you want us to write this application, or do you have a specific question?

  • GRC AC 10:How to generate Access Rule? No output from User or Risk Analysis

    Hello Gurus,
    We have done configuration of GRC AC 10, and uploaded files via
    SoD rules -->Upload Rules
    After that we generated SoD rules for Risk Id : B001 and B002
    Now when we go to NWBC --> Reports & Analytics >Access Dashboards>Access Rule Library
    The report shows (for Group Rule level : Action)
    Number of Active rules : 0
    Number of Disabled Rules : 0
    Number of Functions :  151
    Where as for Group Rule level : Action Risk
    The report shows
    Number of Active Risk : 42
    Disabled risk : 161
    Nmr. of functions : 151 .
    When we perform Risk Analysis at User Level or Role Level, the output is empty !!!
    Note: All the background jobs have run successfully.
    Also the SoD files also have been uploaded successfully.
    Will you please guide how can i activate the "rules" for the uploaded risk ??
    regards,
    Victor

    Hello Victor/ Inder,
    For Risk ID B001functions are BS02 and BS11 if you open any one of them you can see system maintained as SAP BASIS which is SAP_BAS_LG (logical connector group).
    Post installation you can check in SPRO>Governance, Risk and Compliance-> common Component---> integration framework-> maintain connector and connector types->select SAP and click Define connector Group.
    BUSINESS     Business Roles     SAP
    SAP_BAS_LG     SAP Basis     SAP
    SAP_CRM_LG     SAP CRM     SAP
    SAP_ECC_LG     SAP ECCS     SAP
    SAP_HR_LG     SAP HR     SAP
    SAP_NHR_LG     SAP R3 - NON HR Basis Logical Group     SAP
    SAP_R3_LG     SAP R3     SAP
    SAP_SRM_LG     SAP SRM     SAP
    (If not present then manually you can create the same)
    Select SAP_BAS_LG and put connector type as SAP,  select SAP_BAS_LG and click Assign Connector group to group types as AM & LG, then click on Assign Connector to connector group and maintain you connector.
    Post this activity re generate SOD for B001 and then check for user level and role level analysis.
    Hope it will resolve your issue.
    Regards,
    Sudesh

  • Generate and print data matrix code from a vi

    Folks,
    does anyone know how to code a string into a data matrix code? How can the code be printed most straightforward? Probably it's the best way to generate the code in an image or picture format and send it to the printer that way? The printer we are using is a barcode printer, not an usual laser printer. According to the specifications this printer is able to print data matrix codes. Unfortunately, the vendor of the printer wants the user to use the proprietary software and does not provide a LabVIEW driver.
    Thanks for any hint,
    P.

    Hi
    I think the Dymo Labelwriter is a general purpose printer. So you may send data as you do to any printer. Her is a link to free barcode kit for labview http://code.google.com/p/lvbarcode/downloads/list
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Script to map default printer based on user input

    Hello everyone,
    Complete scripting noob here but I managed to cludge together a vb script (from various sources) that will remove all current printers and then add printers based on group membership.  It can also add a default printer and if they have a local printer
    make that default.  All that works just fine, my problem is that we have very large floors with many printer clusters.  Group membership for printers is by floor and I do not have the option to further define this (Also GPO is not an option as getting
    our network group to deploy anything takes years so we need to go this route).
    What I would need is something graphical (like an HTA) that when run it prompts the user to input which floor they are on, then it asks them which of the print clusters (on the floor they specified) is closest to them.  It would then install all the
    printers on the floor and make the default printer one from the print cluster they indicated (unless they have a local printer).  I hope this make sense. 
    I think I have most of the pieces laid out but I don't know how to get the user prompts/GUI and then perform the correct mappings.  Thank you in advanced!

    I agree with Bill. Using the correct method will be best.  You network people will be more than happy to tell you what is set up and how to use it.  You just need to ask your manager to get you in contact with them for a little parley.
    If you are really insisting on a script then look in the repository.  There are dozens of scripts that you can use and modify.
    You should try to see this as a challenge to bring modern technology to your company.  Approaching this kind of thing as a global IT challenge will usually get the attention of IT and they will usually take it seriously.  You will likely learn
    many things about the IT resources your company has.
    ¯\_(ツ)_/¯
    I'm sorry if I wasn't clear but I'm not asking anyone to write the script for me, as I said I have most of the parts working.  My issue is getting the user input and getting the script to take the action I need it to (I can map the printers based on
    AD group membership I really just need to prompt the user to select which one they want as default).  My thoughts were to wrap a GUI around it but it's not needed.
    I agree that GPO is the way to go but in State Government it takes an act of Congress to get anything done in the mean time I'm trying to get things done with the means available to me.

  • Slow response from user input

    Hi.
    I have a very strange problem with some of my clients. Sometimes they experience a huge delay between key pressed on keyboard and actual character printed on monitor. So there is a simple text item involved and when the user starts typing the delay could be two or even three seconds between user input (each character) and actual forms displaying it.
    First I suspected network contention but I am not quite sure if there is any network traffic (client browser -> application server) involved while user is typing text into text item. Next I tried to monitor clients machine processes (like anti virus program) but no luck. I have also tried various JRE versions but again no luck.
    I am using 11.1.2.1 version of forms with Mozilla and JRE 1.6.35 on client side.
    Does anybody have/had similar experience? Any suggestion in helping resolving the issue appreciated.
    Also I am really curious what is happening (is there any network traffic involved) while user is typing text into text item where there is no trigger on that item except when_validate_item.
    Best regards.

    Also I am really curious what is happening (is there any network traffic involved) while user is typing text into text item where there is no trigger on that item except when_validate_item.Unless you have implemented a Java Bean on the item to monitor the keystrokes in the field, no events are trigger by the act of typing characters in a field. The act of typing characters in a field occurs completly on the client - no network traffic at this point. Only when a field event occurs (navigation away from the item) will an event occur that would cause network communication between the client and the appilcation server.
    Sometimes they experience a huge delay between key pressed on keyboard and actual character printed on monitor. I encountered something similar to this with a user once who complained about how slow the application ran on their computer. The slowness was intermitant and there was no apparent pattern. Like you, I looked at JRE and other things. Finally, told the user to call me when the slowness occured so I could come look at the computer while it was occuring. Turns out, the user had at least 30+ applications running at the same time. The workstation was running Windows XP with 2gb Ram. Looking at their system resources, there was no memory available and the pc was memory thrashing really bad. I had the user close all but the absolute necessary programs and our Forms application started responding quickly again. After a little user education - miraculously, the slowness problem went away. :)
    Craig...

  • Pull/Get Data/Value from User Input Window

    I'm trying to do something that should be be quite basic for a programer, but unfortunately unfortunately being a designer I'm having a heck of a time with this.  Having spent hours searching and trying different things I thought of posting the problem.  I have the feeling I'm not the first designer struggling with this.
    I'm trying to pull input data from a window and pass it on to a variable.  In the script I do a couple of purge(), and I'm not sure if that will clear the user input values during the script, but this is thinking ahead...
    I need values to do:
    layer.translate(X, Y) // If I'm not wrong this needs to be a - string
    bitsaveoptions.method = ChanelScreen; //from drop down menu
    bitsaveoptions.angle = KAngle //  If I'm not wrong this needs to be a - integer
    bitsaveoptions.frequency = ChanelFrequency; //  If I'm not wrong this needs to be a - integer
    bitsaveoptions.resolution = ChanelResolution; //  If I'm not wrong this needs to be a - integer
    bitsaveoptions.shape = BitmapHalfToneType.ROUND; //from drop down menu
    I know that there are different ways to retrieve the data from a window .selection .value and maybe others but I can't seem to pull the data out of from the user input
    Any advice would be greatly appreciated. 
    Thanks.
    PS I'm working with Photoshop CS5
    This is what I have so far.
    // =========== Ruler to Millimiters
    app.preferences.rulerUnits = Units.MM;
    var doc = app.activeDocument;
    var layer = doc.activeLayer;
    var dropdownlistArray = new Array();// The array of drop down lists.
    var chosen_action = null;
    var ScreenShapeArray= new Array(
    'Round',
    'Eliptical'
    var WinContent =
    "dialog{\
        orientation: 'column', \
        alignChildren: ['fill', 'top'],  \
        preferredSize:[300, 130], \
        text: 'Export Settings',  \
        margins:15, \
            Coordinates: Panel {\
            orientation: 'column', \
            text: 'Chanels Shifts', \
            margins:15, \
            alignChildren: 'right',\
                KChanelX: Group{\
                st: StaticText { text: 'X:' }, \
                te: EditText { text: '15', characters: 4, justify: 'right'} \
                st2: StaticText { text: 'mm' }, \
                KChanelY: Group{\
                st: StaticText { text: 'Y:' }, \
                te: EditText { text: '10', characters: 4, justify: 'right'} \
                st2: StaticText { text: 'mm' }, \
        bottomGroup: Group{\
            cancelButton: Button { text: 'Cancel', properties:{name:'cancel'}, size: [120,24], alignment:['right', 'center'] }, \
            applyButton: Button { text: 'Apply', properties:{name:'ok'}, size: [120,24], alignment:['right', 'center'] }, \
    // ======== Create window object
    var win = new Window(WinContent);
    // ======== Display Window
    win.show();
    var X =parseInt(win.Coordinates.KChanelX.te.selection);
    var Y =parseInt(win.Coordinates.KChanelY.te.selection);
    alert (X); // Here I get NaN
    alert (Y); // Here I get NaN
    if (typeof(X) === "undefined" || typeof(Y) === "undefined" ){
    layer.translate(X+"mm", "-"+Y+"mm");
    }else {
    alert ("here"); // Always end-up here regardles of canling or acepting the default values

    .text
    Is what I was looking for!
    Not being so programming savvy, and not knowing the proper terminolgy makes things way harder.
    You asked what the script is for:
    I'm creating an interface to save multiple file from a master file.
    1. Set the bitmap conversion presets (res, screen type, shape, lpi, angle), for the desired chanels to export, set the pages in the book that will be produced, number of signatures, as well as pages per signature.
    2. Create tiffs for every chanlel and move the chanel according to the presets tied to the signature the page belongs to in the book.
    3. Reassemble the chanels into one file for viewning and use the tifs for print.
    Total I will have:
    Myfile_C.tif //Cyan
    Myfile_M.tif //Magenta
    Myfile_Y.tif //Yellow
    Myfile_K.tif //Black
    Myfile_col.psd //CMY chanels reassembled
    Myfile_sep.psd //CMYK chanels reassembled
    Why am I doing all this? I'm working on a comic that will simulate a silver age comic book and I need the look of that time, with off registration plates. But I also need to see the final result of the shift and keep things constant for each plate as I'm working on the separate pages, so series of presets are a must for me.
    If the result of the interface is somewhat acceptable I'll post it.
    Thanks for the help I really apperciate it.

  • How to check the value from user input in database or not?

    Hello;
    I want to check the value of user input from JtextFiled in my database or not.
    If it is in database, then i will pop up a window to tell us, otherwise, it will tell us it is not in database.
    My problem is my code do not work properly, sometimes, it tell me correct information, sometime it tell wrong information.
    Could anyone help,please.Thanks
    The following code is for check whether the value in database or not, and pop up a window to tell us.
    while( rs.next()) {
                    System.out.println("i am testing");
                    bInt=new Integer(rs.getInt("id"));
                    if(aInt.equals(bInt)){ // If i find the value in data base, set flag to 1.
                  flag=1;  //I set a flag to check whether the id in database or not
                        break;
             System.out.println("falg" + flag);
                if(flag==1){ //?????????????????????
              String remove1 = "DELETE FROM Rental WHERE CustomerID=" + a;
              String remove2 = "DELETE FROM Revenus WHERE CustomerID=" +a;
              String remove3 = "DELETE FROM Customer WHERE id=" +a;
              s.executeUpdate(remove1);
              s.executeUpdate(remove2);
              s.executeUpdate(remove3);
                    JOptionPane.showMessageDialog(null,"you have success delete the value");
              s.close();
             else//???????????????????????????????
                  JOptionPane.showMessageDialog(null,"I could not found the value"); -------------------------------------------------------------------
    My whole program
    import java.sql.*;
    import java.awt.BorderLayout;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class DeleteC extends JFrame
        public static int index=0;   
        public static ResultSet rs;
        public static Statement s;
        public static Connection c;
        public static  Object cols[][];
        private static JTable table;
        private static JScrollPane scroller;
        private static int flag=0;
        public DeleteC()
            //information of our connection
            //the url of the database: protocol:subprotocol:subname:computer_name:port:database_name
            String strUrl      = "jdbc:oracle:thin:@augur.scms.waikato.ac.nz:1521:teaching";
            //user name and password
            String strUser      = "xbl1";
            String strPass      = "19681978";
            //try to load the driver
            try {
                Class.forName("oracle.jdbc.driver.OracleDriver");
            catch (ClassNotFoundException e) {
                System.out.println( "Cannot load the Oracle driver. Include it in your classpath.");
                System.exit( -1);
            //a null reference to a Connection object
            c = null;
            try {
                //open a connection to the database
                c = DriverManager.getConnection( strUrl, strUser, strPass);
            catch (SQLException e) {
                System.out.println("Cannot connect to the database. Here is the error:");
                e.printStackTrace();
                System.exit( -1);
           //create a statement object to execute sql statements
        public void getData(String a){
            try {
             //create a statement object to execute sql statements
             s = c.createStatement();
                int index=0;
                Integer aInt= Integer.valueOf(a);
                Integer bInt;
                  //our example query
                String strQuery = "select id from customer";
                //execute the query
                ResultSet rs = s.executeQuery( strQuery);
                //while there are rows in the result set
                while( rs.next()) {
                    System.out.println("i am testing");
                    bInt=new Integer(rs.getInt("id"));
                    if(aInt.equals(bInt)){
                  //JOptionPane.showMessageDialog(null,"I found the value"); 
                  flag=1;
                        break;
             System.out.println("falg" + flag);
                if(flag==1){
              String remove1 = "DELETE FROM Rental WHERE CustomerID=" + a;
              String remove2 = "DELETE FROM Revenus WHERE CustomerID=" +a;
              String remove3 = "DELETE FROM Customer WHERE id=" +a;
              s.executeUpdate(remove1);
              s.executeUpdate(remove2);
              s.executeUpdate(remove3);
                    JOptionPane.showMessageDialog(null,"you have success delete the value");
              s.close();
             else
                  JOptionPane.showMessageDialog(null,"I could not found the value");
            catch (SQLException e) {
                 JOptionPane.showMessageDialog(null,"You may enter wrong id");
    My main program for user input from JTextField.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JOptionPane;
    import java.util.*;
    public class EnterID extends JFrame{
        public JTextField tF1;
        public EnterID enID;
        public String tF1Value;
        private JLabel label1, label2, label3;
        private static JButton button;
        private static ButtonHandler handler;
        private static String aString;
        private static Integer aInteger;
        private static Integer checkV=0;
        public static void main(String args[]){
           EnterID eId= new EnterID();
       public EnterID(){
          handler=new ButtonHandler();
          Container c= getContentPane();
          c.setLayout(new GridLayout(3,1));
          button= new JButton("ok");
          button.addActionListener(handler);
          label1 = new JLabel(" CustomerID, Please");
          label2 = new JLabel("Label2");
          label3 = new JLabel();
          label3.setLayout(new GridLayout(1,1));
          label3.add(button);
          label2.setLayout(new GridLayout(1,1));
          aString = "Enter Id Here";
          tF1 = new JTextField(aString);
          label2.add(tF1);
          c.add(label1);
          c.add(label2);         
          c.add(label3);            
          setSize(150,100);
          setVisible(true);     
       private class ButtonHandler implements ActionListener{
         public void actionPerformed(ActionEvent event){
             tF1Value=tF1.getText();
            //   CheckData cData = new CheckData();
             //  aInteger = Integer.valueOf(tF1Value);      
             if(tF1Value.equals(aString)){
              JOptionPane.showMessageDialog(null,"You didn't type value into box");
              setVisible(false); 
            else {
                DeleteC dC= new DeleteC();
                dC.getData(tF1Value);
                setVisible(false); 
    }

    You may have working code now, but the code you posted is horrible and I'm going to tell you a much much much better approach for the JDBC part. (You should probably isolate your database code from your user interface code as well, but I'm skipping over that structural problem...)
    Do this instead:
        public void getData(String a){
            PreparedStatement p;
            String strQuery = "select count(*) the_count from customer where id = ?";
            try {   
             //create a prepared statement object to execute sql statements, it's better, faster, safer
             p = c.prepareStatement(strQuery);
                // bind the parameter value to the "?"
                p.setInt(1, Integer.parseInt(a) );
                //execute the query
                ResultSet rs = p.executeQuery( );
                // if the query doesn't throw an exception, it will have exactly one row
                rs.next();
                System.out.println("i am testing");
                if (rs.getInt("the_count") > 0 ) {
                // it's there, do what you need to...
             else
                  JOptionPane.showMessageDialog(null,"I could not find the value");
            catch (SQLException e) {
                 // JOptionPane.showMessageDialog(null,"You may enter wrong id");
                 // if you get an exception, something is really wrong, and it's NOT user error
            // always, always, ALWAYS close JDBC resources in a finally block
            finally
                p.close();
        }First, this is simpler and easier to read.
    Second, this retrieves just the needed information, whether or not the id is in the database. Your way will get much much slower as more data goes into the database. My way, if there is an index on the id column, more data doesn;t slow it down very much.
    I've also left some important points in comments.
    No guarantees that there isn't a dumb typo in there; I didn't actually compile it, much less test it. It's at least close though...

Maybe you are looking for

  • Why I have to rebote my airport5 base station each time I whant connect my iphone 5 or my new ipad

    I install a new airport extreme station 5 to replace my old airport base. Now I have to reboot the base each time I whant to connect my ipad or my iphone 5. what happen? I reintall my old airport base and all work fine with the old base. Somebody can

  • Dreamweaver cc 2014 crush on sturtup

    after fresh install. all other apps work fine as well as cs6 master collection. I've also updated the graphic card driver. any idea?

  • Edit in Progress how do I get out or know when it is finished??

    I have just read a plea from some-one which sounds exactly like my problem.  I could never get on with Photoshop Elements 8 so I thought that when version 11 came out it would be simpler...not to me I still have problems with the edit in progress...h

  • Help on Cdparanoia and Rubyripper error

    Hi, My favorite ripper is ruby ripper. I just got my new cd rom drive and I have been having troubles getting it to work properly. The problem is either with my configuration or with cdparanoia. Rrip tells me that cdparanoia isn't outputting wave fil

  • %escapeParams% in webutiljini.htm - do we need it?

    We have recently upgraded to Webutil 1.0.5. In doing this we replaced our webutiljini.htm file with the new version which included some additional server arguments: <PARAM NAME="serverArgs" VALUE="%escapeParams% module=%form% userid=%userid% sso_user