Corrupt workbook when sent through email

Hi,
I have setup a precalculation server on a Windows XPSP2 PC, installed Excel 2003SP3 and SAPGUI 640p24.
When calculating a workbook, it's created correctly (as I can open it on the client in the C:\Windows\temp folder), but the sent zip file with the workbook is corrupt.
The tracelog file shows the following entries at the end of the distribution:
BExCompression.SupportsCompression: Compression NOT supported
File or assembly name vjslib, or one of its dependencies, was not found.
BExConnect.Closed
When i display logs in transaction RSPRECADMIN I can see a lot entries with the following message:
DataTable iServerProperties  DataTable iVarTable) Boolean[] CopyBack)  String[] namedParameters)
and also:
Unresolved exception occurred on the precalculation server
I don't find any obvious problems in the BexPreCalcLog.
I have setup everything according to to the u201CHow Tou2026Troubleshoot Information Broadcasting (BEx Workbooks)u201D pdf.
Additional Info:
BI_CONT - 703 - 0008

Thanks for your quick response WernerS.
I have verified and reinstalled both J# 2.0 and .NET 2.0
However, when trying to execute the workbook now, I can see that on the remotePC where the PreCalc server is installed, Excel uses up almost 80mb RAM before excel returns an error in a popup saying:
Not enough system resources to display completely
I also check the tracefiles and see this error in them:
BExConnect.Trace3: 0
BExExcelTraceListener.AddTraceListener: Added a tracelistener for Version: 7005.5.578
BExConnect.constructor2: 140,471447
BExMenu.CreateSubMenu1: 0
BExMenu.CreateSubMenu2: 0.156253
BExMenu.AdjustToolbarsSubMenu: lApplication is nothing
BExMenu.AdjustToolbarsSubMenu: lApplication is nothing
ListSeparator: ,
ExcelVersion: 11.0
BExAddin, Version=7000.0.0.0, Culture=neutral, PublicKeyToken=null
BExConnect.New: There was already a Connect Object.
BExConnect.constructor2: 0
GetSystemInformation
SUNI Const: 0
CommunicationFactory.GetSystemInformation (Setting Conn 1)): 0
CommunicationFactory.GetSystemInformation (Setting Conn 2)): 0
CommunicationFactory.GetSystemInformation (Setting init Propties)): 0
CommunicationFactory.GetSystemInformation (SUNI.FUNCTION_EXISTS)): 0.312506
RSR_XLS_RFCtrc: 13.594011
CommunicationFactory.GetSystemInformation (RSR_XLS_NET_INTERFACE)): 14.531529
CommunicationFactory.GetSystemInformation (XML Stuff)): 15.6253
CommunicationFactory.GetSystemInformation (Prop Stuff)): 15.6253
CommunicationFactory.GetSystemInformation (Version)): 15.6253
CommunicationFactory.ObtainSystemInformationandCheckVersion (GetSysInfo)): 15.937806
CommunicationFactory.ObtainSystemInformationandCheckVersion (CheckAfterLogin)): 0.156253
CommunicationFactory.LogOnUsingComConnection (ObtainSystemInfo)): 16.094059
CommunicationFactory.LogOnUsingComConnection (MainConnectionChangedEvent)): 1.406277
BExExcelApplication.UnhookDesignMode: Hooked=False
BExItems.CreateFromDeSer: Trying to deserialize the Items...
-------------------6/9/2008 2:35:31 PM-------------------
System.Runtime.InteropServices.COMException (0x800A03EC): Unable to set the Calculation property of the Application class
   at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateSet(Object o, Type& objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, CallType UseCallType)
   at Microsoft.VisualBasic.CompilerServices.LateBinding.LateSetComplex(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, Boolean RValueBase)
   at com.sap.bi.et.analyzer.addin.BExExcelApplication.SetDirty()
   at com.sap.bi.et.analyzer.addin.BExConnect.OnOpen(Object iWorkbook)
Unable to set the Calculation property of the Application class
   at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateSet(Object o, Type& objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, CallType UseCallType)
   at Microsoft.VisualBasic.CompilerServices.LateBinding.LateSetComplex(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, Boolean RValueBase)
   at com.sap.bi.et.analyzer.addin.BExExcelApplication.SetDirty()
   at com.sap.bi.et.analyzer.addin.BExConnect.OnOpen(Object iWorkbook)

Similar Messages

  • Corrupted file when sent through mail

    Hello,
    I wrote a script  that, among other things, sends an email with an attached binary file.
    This goes through an SMTP relay server.
    The problem is that the file gets corrupted along the way. something, somewhere, removes all 0x00 entries within the binary file.
    I wonder if this could be due to the method I use to send the email.
    Could someone have a look at this sub please ?
    Sub SendMail (AttachmentFile)
    Const SMTPServer = "zcabb37s.mydom.com"
    Const SMTPServerPort = 25
    Const MailExp = "[email protected]"
    Dim Recipents, objMessage
    Recipents = ""
    For i = 0 To WScript.Arguments.Count - 1
    If Len (Recipents) = 0 Then
    Recipents = WScript.Arguments (i)
    Else
    Recipents = Recipents & "; " & WScript.Arguments (i)
    End If
    Next
    Set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "Stats du jour"
    objMessage.From = MailExp
    objMessage.To = Recipents
    On Error Resume Next
    objMessage.AddAttachment AttachmentFile
    If Err.Number <> 0 Then
    Call Echo ("Could not find attachment : " & " - " & Err.Number & Err.Source & " - " & Err.Description, 12)
    Call Echo ("with " & AttachmentFile, 1)
    WScript.Quit (5)
    End If
    On Error Goto 0
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTPServer
    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = SMTPServerPort
    objMessage.Configuration.Fields.Update
    On Error Resume Next
    objMessage.Send
    If Err.Number <> 0 Then
    Call Echo ("Could not send mail : " & " - " & Err.Number & Err.Source & " - " & Err.Description, 12)
    Call Echo ("to " & Recipients, 1)
    Call Echo ("with " & AttachmentFile, 1)
    WScript.Quit (5)
    End If
    On Error Goto 0
    Call Echo ("Mail sent to : " & Recipents & ".", 1)
    Call Echo ("with attached file : " & AttachmentFile, 1)
    End Sub

    This is not a scripting issue. Contact the server vendor or admin and ask them why they are doing that.
    Perhaps you have a Unicode file that is being handled incorrectly.  EXE files and binary files are usually blocked by mail systems.
    The CDO package does not alter files.  Only mail servers and mail clients will do that.
     Try sending the file with PowerSHell to see that the same thing happens.
    ¯\_(ツ)_/¯

  • Emails always are suck in outbox when sent through Apple mail

    Emails always are suck in outbox when sent through Apple mail. How should I deal with it ? Many thanks!

    As mentioned, Outlook is not email standards compliant. It probably never will be based on Microsoft's history. However, I think there are various issues involved in the problems people have. I often send emails from home to my Outlook account at work. I have never experienced any of the problems that I've seen posted anywhere regarding Mail and Outlook.
    My conclusion is that there are issues with certain Exchange Server configurations and/or issues with your own ISP mail server causing the issues.
    I do have my system set up to Always send windows friendly attachments (from what I've read, this really is 'send Outlook friendly attachments'), and always put attachments at the end. Prior to the 'always put attachments at the end,' I wasn't having any issues, either. However, I read that that setting helped with other email clients, so I use it.
    The obvious question is, "well, how is your exchange server configured." I would love to provide the answer to that question; however, I work for a DoD organization, so actually tracking down the person that knows the answer to that question will take somewhere between five years and never. With my 20+ years experience with the DoD, I'm leaning towards the never end of the spectrum. The other half of the equation is, "I'm using cox as my ISP."

  • I filled out my own form saved it and sent through email, when I opened it what I filled out was not there, why would this be

    I filled out my own form saved it and sent through email, when I opened it what I filled out was not there, why would this be?

    What software did you use to fill-in the form (Preview, perhaps) and what software did you use to open it after you emailed it?

  • Word 2004 for Mac documents not read by pc when sent by Email

    Documents composed on my imac in Word 2004 for mac, cannot be read by PC user who receive them by email (unknown format).
    However, if I put the same document on a memory stick and put that into a PC, the PC will read it! Very frustrating as PC users cannot see my Word 2004 for mac documents when sent by email. Any solutions?

    Many thanks Templeton Peck. So simple, it has solved my problem. How come my local Mac. technician did not suggest this? Thank you again.

  • Encypting Pdf document sent through email from BO WEBI

    Hi,
    Encypting Pdf document sent through email from BO WEBI . Is there any sdk scripts/3rd part tools to do this.
    Thanks
    Ranjith

    Hello Ranjith,
    There is no native functionality for encrypting a PDF document from within BusinessObjects Enterprise. Additionally, none of the BOE SDKs are able to encrypt a PDF document either. Generally speaking, if it is not possible in the product (BOE) it's not possible with the various SDKs.
    I am not aware of any third party tools that can do this from inside BOE either. If you haven't done so already you may want to post a question to the [Business Objects Board|http://www.forumtopics.com/busobj/index.php?sid=1037068e7b26619422be6a7b18a8c2ee] (BOB) to see if anyone there has a suggestion.
    Sincerely,
    Dan Kelleher

  • My pictures are saying delivered when sent through iMessage but the person isn't actually getting them. How do I fix this?

    My pictures are saying delivered when sent through iMessage but the person isn't actually getting them. How do I fix this?
    My pictures send through iMessage only to certain people. And others the message is saying " delivered" but the person on the other end isn't getting any of my picture messages and sometimes regular iMessages with no pictures.

    I was sure this curse was an Android feature since I had it constantly with my Nexus phones for the last two years, but sure enough it affects iOS8 too. Turn off wireless and and your MMS will go out fine over cellular ever time (in my experience anyway). Ridiculous, right?

  • Error while trying to open an attachment  sent through email in smartform

    Hi,
    My requirement is to send the smartform through email as PDF attachment.I am able to send the mail.But when I try to open the attachment I am getting error as 'Adobe reader could not open the attachment 'advance shipment notification.PDF' because it is either not the supported file type or the file has been corrupted(for example, it was sent as an email attachment and was't correctly decoded)'.What does it mean?
    Can anyone give me a proper solution for this?
    It's very urgent.Useful answers will be rewarded.
    Thanks,
    Hema

    Hi,
    Are you using any webdispatcher or some proxy? Is there any URL filter configured in between?
    If yes then I think you have to allow these pages.
    Regards,
    Vamshi.

  • HTML page is jumbled when sent as email

    Hello,
    I have an app that creates a schedule for the users and allows them to email it to themselves. I am using InputStreamReader() to capture all the html from that page and insert it in-line into an email. When I output the stream, it works perfectly but when I send it through email some of the content is lost and does not display correctly. Comparing the email source to the output stream, there is a lot of information missing. Please review my code below and let me know if you see any errors. Any suggestions are greatly appreciated.
    <%@ page import="java.util.*,java.sql.*, java.io.*, java.text.*, java.net.*, sun.net.smtp.SmtpClient" %>
    <%
              URL schedule = new URL("http://myDomain.com/schedule/qPrint.jsp?cID=45&aID=0&action=email");
              BufferedReader in = new BufferedReader(new InputStreamReader(schedule.openStream()));
              String inputLine;
              StringBuffer httpContent;
              httpContent = new StringBuffer();
              while ((inputLine = in.readLine()) != null){
                   httpContent.append(inputLine.trim());
              out.println(httpContent.toString());// schedule.jsp looks perfect here
              in.close();
              String from="from";
              String to="to";
              String redirectURL = "./qPrint.jsp?emailSuccess=true"; //this is the calling page
              String htmlBreak="<br/><br/>";
              try{
                   SmtpClient client = new SmtpClient("mail.myDomain.com");
                   client.from(from);
                   client.to(to);
                   PrintStream message = client.startMessage();
                   message.println("To: " + to);
                   message.println("Subject: " + request.getParameter("emailSubject"));
                   message.println("Content-Type: text/html; charset=utf-8");
                   message.println(request.getParameter("message")+htmlBreak+httpContent.toString());
                   client.closeServer();     
              catch (IOException e){
                   System.out.println("ERROR SENDING EMAIL:"+e);
                   redirectURL = "./qPrint.jsp?emailSuccess=false";
                   e.printStackTrace();
              out.println("success");
              response.sendRedirect(redirectURL);
              return;
    %>

    Hi
    I faced the same problem because in standard SAP dimensions of attachement is hard coded.
    Regards
    Aditya

  • Why are my messages being sent through email rather than iMessage?

    Why are my messages being sent as email rather than iMessage?

    Not being sent as email - shown as being sent from an email address because you have selected to start new iMessage conversations from your Apple ID email address on your iPhone.
    When registering an iPhone with iMessage, the phone number along with your Apple ID email address is registered with it.
    Go to Settings > Messages > Send & Receive > Start New Conversations From - select your iPhone's phone number.

  • Where on the site do i order a gift cert to be sent through email?

    where on the site do I order a gift cert I can send through email?

    You can do it via the right-hand side of the iTunes store home page on your computer's iTunes (gifting can only be done via a credit card on your account, you can't use your balance if you have one) : http://support.apple.com/kb/HT2736

  • Word documents are garbled when sent through Outlook Exchange. I know something in the profile folder gets corrupted. Anyone know what?

    Our school district uses the web based version of Outlook Exchange. Several of us using Apple computers have had problems when sending word documents as attachments. When received, the document is full of garbled text. This has happened with different model computers, running 10.5.x or 10.6.x. I determined that removing the items from the folder in profiles (Users-> <user> ->Library->ApplicationSupport->Firefox->Profiles-><profile folder>) the problem is resolved. However, all preferences for Firefox are then lost. Does anyone know what specific item in the folder would cause this?

    I think this is an excellent indicator that not only is Palm reviewing the feedback from the support forums here, but actively reviewing feedback/comments/wishes on other sites as well.
    As the original poster copied this (quite solid, IMO) wishlist from Pre Central, the palm support staff acknowledged first seeing it there.

  • Filled form is blank when sent to email address

    trying to get a form to send to my email address. It working fine and i must have deleted something accidentaly.
    Here is the link to my site page
    http://www.owendawsonpga.com/contactformprocess_original_db.html
    html page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/PGATEMPLATE3.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Golf Lessons in Baltimore Owen Dawson PGA, GOLF INSTRUCTION IN MARYLAND, GOLF LESSONS IN BALTIMORE</title>
    <meta name="Keywords" content="GOLF INSTRUCTION, GOLF LESSONS IN BALTIMORE, BALTIMORE, MARYLAND, GOLF INSTRUCTION BALTIMORE,SHORT GAME,BUNKER PLAY" />
    <meta name="Description" content="Golf Instruction in Baltimore Maryland" />
    <!-- InstanceEndEditable -->
    <link href="twoColFixRtHdr.css" rel="stylesheet" type="text/css" />
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixRtHdr #sidebar1 { width: 220px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style1 {
        font-size: small
    .style2 {
        font-family: "Comic Sans MS", Papyrus;
        font-size: small;
    .style6 {font-size: smaller; font-family: "Comic Sans MS", Papyrus; }
    .style7 {font-family: "Comic Sans MS", Papyrus}
    .style8 {
        color: #0000FF;
        font-family: Georgia, "Times New Roman", Times, serif;
    a:link {
        text-decoration: none;
        color: #000000;
        background-color: #EBEBEB;
    a:visited {
        text-decoration: none;
        color: #000000;
    a:hover {
        text-decoration: none;
        border-top-style: none;
        border-right-style: none;
        border-bottom-style: none;
        border-left-style: none;
        border-top-color: #001EF1;
        border-right-color: #001EF1;
        border-bottom-color: #001EF1;
        border-left-color: #001EF1;
        color: #000000;
        background-color: #EBEBEB;
    a:active {
        text-decoration: none;
    .style9 {font-family: Georgia, "Times New Roman", Times, serif}
    .style10 {font-family: Georgia, "Times New Roman", Times, serif; font-size: small; }
    .style11 {color: #000000}
    .style12 {
        font-family: Georgia, "Times New Roman", Times, serif;
        color: #FF0000;
        font-weight: bold;
    .style13 {color: #FF0000}
    -->
    </style>
    <!-- InstanceBeginEditable name="head" -->
    <script type="text/javascript">
    function submitForm(){
        var myform = document.getElementById('form1');
        var fname = document.getElementById('textfield');
        var lname = document.getElementById('textfield2');
        var phone = document.getElementById('textfield3');
        if (fname.value == ''){
            alert('First name is a required field.  Please enter your first name to continue.');
            fname.focus();
            return false;
        if (lname.value == ''){
            alert('Last name is a required field.  Please enter your last name to continue.');
            fname.focus();
            return false;
        if (phone.value == ''){
            alert('Phone number is a required field.  Please enter your preferred phone number to continue.');
            fname.focus();
            return false;
        myform.submit();
    function messageSent(){
        var status = document.getElementById('msg');
        status.innerHTML = 'Message sent successfully.';
    </script><!-- InstanceEndEditable -->
    </head>
    <body class="twoColFixRtHdr">
    <div id="container">
      <div id="header">
        <h1><img src="photos/newpgabannerfinal3_2_10.png" width="739" height="210" /></h1>
        <!-- InstanceBeginEditable name="EditRegion4" -->
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.html" class="style1">Home</a></li>
          <li><a href="V1Login.html" class="style1">V1 Student Videos</a></li>
          <li><a href="Private_Lessons.html" class="style1">Private Lessons</a></li>
          <li><a href="Clinics.html" class="style1">Clinics</a></li>
          <li><a href="Gift_Certificates.html" class="style1">Gift Certificates</a></li>
          <li><a href="mailto:[email protected]" class="style1">Contact Owen</a></li>
        </ul>
        <!-- InstanceEndEditable -->
        <p align="center"> </p>
      <!-- end #header --></div>
      <div id="sidebar1">
        <p class="style12"><a href="newfor2010.html" class="style13">New V1 Swing Analysis Software for 2010</a></p>
        <p class="style7"><a href="contactformprocess_original_db.html" class="style9">Instructional Form </a></p>
        <p class="style7"><span class="style9"><span class="style9"><a href="Sample_Lesson.html">Sample Lesson</a></span></span></p>
        <p class="style9"><a href="http://www.youtube.com/user/owenpga" target="_blank">Video tutorials</a></p>
        <p class="style9"><a href="http://owendawsonpga.blogspot.com" target="_blank">Instructional Blog</a></p>
        <p class="style7 style8"><a href="PGAPHOTOGALLERY/index.html" target="_blank" class="style9">Photo Gallery</a></p>
        <p class="style7 style8 style11"><a href="Instructional_Video.html">Intructional Video</a></p>
        <p class="style7 style8"> </p>
        <p class="style10">Testimonials</p>
        <p class="style6 style9">“I have been working with Owen Dawson for the past 7 years. During that time my swing has dramatically changed and improved. This has happened through Owen's drills and use of video. It is because of these techniques, that I understand how to hit good shots but just as importantly why I hit a shot poorly. I’m glad I’ve had the opportunity to work with Owen and would highly recommend him. ” <strong>Sam Young - Country Club of Maryland - 2009 Men's Club Champion </strong></p>
        <p class="style2">.............................................</p>
        <p class="style6 style9">“Owen does two things  particularly well, in my opinion.  First, he is a master of recording  technology, and it really helps me to see what I need correcting, and what the  new move needs to be.  Second, Owen knows what the best next step should be  in your own journey to a better swing.  I have taken one or two lessons  from Owen each year for the last three or four years – one relatively small  step at a time, and then worked on grooving that step.  In that period, my  index has dropped about 8 strokes, and in 2007 I won the Club’s “Most Improved  Player” award.  Kudos to Owen!”</p>
        <p class="style6 style9"><strong>Bill Smillie -CCofMD</strong></p>
        <h3 class="style2"><a href="Testimonials.html">Read other testimonials  </a></h3>
        <!-- end #sidebar1 -->
      </div>
      <!-- InstanceBeginEditable name="MAINCONTENT" --> 
      <div id="mainContent">
           <form action="contactformprocess_original_db.php" method="post" enctype="multipart/form-data" name="form1" id="form1" target="ifr">
          <p class="style5">Name</p>
          <p>
            <label for="textfield"><span class="style5">First</span></label>
            <input type="text" name="textfield" id="textfield" />
            </p>
          <p>
            <label for="textfield2"><span class="style5">Last</span></label>
            <input type="text" name="textfield2" id="textfield2" />
          </p>
          <p><span class="style5">Phone number
              <label>
              <input type="text" name="textfield3" id="textfield3" />
              </label>
          </span></p>
          <p><span class="style5">Email</span>
            <label>
            <input type="text" name="textfield4" id="textfield4" />
            </label>
          </p>
          <p><span class="style5">Address
              <label>
              <input type="text" name="textfield5" id="textfield5" />
              </label>
          </span></p>
          <p><span class="style5">State</span>
            <label>
            <input type="text" name="textfield6" id="textfield6" />
            </label>
          </p>
          <p><span class="style5">Zip Code</span>
            <label>
            <input type="text" name="textfield7" id="textfield7" />
            </label>
          </p>
          <p><span class="style5">How did you find me?</span>
            <label for="select"></label>
            <select name="select" id="select">
              <option value="internet">Internet Search</option>
              <option value="friend referral">Friend Referral</option>
              <option value="ccmdsite">Country Club of MD website</option>
              <option value="other">Other</option>
            </select>
          </p>
          <p><span class="style5">What are your golfing goals?</span>            
            <select name="select2" id="select2">
              <option value="break 100">Break 100</option>
              <option value="break 90">Break 90</option>
              <option value="break 80">Break 80</option>
              <option value="stop slice">Stop Slicing the Ball</option>
              <option value="stop hook">Stop Hooking the Ball</option>
              <option value="Compete">Compete in local tournaments</option>
              <option value="More Consistant">Hit more consistant shots</option>
            </select>
          </p>
          <p><span class="style5">How much can you practice?</span>
            <label for="select3"></label>
            <select name="select3" id="select3">
              <option value="1 hour">1 hour</option>
              <option value="2 hours">2 hours</option>
              <option value="3 hours">3 hours </option>
              <option value="> 3 hours">More than 3 hours a week</option>
            </select>
          </p>
          <p><span class="style5">What would you like to learn?</span>
            <label for="select4"></label>
            <select name="select4" id="select4">
              <option value="full swing">Full Swing Mechanics Irons</option>
              <option value="driver swing">Full Swing Mechanics Driver</option>
              <option value="short pitches">Short Pitch Shots inside of 50 yards</option>
              <option value="bunker play">Bunker Play</option>
              <option value="chipping">Chipping</option>
              <option value="short shots">Short shots from rough</option>
              <option value="putting">Putting</option>
            </select>
          </p>
          <p class="style5">What is your Handicap?<label for="select5"></label>
            <select name="select5" id="select5">
              <option value="scratch to 5">Scratch - 5 HDCP</option>
              <option value="6 to 10">6 - 10 HDCP</option>
              <option value="11 to 15">11 - 15 HDCP</option>
              <option value="15 to 20">15 - 20 HDCP</option>
              <option value="> 21">21 and Higher</option>
            </select>
          </p>
          <p class="style5">How long have you been playing?
            <label for="select6"></label>
            <select name="select6" id="select6">
              <option value="beginner">Beginner</option>
              <option value="2 to 5 years">2-5 yrs</option>
              <option value="6 to 10 years">6-10 yrs</option>
              <option value="11 to 15 years">11-15yrs</option>
              <option value="> 15 years">More than 15 years</option>
            </select>
          </p>
          <p class="style5">Have you ever had a lesson?
            <label for="select7"></label>
            <select name="select7" id="select7">
              <option value="yes">YES</option>
              <option value="no">NO</option>
            </select>
          </p>
          <p class="style5">Additional Information
            <label>
            <textarea name="textfield8" cols="40" id="textfield8"></textarea>
            </label>
          </p>
          <div>
            <div style="float:left;width:120px"><input type="button" name="button" id="button" value="Submit" onclick="submitForm()" /></div>
            <div id="msg" style="font:bold 12px arial;float:left;margin-left:10px;width:200px"></div>    
          </div>
        </form>
        <p align="center" class="style8"><br />
        </p>
        <p class="style8"> </p>
        <p class="style8"> </p>
        <p class="style8 style12"><strong><br />
         </strong></p>
        <p align="left"> </p>
        <h1> </h1>
        <!-- end #mainContent -->
      </div>
      <!-- InstanceEndEditable -->
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
      <br class="clearfloat" />
      <div id="footer">
        <p align="center"><a href="http://www.v1golf.com" target="_blank"><img src="photos/GAW.png" width="163" height="60" hspace="20" border="0" /><img src="photos/logo.png" width="80" height="76" hspace="40" border="0" /></a><a href="http://www.owendawsonphotography.com" target="_blank"><img src="photos/ody.png" width="199" height="59" border="0" /></a></p>
        <h2 align="center" class="style6">©Owen Dawson P.G.A. ™ All rights reserved</h2>
        <!-- end #footer -->
      </div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    <iframe id="ifr" name="ifr" style="display:none"></iframe>
    </body>
    <!-- InstanceEnd --></html>
    php page
    <?
    $fname = $HTTP_POST_VARS['textfield'];
    $lname = $HTTP_POST_VARS['textfield2'];
    $phone = $HTTP_POST_VARS['textfield3'];
    $email = $HTTP_POST_VARS['textfield4'];
    $address = $HTTP_POST_VARS['textfield5'];
    $state = $HTTP_POST_VARS['textfield6'];
    $zip = $HTTP_POST_VARS['textfield7'];
    $find = $HTTP_POST_VARS['select'];
    $goals = $HTTP_POST_VARS['select2'];
    $practice = $HTTP_POST_VARS['select3'];
    $learn = $HTTP_POST_VARS['select4'];
    $handicap = $HTTP_POST_VARS['select5'];
    $timeplaying = $HTTP_POST_VARS['select6'];
    $lesson = $HTTP_POST_VARS['select7'];
    $additional = $HTTP_POST_VARS['textfield8'];
    mail('[email protected]','Owen Dawson PGA Contact Form Submission',"First Name: $fname\nLast Name: $lname\nPhone Number: $phone\nEmail: $email\nAddress: $address\nState: $state\nZip Code: $zip\nHow did you find me? $find\nWhat are your goals? $goals\nHow much can you practice? $practice\nWhat would you like to learn? $learn\nWhat is your handicap? $handicap\nHow long have you been playing golf? $timeplaying\nHave you ever taken a lesson? $lesson\nAdditional Information: $additional\n",'From: [email protected]');
    ?>
    <html>
    <head>
        <title>Contact Us Submission Page</title>
        <script type="text/javascript">
        window.onload= function(){
            parent.messageSent();
        </script>
    </head>
    <body>
    </body>
    </html>

    The only thing that really jumps out at me with your script is $HTTP_POST_VARS.  That is a deprecated function as of PHP 4. something I don't remember the exact number.  It is possible if your host upgraded the PHP installation that the function is now replaced by the simpler $_POST global variable ( http://php.net/manual/en/reserved.variables.php ).
    Also the easiest way to test this type of thing is to print your email text to the screen and stop the PHP script there before the mail can execute.  Then you can check out what variables exist and what don't before finishing your script.  Also I hope you have left stuff out for security reasons, because right now you appear to have no way to validate that a form was submitted in the first place.

  • Format issue in opening an XLS attachment sent through email by ABAP2XLSX

    I have downloaded the ABAP2XLSX nuggets and tried to send an attachment in the email using the SAP. But when opening the attachment it is giving up an format issue and not able to view the content. I am able to save the XLSX file on the PC and able to read it but when I  send it to email it doesn't open correctly and it is in a non readable format. Please find the code that I have been using. Can someone help me on this.
    TYPES: BEGIN OF tp_zzrule,
             zzprog     TYPE zzfunc,
             zzdata     TYPE zzcri1,
             zzseq      TYPE zzseq,
             zzkey1     TYPE zzkey1,
             zzkey2     TYPE zzkey2,
         END OF tp_zzrule.
    DATA: w_zzrule   TYPE tp_zzrule,
          t_zzrule   TYPE TABLE OF zzourule.
    TYPE-POOLS: abap.
    DATA:   v_document            TYPE REF TO cl_document_bcs,
            v_recipient           TYPE REF TO if_recipient_bcs,
            v_main_text           TYPE bcsy_text,
            v_send_request        TYPE REF TO cl_bcs,
            v_msub                TYPE so_obj_des,
             v_size               TYPE so_obj_len,
            v_string2             TYPE string,
            v_attsub              TYPE sood-objdes,
            v_mailid              TYPE ad_smtpadr,
            v_sent(1)             type c,
            v_sent_to_all         TYPE os_boolean,
            v_string              TYPE string,
            v_repid               TYPE sy-repid,
            v_title               TYPE so_text255,
            v_dochead             TYPE so_text255.
    DATA lt_test TYPE TABLE OF sflight.
    DATA: lo_excel                TYPE REF TO zcl_excel,
          lo_excel_writer         TYPE REF TO zif_excel_writer,
          lo_worksheet            TYPE REF TO zcl_excel_worksheet,
          column_dimension        TYPE REF TO zcl_excel_worksheet_columndime.
    DATA: ls_table_settings       TYPE zexcel_s_table_settings.
    DATA: lv_file                 TYPE xstring,
          lv_bytecount            TYPE i,
          lt_file_tab             TYPE solix_tab,
          t_objtxt  like solisti1   occurs 0 with header line,
          t_objbin  like solisti1   occurs 0 with header line,
          t_objpack like sopcklsti1 occurs 0 with header line,
          t_reclist like table of somlreci1 with header line.
    DATA: lv_full_path      TYPE string,
          lv_workdir        TYPE string,
          lv_file_separator TYPE c.
    CONSTANTS: lv_default_file_name TYPE string VALUE 'multi sheet test.xlsx'.
    PARAMETERS: p_path  TYPE zexcel_export_dir,
                p_empty TYPE flag.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
      lv_workdir = p_path.
      cl_gui_frontend_services=>directory_browse( EXPORTING initial_folder  = lv_workdir
                                                  CHANGING  selected_folder = lv_workdir ).
      p_path = lv_workdir.
    INITIALIZATION.
      cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ).
      cl_gui_cfw=>flush( ).
      p_path = lv_workdir.
    START-OF-SELECTION.
      IF p_path IS INITIAL.
        p_path = lv_workdir.
      ENDIF.
      cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ).
      CONCATENATE p_path lv_file_separator lv_default_file_name INTO lv_full_path.
    SELECT *
        INTO TABLE t_zzrule
       FROM zzourule
      WHERE zzprog  = 'RV63A999'.
        SELECT * FROM sflight INTO TABLE lt_test.
      " Creates active sheet
      CREATE OBJECT lo_excel.
    For first Sheet in the excel workbook
      " Get active sheet
      lo_worksheet = lo_excel->get_active_worksheet( ).
      lo_worksheet->set_title( ip_title = 'Test sheet one').
      ls_table_settings-table_style  = zcl_excel_table=>builtinstyle_medium2.
      ls_table_settings-show_row_stripes = abap_true.
      lo_worksheet->bind_table( ip_table          = lt_test
                                is_table_settings = ls_table_settings ).
      lo_worksheet->freeze_panes( ip_num_rows = 3 ). "freeze column headers when scrolling
      column_dimension = lo_worksheet->get_column_dimension( ip_column = 'E' ). "make date field a bit wider
      column_dimension->set_width( ip_width = 20 ).
    For second Sheet in the excel workbook
      lo_worksheet = lo_excel->add_new_worksheet( ).
      lo_worksheet->set_title( ip_title = 'Second sheet' ).
      lo_worksheet->set_cell( ip_column = 'B' ip_row = 2
               ip_value = 'This is the test for second sheet by Pavan' ).
      ls_table_settings-table_style  = zcl_excel_table=>builtinstyle_medium2.
      ls_table_settings-show_row_stripes = abap_true.
      lo_worksheet->bind_table( ip_table          = t_zzrule
                                is_table_settings = ls_table_settings ).
    This will create excel.
    CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007.
      lv_file = lo_excel_writer->write_file( lo_excel ).
    " Convert to binary
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer        = lv_file
        IMPORTING
          output_length = lv_bytecount
        TABLES
          binary_tab    = lt_file_tab.
    Save the file on to the PC
      cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = lv_bytecount
                                                        filename     = lv_full_path
                                                        filetype     = 'BIN'
                                               CHANGING data_tab     = lt_file_tab ).
    *--Create and set document with attachment.
    v_main_text-line  = 'This is the main text not sure where this would print'.
    append v_main_text.
      TRY.
        v_send_request = cl_bcs=>create_persistent( ).      "#EC .., bzw.
        CATCH cx_send_req_bcs . "#EC NO_HANDLER
      ENDTRY.
      v_msub       = 'Test excel with multi sheets.XLS'.
      TRY.
          v_document = cl_document_bcs=>create_document(
          i_type     = 'RAW'
          i_text     = v_main_text
          i_subject  = v_msub ).
        CATCH cx_document_bcs . "#EC NO_HANDLER
      ENDTRY.
        v_size = lv_bytecount.
    *--Add the attachment.
      TRY.
          v_document->add_attachment(                          "#EC .., bzw
                i_attachment_type    = 'EXT'
               i_attachment_type    = 'XLS'
               i_attachment_type    = 'RAW'
                i_attachment_subject = v_attsub
                i_attachment_size    = v_size
               i_att_content_hex    = lt_file_tab ).    "#EC .., bzw.
               i_att_content_hex    = lt_file_tab ).    "#EC .., bzw.
        CATCH cx_document_bcs . "#EC NO_HANDLER
      ENDTRY.
    *--Add document object to send request.
      TRY.
          v_send_request->set_document( v_document ).         "#EC .., bzw.
        CATCH cx_send_req_bcs . "#EC NO_HANDLER
      ENDTRY.
    *--E-mail recipent list
      t_reclist-rec_type = 'U'.
      t_reclist-receiver = <email Id here>.
      APPEND t_reclist.
      CLEAR t_reclist.
      LOOP AT t_reclist.
        CLEAR v_mailid.
        v_mailid = t_reclist-receiver.
    *--Create mail recipient object.
        TRY.
          v_recipient = cl_cam_address_bcs=>create_internet_address( v_mailid ). "#EC .., bzw.
           CATCH cx_address_bcs . "#EC NO_HANDLER
          ENDTRY.
    *--Add recipient object to send request.
        TRY.
            v_send_request->add_recipient( v_recipient ).     "#EC .., bzw.
          CATCH cx_send_req_bcs . "#EC NO_HANDLER
        ENDTRY.
      ENDLOOP.
    **--Add recipient object to send request.
      TRY.
        v_sent_to_all = v_send_request->send( i_with_error_screen = 'X' ).
    CATCH cx_send_req_bcs . "#EC NO_HANDLER
      ENDTRY.
    *--Send document.
      COMMIT WORK.
      IF sy-subrc = 0.
       MESSAGE s999(zou01) WITH text-020.
        v_sent = 'X'.
      ENDIF.

    I realize this is an old post, but am wondering if you ever resolved this.  I'm having the same issue.  Download an xlsx file locally opens fine, but attaching the seemingly exact same file throw errors/warnings when trying to open via an email attachment.

  • Value not displayed correctly when sent through a Java POJO datasource, but is perfect when used with MySQL.

    I have this strange problem - A field value is displayed correctly in the crystal report when pulled from MySQL table (field is Varchar(25)). But the same field when loaded into a Java POJO and set the POJO as new datasource the value is garbled up.
    Any ideas?
    Thanks,

    Early implementations of the POJO Factory set the default display size to 12, which caused corruption in the display starting from the 12th character when the size exceeded the display size.
    Would you try specifying the MemberColumnDisplaySize property for that column in POJOResultSetFactory to reflect the actual size?
    Sincerely,
    Ted Ueda - Developer Support

Maybe you are looking for