Click here to Skip to main content
13,558,244 members
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

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

and created click event for them as below,

$("#btnPrint").click(function (e) {

$("#btnSave").click(function (e) {
    alert("btnSave clicked");

        url: 'Index/SavePage',
        success: function (result) {


$("#btnMail").click(function () {
    alert("btnMail click");

        url: 'Index/MailPage',
        success: function (result) {

Thanks in advance.
Posted 5-Aug-14 1:16am
Updated 5-Aug-14 1:17am

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 |
Web01-2016 | 2.8.180515.1 | Last Updated 5 Aug 2014
Copyright © CodeProject, 1999-2018
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