Download the PDF Form as a attachment when button click in BSP application

Hi All,
I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
I have written this code:
data: pdf type fpformoutput-pdf.
< Logic for populate value to pdf field ....
.>
response->set_header_field(
                     name  = 'cache-control'
                     value = 'max-age=0' ).
  response->set_header_field(
                     name  = 'content-disposition'
                     value = 'attachment; filename=webforms.pdf' ).
  response->set_data( data   = pdf ).
Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
How can I resolve this problem ?
In the IE i need to change any settings ?
IE version = 7.0
Adobe reader = 9.0
I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
Regards,
Boopathi M

Hello Ravi,
Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
Best regards,
Thomas

Similar Messages

  • Can't download the .pdf form. Error comes up of "Acrobat could not save this ,pdf file. The file might be open in another app and cannot be overwritten."

    It was happening on the mac. Now it is happening on both a mac and pc.

    I read some other threads after posting this. Seems if you download the Adobe Forms Central App to your computer, you combat the problem. It is running much smoother now and allows me to save .pdfs to my mac no problem. I thought it was a problem with Acrobat but it turns out is is an issue with using the online program versus the App. I highly recommend the app.
    Thanks for responding though.

  • I just downloaded the new 4.0 an now when I click on the tab it won't even load up, it'll look like the page will show up but then it won't an the it'll look like I never even clicked on it. What is going on? Why won't firefox work?

    My firefox was working perfectly before when I had the 3.6 but now it just won't load up at ALL! I've dealt with it crashing on me while I was on the internet but I've never clicked on the tab OVER an OVER again an still not even having the home page show up on my screen. Its getting really frustrating and I now really wish I'd of just left my firefox the way it was. . .can you please help me??

    Please do the following.<br><br>
    #Use Internet Explorer 8 or 9 and go to [http://www.mozilla.com/en-US/firefox/fx/?ref=logo Download Firefox 4.0.1] Do not choose "Run" when you see the prompt, but instead choose "Save" and save the file to your desktop.<br><br>
    #Then go to Add/Remove Programs, scroll down to "Mozilla Firefox" and remove it, choosing to keep your bookmarks, customizations etc., (don't checkmark the box).<br><br>
    #Then reboot and delete the folder called "Mozilla Firefox" at this location: C:\Program Files\Mozilla Firefox<br><br>
    #Finally run the installation file you downloaded to the desktop earlier.<br><br>
    Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.<br><br>
    '''To reset your home page, do the following'''.<br><br>
    * Go to the site you want to set as your homepage.<br><br>
    * Click the orange Firefox button and go to '''Options '''| '''Options '''| '''General'''.<br><br>
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br><br>
    Here are a few tips to make FF4 look like the previous version in case you don't like the new design.<br><br>
    * Right click a blank part of the tab bar and click "Tabs on top" to remove the checkmark. Tabs will subsequently reappear below the search bar.<br><br>
    * Repeat the same steps, but click the top one called "Menu bar". This will reinstate the text links at the top.<br><br>
    * To rearrange the layout, repeat the same steps again and choose "Customize". A panel will open and while that remains onscreen, you can move elements like toolbars, buttons etc around and place them anywhere you wish. You can also drag anything you don't like into that panel and add anything you want by dragging it out of there.<br><br>
    * To replace the status bar at the foot of the page, install this add-on: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/<br><br>

  • I downloaded the newer version of firefox but when i click on icon to bring it up the older version appears and tells me i am using an old version Help please

    i want to know how to replace the newer version.

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com
    For the full system requirements see http://www.mozilla.com/en-US/firefox/system-requirements.html

  • Change the PDF form In HAP_DOCUMENT

    Hi Experts,
    1)I have a requirement wherein i need to change the pdf form that is generated when we click on download button in hap_document bsp application. I need to use the custom PDF form in place of the actual PDF form. How can i acheive this?
    2) In the layout, i want to replace some part of the screen with an interactive adobe form how to acieve this?
    Thanks and Regards,
      Madhu.

    This should not be handled by ABAP. If they were able to change it in the sales documents, they should be able to cancel the invoice in VF11 and create another one. That's the best practice.

  • How to email PDF form as an attachment?

    Hi All,
    I have developed online interactive form app(dynamic).
    When user clicks the submit button after entered the data,
    I want to email the PDF form as an attachment to some users.
    Could anyone please explain the steps or give me some sample code?
    Thanks
    Sundar

    I found this in one of the forums dont remember which, here is the code
      public boolean EmailForm( java.lang.String pernr, java.lang.String toEmail, java.lang.String fromEmail )
        //@@begin EmailForm()
    boolean flag = true;
       try {
        String host = "exchangerelay.yourserver.com";
        //    Get system properties
        Properties props = System.getProperties();
        //    Setup mail server
        props.put("mail.smtp.host", host);
        //    Get session
        Session session = Session.getDefaultInstance (props, null);
        //    Define message
        MimeMessage message = new MimeMessage(session);
        byte[] b = wdContext.currentContextElement().getPdfSource();  
       //Attachment
        ByteArrayInputStream ba = new ByteArrayInputStream(b);
        String filename ="Filename.pdf";
        //This will create a file on the server under folder "server0"
       File file = new File(filename);  
        FileOutputStream fos = new FileOutputStream(file);
        int i = 0;
        for (i = 0; i < b.length; i++) {
         fos.write(b<i>);
        fos.close();  
        DataSource source = new FileDataSource(file);
        BodyPart messageBodyPart = new MimeBodyPart();
        message.setFrom(new InternetAddress(fromEmail));
        message.addRecipient(
         Message.RecipientType.TO,
         new InternetAddress(toEmail));
        message.setSubject ("Subject : ");
        message.setText(
         "This is a confirmation receipt.");
        Multipart multipart = new MimeMultipart();
        messageBodyPart.setDataHandler(new DataHandler(source));
        messageBodyPart.setHeader("Content-Type", "application/pdf");
        messageBodyPart.setFileName(filename);
        multipart.addBodyPart(messageBodyPart);
        message.setContent(multipart);
        Transport transport = session.getTransport("smtp");
        transport.connect(host, "username", "password");
        transport.sendMessage(message, message.getAllRecipients());
        transport.close();  
        flag = true;
        //delete file if you want to here
        file.delete();
       } catch (FileNotFoundException e) {
        flag = false;
        wdComponentAPI.getMessageManager().reportException(
         "FileNotFoundException : " + e.getMessage(),
         false);
       } catch (IOException e) {
        flag = false;
        wdComponentAPI.getMessageManager ().reportException(
         "IOException : " + e.getMessage(),
         false);
       } catch (MessagingException e) {
        flag = false;
        wdComponentAPI.getMessageManager().reportException(
         "MessagingException : " + e.getMessage(),
         false);
       return flag;
        //@@end
    thanks,
    Sanketh

  • When i have downloaded a pdf form i cannot type in the fields marked

    when i have downloaded a pdf form i  cannot type in the fields marked

    Perhaps the fields aren't fillable -- are you seeing a purple message bar across the top asking you fill out the form? Here is a quick video that explains the messages you should be seeing in your form -  Quick Tip: How to enter form data using Adobe Reader.

  • Can the individual form response be sent via e-mail to us in the PDF form format (not the raw output we see currently when using e-mail notifcation) each time a user submits a reponse?

    Hi, we basically have an on-line job application that we need to be sent to us via e-mail notification every time a user submits a response, not with the raw data output from the form fields like the current e-mail notification setting allows, but as an actual PDF attachment that mirrors the format of the on-line form, with the user response data in it. We need this to be automated and sent to a central HR e-mail to distro to others. It would be essentially the same thing as a user downloading a PDF form, filling it out, then e-mailing it back to us, but using the submit options via the Form Central server instead. Is this even possible and, if so, is there any documentation on it? I have not found anything clear in searching for this same topic.

    No this is not possible within Formscentral. You could export a PDF without a submit button (an option when saving your form as PDF) and then in Acrobat add a submit button to your form and have it automatically sent to the email of your choice. This kind of workflow falls outside the scope of Formscentral.
    Andrew

  • Can I edit the email created to send a PDF form back to me when a user clicks on Submit?

         I created several PDF fillable forms for our users to request services and send back data needed to deliver those services. They are simple forms, and users will click on Submit to return to a mailto: address.
    My question is about the email message that is auto-created when the user clicks on Submit. I can't find any config window to be able to edit the message in the body of the email. The message reads:
    Form Returned: 2014PrintingRequestForm.pdf
    The attached file is the filled-out form. Please open it to review the data.
    Is there any way to edit this message?

    majende,
    Adobe Reader for iOS does support a Submit button.
    (a) Button action to submit an entire PDF document via email
    (b) JavaScript submitForm to Adobe FormsCentral
    Do you use the desktop version of Adobe Acrobat to create a PDF form?
    For option (a)
    Add the "Submit a form" action to your Submit button.
    Enter "mailto:" (including a colon) followed by email recipient(s).  Please add a comma between two email addresses.
    Example: [email protected], [email protected]
    Select "PDF The complete document".
    This particular type of PDF form will work with Adobe Reader desktop and mobile products (including Adobe Reader for iOS and Android).
    In Adobe Reader for iOS, a user can do the following steps to submit the particular type of PDF form.
    Fill out the PDF form.
    Tap the Submit button in the PDF form.
    Select "Share Original Document" or "Share Flattened Copy" from the Share File dialog.
    Adobe Reader for iOS will automatically fill in the email address(es) that you specified when you created the PDF form.
    Tap the Send button in the upper right corner.
    Adobe Reader for iOS will send the PDF form as an email attachment via Apple Mail (the default mail app for iOS).
    Please let us know if you have additional questions.

  • Attach the whole form with XML data when Emailed

    Hi all
    I am new to Adobe Livecycle product. I have been using IBM workplace forms and now want to migrate to Adobe Forms. I want the whole completed PDF form to be attached along with the xml data in it when someone clicks the email button and email is sent. Currently when I am able to attach only the data part to the email.
    Please advice on this...
    Thanks
    Ullas

    The default email submit button is set up to send just the data/ If you drop a button object onto the form, set it to be a submit button, then use the mailto protocol to setup who you want to send it to. One of the button parameters allows you to choose what you want to submit. in your case choose PDF.

  • I just downloaded a pdf form and need to open it and fill in blanks but can't figure ohow to find the file

    I just downloaded a pdf form and need to open it and fill in blanks but how can I find the file in Adobe so I can open it??
    Thank you in advance.

    Hi Steve Odem,
    If you downloaded the file from a web page, it most likely went into a Downloads folder on your computer. If you don't know where that folder is, the easiest thing to do may be to use the Find feature of Mac OS or Windows (whichever you use), to search for the PDF form. Once you know where the file ended up, you can easily navigate to that folder in Reader. (Choose File > Open in Reader, then navigate to the file in the Open dialog box.)
    Please let us know if you have additional questions.
    Best,
    Sara

  • Regarding UCF_AcroForm error displayed when trying to open the pdf form

    Hi,
         Iam receiving the pop up when trying to open the pdf form.The Error is Server Error Class: UCF_AcroForm Method: Error.The Error displayed in some system and in some other system the form is working fine.The Form is created using the Designer 8.0.The form is working fine in reader 8.0.Is there any problem in the reader version.Is there any solution for this problem please provide.
    Thanks and Regards,
    SatheshKumar R

    Sathesh,
    Similar issue has been reported at SDN so searching would have helped you. See below threads for solutions:-
    UCF_AcroForm error
    MSS UCF_AcroForm error displayed when trying to display form in PCR
    Chintan

  • Attachments in the PDF form

    I am saving my form as a PDF.  In the form I have an attachment field included.  However when I try to use the attachment "Select File" I am getting an error. saying the file attachment in not supported in the formPDF.  Is there a way to do this with the PDF form?

    PDF forms currently do not support attachments. You would have to distribute the form as a web form to get that functionality.
    Randy

  • How can i by pass the IE SP2 information popup while downloading the pdf

    Hello Guys,
    I am downloading pdf from my web application (Weblogic 8.2). it work perfectly fine on my local box which uses http protocol. But when we are deploying the application on UAT environment which have other component integrated to it it pop up a annoying information pop up. As a result of which user needs to perform a one more extra step to download the pdf.
    I looked at many solution given on the MS site to change the setting of the IE but we want to do something from the server side so that we dont have to change the user setting manually which will require the support from our side.
    Please help !!!!!
    Code for download
    try{
                   outputStream = res.getOutputStream();
    //               byte[]bytes = toByteArray(tempFile);
                   byte[]bytes = getDocServer().convert(files);
                   res.reset();
                   res.setContentLength(bytes.length);          
                   res.setHeader("Content-disposition", "attachment;filename=\"" + "please_name_your_file.pdf\"");
                   res.setContentType("application/pdf");
                   res.setHeader("pragma", "public");
                   res.setHeader("Cache-Control", "public");
                   res.getOutputStream().write(bytes);     
                   res.getOutputStream().flush();
    /*               res.setContentType(SaveToFileConstant.SAVE_TO_FILE_PDF_CONTENT_TYPE);
                   res.setContentLength(bytes.length);
                   res.setHeader("Content-Disposition", "attachment;filename=\"" + "please_name_your_file.pdf\"");
                   outputStream.write(bytes);
                   outputStream.flush();
    */          }catch(Exception e){
                   throw new RuntimeException(e);
              }finally{
                 if(outputStream !=null) outputStream.close();
                 List tempList  = new ArrayList();
    //             System.out.println("Inside Finally ******* StreamToPDFFile : File Name ******"+tempFileName);
                 tempList.add(tempFileName);
                 deleteAllTempFiles(tempList);
    ~Manoj

    mkumar1980 wrote:
    Hi,
    Thanks for the quick response. I will see how can i use the InputStream as we have utility which create the pdf doc on the fly and returns the byte stream.
    But you are write if the size is large then i will eat up the memory.Huh, write? What are you saying?
    Anyway, each byte in Java costs at least one byte of memory. So if the PDF file is for instance 100MB, then 100MB of memory will be eaten. Imagine what happens if only 10 users downloads it concurrently while your server has only 1GB assigned to JVM.
    I am getting information bar (not pop up) just below the address bar. It says following
    *" To help protect your security, Internet Explorer blocked this site from downloading files to your computer. Click here to see more options...."*Oh, that thing. Are you sending the file to the client unexpectedly? Are you doing this stuff in a JSP file instead of a Servlet?

  • Is there a way to have the email notifications include the PDF form?

    Is there a way to have the email notifications include the PDF form?

    Very Disappointing. You fill out a Form and you can't get the Form via E-Mail :-(
    Only the information you filled in in the empty fields.
    I designed a contract formular for customers.
    The customer fills out the PDF in the web form.
    Via E-Mail notification i get the infos the client entered in the form.
    But not the PDF itself.
    So i have to enter the web frontend search the data and download the filled in form from there.
    After downloading the form i have to e-mail the form to the customer and the mailing list by hand ...
    I would think that it is an obvious feature that you can e-mail copy of what is entered (together with the text of the formular!) as an pdf attachement and not only the entered fields ...
    Maybe someon can check this feature request. (Attach entered form as PDF to the notification E-Mail).
    It would also be great if you would have the possibility to enter an E-Mail Adress for CC insinde the formular :-)

Maybe you are looking for

  • Connecting BB pearl to macbook via bluetooth?

    ive been trying to get my blackberry pearl to sync to my macbook via bluetooth but i havent been able to. does anyone know how to resolve this issue? PocketMac also seems to freeze a lot also whenever i try to open the application.

  • Instantiation of class in BPEL process

    I have a very Strange problem, in my BPEL process I have used java embed Activity. on that activity if I am using Task class. then I am not able to deploy my process. its giving me following message. when I remove that line then I am able to deploy t

  • How to set OEM alerts for concurrent programs

    Hi, We are using OEM 10g gridcontrol for monitoring. i am new to OEM, now i have a task to set up alerts for concurrent programs(which are running more than 30mins). can any one provide step by step process to setup alerts. Thanks,

  • ISE Support IPV6 Dynamic ACLs

    Does ISE support IPv6 in its dynamic ACLs? We are a dual stack IPv6 site at present. We could leave the guest LAN on an IPv4 only site for the moment, but we intend to go forward and support IPv6 fully. If we wanted to apply DACLs to a port that had

  • Skype doesn't present option for video calls

    I recently upgraded from Windows XP to 7. Video call is not shown as an option for a call. Video and audio test fine. Any ideas? Thanks, ButchD