Need to send results to Word or Excel

The following code is generated by macromedia captivate to send Quiz results via e-mail. Unfortunatly security issues make the transfer of data from the script to the e-mail very problematic. In fact it usually fails. Is there a way to send the results to MS Word, Excel or even as a txt file. Can anyone suggest the code to do this?
<!-- saved from url=(0013)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test quiz</title>
<script type="text/javascript">
<!-- Begin
var gstrEmailTo = "";
var gstrEmailSubject = "";
var gstrEmailBody = "";
var myVar = 0;
function appendEmailBody(strBody)
     var temp_str = strBody;
     while(temp_str.indexOf("|") > -1)
          temp_str = temp_str.substr(0,temp_str.indexOf("|")) + "\r" + temp_str.substr(temp_str.indexOf("|") + 1)
     gstrEmailBody += temp_str + "\r";
function sendMail()
     document.emailForm.action = 'mailto:' + gstrEmailTo + '?subject=' + gstrEmailSubject
     document.emailForm.elements["Results"].value = "\r" + gstrEmailBody;
     document.emailForm.submit();
     alert("data from Flash:"+gstrEmailBody);
     alert("data sent:"+document.emailForm.elements["Results"].value);
function padMail(strAddress, strSubject, strBody)
     gstrEmailTo = strAddress;
     gstrEmailSubject = strSubject;
     var temp_str = strBody;
     while(temp_str.indexOf("|") > -1)
          temp_str = temp_str.substr(0,temp_str.indexOf("|")) + "\r" + temp_str.substr(temp_str.indexOf("|") + 1)
     gstrEmailBody = temp_str + "\r";
// End -->
</script>
<form name="emailForm" action = "" method="POST" enctype="text/plain">
<input name="Results" type="hidden">
</form>
</head>
<body>
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="640" height="480" ID="Captivate1">
<param name="movie" value="test quiz.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="loop" value="0">
<embed src="test quiz.swf" width="640" height="480" loop="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>
</object>
</center>
</body>
</html>

Looks like Javascript to me. And Javascript isn't allowed to write to files in the client's file system. Word or Excel or text or otherwise. This is also a security feature. If you want something to work securely and reliably, your server is the place for it to happen. You can have Javascript send a request to your server; check out "AJAX" for doing that as a way of life.

Similar Messages

  • To switch to OS Xlion need to back up my word documents, excel, music, photos, etc????? and would have to reinstall applications, iphoto, imovie, garageBand??????

    1. to switch to OS Xlion need to back up my word documents, excel, music, photos, etc?????
    2. and would have to reinstall applications, iphoto, imovie, garageBand??????
    i am sorry, i am new to mac plis

    I would certainly back up everything to an external drive, preferable a bootable clone using CarbonCopyCloner or SuperDuper! before installing Lion.
    You shouldn't have to reinstall yopur apps though.
    Regards,
    Colin R.

  • Need to send ALV Report as an Excel sheet via Email

    Well , I need to Email an ALV Report as an Excel Sheet using my program. What do I need to do and how?
    Answers will be rewarded with points.
    Thanks

    Hi Manu,
    You can copy and paste the following codes and try to execute..
    Hope this will help you..
    note: dont forget to change 'SAPUSER' to your SAP user id.
    REPORT  yhn_test8                               .
    TYPE-POOLS: slis, slist, truxs.
    DATA t5         LIKE t005t OCCURS 0 WITH HEADER LINE.
    DATA fcat       TYPE slis_t_fieldcat_alv.
    DATA listobject LIKE abaplist OCCURS 0 WITH HEADER LINE.
    DATA stack      TYPE slist_listlevel_stack WITH HEADER LINE.
    DATA ttxt       LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    PARAMETER p_alv   RADIOBUTTON GROUP a.
    PARAMETER p_excel RADIOBUTTON GROUP a.
    START-OF-SELECTION.
      SELECT * INTO TABLE t5
               FROM t005t
              WHERE spras = sy-langu.
      CLEAR : fcat, fcat[].
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'T005T'
        CHANGING
          ct_fieldcat            = fcat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF p_alv = 'X'.
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            it_fieldcat   = fcat
          TABLES
            t_outtab      = t5
          EXCEPTIONS
            program_error = 1
            OTHERS        = 2.
        IF sy-subrc <> 0.
        ENDIF.
      ELSEIF p_excel = 'X'.
        CALL FUNCTION 'LIST_FREE_MEMORY'.
        SUBMIT yhn_test8 EXPORTING LIST TO MEMORY AND RETURN.
        CALL FUNCTION 'LIST_FROM_MEMORY'
          TABLES
            listobject = listobject
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
        IF sy-subrc = 0.
        Generate LIST for excel file
          CALL FUNCTION 'LIST_TO_TXT'
            TABLES
              listtxt            = ttxt
              listobject         = listobject
            EXCEPTIONS
              empty_list         = 1
              list_index_invalid = 2
              OTHERS             = 3.
          IF sy-subrc = 0.
            LOOP AT ttxt.
              REPLACE ALL OCCURRENCES OF '|' IN ttxt-line
                      WITH cl_abap_char_utilities=>horizontal_tab.
              MODIFY ttxt.
            ENDLOOP.
            PERFORM send_email.
          ENDIF.
        ENDIF.
      ENDIF.
    *&      Form  send_email
    FORM send_email .
      DATA docs LIKE docs OCCURS 0 WITH HEADER LINE.
      DATA excelsize TYPE i.
      DATA excel LIKE solisti1   OCCURS 0 WITH HEADER LINE.
      DATA doc LIKE sodocchgi1.
      DATA excelln TYPE i.
      DATA int_objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
      DATA int_objhead LIKE solisti1   OCCURS 2 WITH HEADER LINE.
      DATA int_objtext LIKE solisti1   OCCURS 0 WITH HEADER LINE.
      DATA int_reclist LIKE somlreci1  OCCURS 1 WITH HEADER LINE.
      DATA bodyln LIKE sy-tabix.
      DATA output_data TYPE ssfcrescl.
      excel[] = ttxt[].
    excel table sizes
      DESCRIBE TABLE excel LINES excelln.
    Body Email
      int_objtext-line = 'Test Body'.
      APPEND int_objtext.
      DESCRIBE TABLE int_objtext LINES bodyln.
      READ     TABLE int_objtext INDEX bodyln.
      CLEAR doc.
      doc-doc_size   = ( bodyln - 1 ) * 255 + STRLEN( int_objtext ).
      doc-obj_name   = ' '.
      doc-sensitivty = 'P'.
      doc-proc_syst  = sy-sysid.
      doc-proc_clint = sy-mandt.
      CLEAR: int_objpack, int_objpack[].
      int_objpack-transf_bin = ' '.
      int_objpack-head_start = 1.
      int_objpack-head_num   = 0.
      int_objpack-body_start = 1.
      int_objpack-body_num   = bodyln.
      int_objpack-doc_type   = 'RAW'.
      int_objpack-obj_descr  = 'Test'.
      APPEND int_objpack.
      CLEAR: int_objhead, int_objhead[].
      int_objhead            = 'Attachment'.
      APPEND int_objhead.
      int_objpack-transf_bin = 'X'.
      int_objpack-head_start = 1.
      int_objpack-head_num   = 0.
      int_objpack-body_start = 1.
      int_objpack-body_num   = excelln.
      int_objpack-doc_size   = excelsize.
      int_objpack-doc_type   = 'XLS'.
      int_objpack-obj_name   = 'excel'.
      int_objpack-obj_descr  = 'test.xls'. "File name
      APPEND int_objpack.
      Set Receiver
      int_reclist-receiver   = 'SAPUSER'.
      int_reclist-rec_type   = 'B'.
      int_reclist-notif_del  = 'X'.
      int_reclist-notif_read = 'X'.
      int_reclist-notif_ndel = 'X'.
      int_reclist-express    = 'X'.
      APPEND int_reclist.
      doc-obj_descr = 'Report in Excel'.
      Sending Email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = int_objpack
          object_header              = int_objhead
          contents_bin               = excel
          contents_txt               = int_objtext   "Body
          receivers                  = int_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    ENDFORM.                    " send_email

  • HT5361 Cannot send attachments from word or excel

    Trying to share a file as Attachment within Excel or Word I receive an error
    "Cannot send attachment, make sure your E-Mail application is configured correctly"
    Tried everything!

    Try control - clicking on the document and chose Compress. This will create a zip file without damaging the original. See if you can attach the zip file.

  • How to send results to actionscript using java

    Hi,
    I do RPC using HttpService.
    In my situation, I need to send results from Java code to
    Flex Action script. I have defined a Java Servlet receiving data
    from Flex application, then it processes with the data, finally the
    Servlet is supposed to send some feedbacks to the client(Flex).
    My question is that how can I define codes in doPost() method
    that the following function will get "result" from the Java side.
    public static function httpResult(event:ResultEvent):void
    var result:Object = event.result;
    //Do something with the result.
    if (result.toString() == "success")
    resultMessage.text = "Login Success";
    resultMessage.text = "Invalid User";
    }

    Hi,
    Try this: If you are sending a simple text as "sucess" or
    "error" after doing some process in the servlet..
    set your content type to "text/plain" and simply
    println(<data to be sent>);
    In the flex application, get the result text that the servlet
    send using:
    resultString = String(httpUrl.lastResult);
    where httpUrl is the id of the HTTPService. Now you can
    compare what the servlet send by:
    if(resultString=="sucess") {
    Hope this solves your problem :)
    Regards,
    -- Abdel Olakara
    http://olakara.googlepages.com
    http://technopaper.blogspot.com

  • How to send results to actionscript using java via HttpService

    Hi,
    I do RPC using HttpService.
    In my situation, I need to send results from Java code to
    Flex Action script. I have defined a Java Servlet receiving data
    from Flex application, then it processes with the data, finally the
    Servlet is supposed to send some feedbacks to the client(Flex).
    My question is that how can I define codes in doPost() method
    that the following function will get "result" from the Java side.
    public static function httpResult(event:ResultEvent):void
    var result:Object = event.result;
    //Do something with the result.
    if (result.toString() == "success")
    resultMessage.text = "Login Success";
    resultMessage.text = "Invalid User";
    }

    I advise having your servlet build an xml string, maybe put a
    status attribute in the root tag, like this:
    <myroot status="success">
    <mytext>Some text</mytext>
    </myroot>
    and return that to the calling Flex client. XML is easier to
    work with than Object. On the HTTPService tag, set
    resultFormat="e4x", and it will return plain XML.
    then in the handler, do:
    var xmlResult:XML = XML(event.result); //this will already be
    the myroot node
    //Do something with the result.
    if (xmlResult.@status== "success") //reads the status
    attribute
    resultMessage.text = xmlResult.mytext.text(); //get the
    value of themytext text() node
    resultMessage.text = "Error";
    Tracy

  • Have Windows XP and Adobe 9 Reader and need to send a series of large documents to clients as a matter of urgency     When I convert 10 pages a MS-Word file to Pdf this results in file of 6.7 MB which can't be emailed.     Do I combine them and then copy

    I have Windows XP and Adobe 9 Reader and need to send a series of large documents to clients as a matter of urgency When I convert 10 pages a MS-Word file to Pdf this results in file of 6.7 MB which can't be emailed.  Do I combine them and then copy to JPEG 2000 or do I have to save each page separately which is very time consuming Please advise me how to reduce the size and send 10 pages plus quickly by Adobe without the huge hassles I am enduring

    What kind of software do you use for the conversion to pdf? Adobe Reader can't create pdf files.

  • When I convert my PDF file to either Word or Excel, the result is garbage and not usable.  What am I doing wrong?

    I have converted two PDF files to both Word and Excel.  The result is garbage and unreadable.  I want to edit the content of the PDF file and thought that this was the solution.  What am I doing wrong?

    It's probably not something wrong you're doing, just the way the file was
    created. You can look under File - Properties - Description and see what
    application and PDF producer were used to generate it. My guess is it was
    not produced using Adobe software.
    At any rate, there's no a lot you can do about it, I'm afraid. You can try
    re-frying it, ie sending it to the PDF Printer to produce a new copy, and
    then exporting that to Word/Excel, but that's about it.

  • New to PDF Portfolios - Need to Link between PDF, Word & Excel Docs

    Hello All,
         Thanks in advance for your help.  I'm new to the Adobe X Pro & making portfolios.  I have figured out how to create a portfolio.  My portfolio has a main pdf document and several folders with pdf, word & excel files in them.  What I’m trying to do is link from my main document (pdf file) to the other files (word, excel & pdf) that I’ve added to the portfolio.  I’ve tried linking to a pdf file and a thumbnail of the word doc (because I did find that I can’t link to the actual word or excel doc).  When I create & test the link (for both the pdf file & the thumbnail of the word doc) it is there; I can click the link I created and it will go to the word doc.  If I close the portfolio & reopen it the link to the pdf file is there, but the link to the word doc isn’t there anymore.  That link now goes to the main pdf file and not the word thumbnail or even the folder where the word doc is saved.  Any ideas on what to do?  Thanks.

    As Dave has noted you can not do this.
    Acrobat/Reader would need to know what program to use to read the data in the document and since there can be many different programs that could read your document,  Acrobat/Reader would need to know exactly which program to use on one's system. You might only have MS Office but others might have both MS Office and OpenOffice.org and might prefer to use OpenOffice.org unless there is a feature that is only available to MS Office. Yes it is possible to create a program that can be configured to use specific helper programs, but it can have a real impact on system efficiency. It is easy enough to download or extract the non-PDF document and then use your program of choice. Just look to MS Outlook for a program that can not always open an attachment, especially PDF files.

  • If you need to send more than one document via email to a recipient with a PC, how do you convert them to a Word or PDF before sending them in one email?

    When trying to send an email to a PC user and need to send multiple documents, in the old version of iPages, you could save the document as a Word or PDF file then attach them to the email.  I don't see how to do this with the new version.  Therefore, the only way I can see to accomplish this task is to go to each document and send them individually in another version.  Otherwise, the PC user will not be able to view the documents - correct.  There must be a way to convert and save the documents like before so numerous documents can be sent at once.  Please help!
    Melody

    What fruhulda said. In addition, in the Mail composition window, I recommend that you select the paperclip icon from the Toolbar, and enable Send Windows-Friendly Attachments.
    You can also select multiple files in the Finder and drag them onto the composition window. In my experience, the documents resist an iconic state, so right-click on just one, and choose View as Icon from the contextual menu. This will transform all attached documents into icons.
    If you want to send just one document from within Pages v5, use the Share icon in the Toolbar and select Send a Copy > Email. You can then choose PDF (and its image quality), or Word (.docx default, or .doc) document formats that will be attached as an icon in a new pop-up Email composition window.

  • I'M coming from the terrible windows world and I feel concerned about sending emails with attachementes like " pages or numbers" to my contacts since most of them use windowds " Word or Excell". What should I do ?

    In my new iPad2 I have no problem with my incoming mail because Ipad2 can read Windows attachements like "word or excell" . The problem I confront is if I want to send a message with an attachement from itunes apps like "pages or numbers" , Will my contacts (using most of them Windows based docs.) be able to open and read them? As I can not use any non Apple  docs for a new doc.,What can I do?Thanks in advance

    Have you taken a look at iWork.com? It is a convenient place for sharing documents and the nice thing is the user you share the document with can download it as a word file. Formatting issues are a possibility with with text only docs that isn't so much an issue. Also consider QuickOffice or Docs2Go which are both Office compatible apps.

  • What do I need to do to open Office (word AND excel) documents, PowerPC issues etc. They don't open on iWork '08. Office 2011? Please advise :-)

    What do I need to do to open Office 2004 (word AND excel) documents? PowerPC issues etc. They don't open on iWork '08. Happy to upgrade to iWork or Office just to be able to access my docs from Office 2004 again - please can someone advise? Cheers.

    Hi - thanks for this info. Actually I have downloaded a 30-day trial of MS Office for Mac 2011 and it reads/writes. But I was expecting that if I saved it again, either as xls oe xlsx, then I would be able to open the newly-saved document in iWorks '08. This is not the case, any ideas why? cheers, Matt.

  • Need to send a dashboard page as an excel file in an iBot

    Hi,
    Is it possible to send a whole dashboard page as an excel file in an iBot/agent?
    We're using OBIEE 11.1.1.5.0 and have a requirement where different users need to access the dashboard pages via excel. Most of the pages have multiple requests and some also have charts.
    The other alternative that we looked at is using the MSOffice plugin but even with that i'm only able to access the individual requests one at a time but not the dashboard page.
    Thanks!!

    I think I found a workaround that resolves our issue: I send the dashboard page as an html attachment in an iBot and then open it with excel once received (open with).
    Thanks for your replies..

  • I need to send a file that i have converted from pdf to word to my pc

    i need to send a file that i have converted from pdf to word to my pc

    Converted how?  If using ExportPDF, then you should be able to download it from acrobat.com by using your Adobe ID.

  • Installed Maverick - smart art no longer working on either Word or Excel Need Help

    Installed Maverick and found that on both Word and Excel the "Smart Art" no longer works.  I reinstlled software but that did not solve the problem.
    NEED HELP
    Thanks

    Your issue seems to be only with those two apps, first check to see if they are up-to-date and if you still have issues please post in the Office for Mac Product Forums

Maybe you are looking for

  • Remote Update Manager - Acrobat Pro

    Hello everyone, Please review this snippit from the Remote Update Manager (RUM) documentation. Note: Remote Update Manager is meant only for a subsection of Adobe Desktop products. It can not be used for browser plug-ins such as Flash Player and for

  • To access their payslips / monthly statement online

    Hi Experts, Pls provide me the inputs for the following 1) Should allow annuitants (retirees who get annuity payment) to access their payslips / monthly statement online 2) Should also allow them to update their bank and address information 3) Should

  • Iphone bought in europe and used in the states

    If I buy an iphone while I'm living in europe will I be able to take it with me to the states and buy a data plan and plug in an att sim? and if you guys don't know the answer does anyone know a contact point to have the question answered? It would s

  • ADF application portletization

    Hi, could you please help. I use jdev 10.1.3.2 and embebed preconfigured webcenter. 1. I wonder how to set mds settings in web.xml? 2. if anybody could give me example how to portletize ADF application to run on oracle portal 10.1.4 Here is result wh

  • White screen Curve 8900

    I am getting a white screen few times everyday and troubles restarting the bb. I have a BB Curve 8900 with version 5.0.0.900 Does anybody knows how to fix this? I read in some article that I should perform a clean reload of the BlackBerry, but I do n