Copy selected PDF files from ASP page into clipboard & paste it in outlook. How?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tabonni

    Copy selected PDF files from ASP page into clipboard & paste it in outlook. How?

    Hi all

    I want to create an ASP page, which can copy the real PDF files into
    the clipboard and then the user can paste it in Outlook message as
    attachments(it' s like inserting attachments)

    My idea is: When user checked the checkboxes for the requested PDF
    files from ASP page and press the "Add To Clipboard" button, all
    requested PDF files will be copied into clipboard. Then, the user open
    MS outlook message and right click -> Paste all PDF files as
    attachments.

    But, my code is just can copy the filepaths into clipboard not the
    REAL PDF FILES. How can I copy the REAL PDF FILES?

    Here is my code:

    <html>
    <head>
    <title></title>
    <script type="text/javascript">
    function checks() {
    var form = document.form1;
    var myFiles = "";

    for (var i=0; i<form.files.le ngth; i++) {
    if (form.files[i].checked) {
    myFiles +=form.files[i].value;
    }
    }
    alert("Clipboar d Data =\n" + myFiles);
    window.clipboar dData.setData(" Text", myFiles)
    }
    </script>
    </head>
    <body>
    <form name="form1">
    <br><input type="checkbox" name="files" value="c:\Temp\ file1.pdf">
    file1
    <br><input type="checkbox" name="files" value="c:\Temp\ file2.pdf>
    file2
    <br><input type="checkbox" name="files" value="c:\Temp\ file3.pdf">
    file3
    <br><input type="button" value="Add To Clipboard" onclick="checks ()">
    </form>
    </body>
    </html>

    Thanks
  • Jeff Cochran

    #2
    Re: Copy selected PDF files from ASP page into clipboard &amp; paste it in outlook. How?

    On 5 Sep 2004 03:15:07 -0700, tabonni@yahoo.c om (tabonni) wrote:
    [color=blue]
    >I want to create an ASP page, which can copy the real PDF files into
    >the clipboard and then the user can paste it in Outlook message as
    >attachments(it 's like inserting attachments)[/color]

    ASP is server side, your clipboard is client-side. It can't be done.
    Try a client-side techniology group and you may find a method to work
    for you.

    Jeff

    Comment

    Working...