Click here to Skip to main content
12,621,744 members (37,387 online)
Rate this:
 
Please Sign up or sign in to vote.
I have a web page with few buttons.

1. First thing i need to do is, on the click of the save button, clients screen need to saved as pdf and a auto download option has to be given to client, so that client can save the pdf file.

2. Next, on click of mail button client should be able to mail that pdf file. The mailing can be done in any way as mentioned below,
a. Automatically open the outlook with the pdf attachment.
b. Accept the recipients from the user and send mail directly to all of them with the pdf attachment.


Anyone having any idea related to this, Please help. It will be very useful for me.
Aleast any your inputs, how this can be achieved.


Current scenario,

I am having three buttons

<span>
           <input type="button" id="btnSave" value="Save" style="width: 75px; height: 21px" />
       </span>
       <span>
           <input type="button" id="btnPrint" value="Print" style="width: 75px; height: 21px"/>
       </span>
       <span>
           <input type="button" id="btnMail" value="Mail" style="width: 75px; height: 21px" />
       </span>


and created click event for them as below,

$("#btnPrint").click(function (e) {
    window.print();
});
 
$("#btnSave").click(function (e) {
    alert("btnSave clicked");
 
    $.ajax({
        url: 'Index/SavePage',
        success: function (result) {
 
        }
    });
});
 

$("#btnMail").click(function () {
    alert("btnMail click");
 
    $.ajax({
        url: 'Index/MailPage',
        success: function (result) {
            $("#divFileUpload").html(result);
        }
    });
});



Thanks in advance.
Posted 5-Aug-14 2:16am
_simi409
Updated 5-Aug-14 2:17am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 5 Aug 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100