Get different format error when opening excel file

Hi,
In 10g form, I use CLIENT_OLE2 to generate an excel file on the client machine. Every time, I open the excel file, I get the error message, 'The file you are trying to open, 'my1.xls', is in a different format than specified by the file extension....'. However, I still can open the excel file. I am using excel 2007.
Could somebody please explain what the problem is? How should I solve this problem?
Thanks for your help.
neemin

I don't know that off the top of my head. When I have developed OLE code in Forms I found it very useful to make a Excel macro that did what I wanted to accomplish and the translate that to OLE code in Forms.
I encourage you to create a new forum entry for this second issue. Maybe someone else has done it and can give you a quick answer.

Similar Messages

  • Excel 2010 error when opening excel file

    Getting error "excel can not open the file xlsx because the file format or extension is not valid"

    Hi,
    Based on the error message you provided, this file may have been saved as an Excel binary workbook. However, the workbook has an .xlsx extension that is appended to the file.
    Try to change the file name from ".xlsx" to ".xlsb" or ".xls" to check the result.
    One other possible cause is the file is corrupted, open Excel and click File -> Open -> Browse to the file location, select the file, and choose "Open and Repair", check if this helps in this scenario:
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Multiple JavaScript errors when opening aspx file in Dreamweaver

    I get multiple javascript errors when opening aspx file in Dreamweaver similar to... "While executing translateHyperLink in ExternalRenderers.htm, a JavaScript error occurred."

    Hi Steven,
    Not sure if this is related, but can  you try the solutions in Troubleshoot JavaScript errors | Dreamweaver CS4, CS5, CS5.5, CS6
    Thanks,
    Preran

  • In Elements 12, how do I get thumbnails to show when opening a file?

    In Elements 12, how do I get thumbnails to show when opening a file?

    When in iPhoto (photos, library, an album, whatever, etc.) and I try to position the thumbnails at the top of the page I am unable to do so. In the "View" menu of iPhoto, then "Thumbnails" at the bottom, then all the items in the menu are grayed out. I have tried to go to iPhoto prefences and try there, but no luck. I get the beachball turning for a few minutes, then it stops, but still no luck.
    I have iPhoto 08, OS 10.5.8, anda PowerBook G4, 17"
    Thanks, and sorry for the brief/incomplete question.

  • Opening an Excel 2003 file in Office 2010 Universal Data Connection error when opening the file from a domain.

    Hi.
    One of my users are having  problem with old accounting files in Excel 2003 when opening Excel 2010.
    The user experience that linked information is not being updated properly.
    And suspects that it something do with Universal Data Connection .
    How can an Excel 2003 spread sheet be converted to Excel 2010 spread sheet and still contain active links?
    When the user is opening and converting the file as mention in your suggestion, on the common share on a common domain, the links "breaks".
    we are not using SharePoint on our domain.
    But when doing it on a local machine, the links does not "breaks".
    Looking forward to get solved to this problem.
    Thank you in advance.
    Rgds

    it sounds link, the links changed from relative paths to absolute path. You need to use absolute path in original file.
    KR

  • Error while opening Excel file with Add-ins "CtExcelLinksWeb.xll" for BOFC

    Hi,
    While opening an excel sheet with the Add-ins, "CtExcelLinksWeb.xll", the following error is being displayed,
    The file you ar trying to open , "CtExcelLinksWeb.xll", is in different format than specified by the file extension.
    Verify that the file is not corrupted and is from a trusted source before opening the file. Do you wnat to open the file now?
    If any setting is required for solving the error kindly help me on it.
    Thanks
    Prity

    Hi ,
    I think you are using older version,use microsoft excel 2007 version,then it will opens.
    Regrads,
    SVS
    Edited by: svskumar on Aug 19, 2010 12:18 PM

  • When Opening Excel file, there is a message

    Dear BPC Experts:
       When I open excel files in BPC NW 7.0, there is a warning message saying "Programmatic access to Visual Project in not trusted"
    Does anyone have suggestion for this message? Thanks in advance.
    -Fred
    Edited by: Fred Cheng on Jul 22, 2009 10:47 AM

    From MS Excel 2003 goto Tools > Macro > Trusted Publishers > check on the option Trust access to Visual Basic Project.  From the Security Level tab - click on the Medium option.
    From MS Excel 2007 click on Office button in the top-left corner, then click on the Excel options from the pop-up window.  Click on the Trust Center option > Trust Center Settings > Check on the option Trust access to the VBA project object model.  Also check the option Disable all macros except digitally signed macros.
    Best regards,
    [Jeffrey Holdeman|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/jeffrey+holdeman]
    SAP BusinessObjects
    Enterprise Performance Management
    Regional Implementation Group

  • Error when opening XLSX file with Excel 2003 SP3, file does open but in read only mode with temporary name

    I am using Excel 2003 SP3 and have the Office 2007 compatibility pack installed.  When I open Office 2007 formatted Excel files (XSLX) directly in Windows Explorer, I receive the following error if I do not have Excel already opened:
    "Windows cannot find '<path to file>'.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
    Even though I receive the error, the file does open; however, it opens in Read Only mode with a name such as "Xl0000024.xls".  The number seems to increment up each time it happens.
    Now here is the strange part.  If I have Excel already open and try to open the file in Windows Explorer, the file opens fine in Modify mode with no error and with the correct file name.
    I Googled the error I was getting and found KB211494.  It says I should uncheck the box in Options on the General tab that says "Ignore other applications", but this box is already unchecked in my case.  Any other ideas?  This is
    really frustrating as a small percentage of our company has upgraded to Office 2007 with the rest still on Office 2003.

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • Adobe Acrobat Pro XI - I get different toolbar configurations when opening files.

    I have set up my Adobe Acrobat Pro XI with a selection of toolbars that suits my needs.  So far, so good.  Recently, however, when I open some files, I get a different set of tool bars that resembles the default version. 
    I have tried opening the files several ways (e.g. menu, double-click in Explorer, etc.).  It makes no difference what I do.
    How do I force Acrobat to open the files using my set of toolbars instead of this truncated version?  And why is this changing?

    Error Updating have you completed all of the steps listed in Error 1603: A fatal error occurred during installation?  Did you have any questions on any of the steps listed?

  • Illustrator CS6 gets error when opening AI files - Mavericks 10.9

    I installed Mavericks yesterday ... lucky me, to be guinea pig in the office for this upgrade.
    Am having issues with Illustrator. First it wouldn't open and had to runt he Java install, that took care of that. I am able to make new files without problem and open EPS files, but cannot open existing AI files UNLESS going to File > Open. If I double click on an AI file I get the error "The appliation can't be found"
    After looking for similar issues I am not finding anyone else reporting a similar problem. I am not running any 3rd party plug ins. Any ideas???
    Thanks for the help.

    Issue:
    Clients logging into File Services over SMB with OS X 10.9 experience hanging connection upon login attempt.
    Root Cause:
    OS X 10.9 now utilizes a new SMB2 stack written by Apple.   Apple's SMB2 implementation is not compatible with many other SMB2 NAS products on the market today while Windows 7, 8, and 8.1 works just fine.   In short, its an Apple bug.
    Workaround Option 1:
    To force your connection to be SMB1, simply type cifs://servername instead of smb://servername when connecting to a Windows or NAS share.  This is by far easier and requires no real configuration changes.
    Workaround Option 2:
    To force all connections to be SMB1:
    Open A terminal window
    paste in the following line followed by the return key(should be all on one line): 
    echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf
    What the command does:
    Creates a file called nsmb.conf  in your  home directory at the path ~/Library/Preferences/nsmb.conf.
    Adds directives to force SMB connections to use the SMB1 protocol.  This is slower but stable.
    How to remove the workaround:
    Open a terminal window
    paste in the following at the prompt and then hit the return button:
    rm ~/Library/Preferences/nsmb.conf
    Notes:
    Its a good idea to restart your mac before trying to connect to your storage again. This will clear any hung SMB processes from previous attempts to connect to your storage before implementing this workaround.

  • Getting error when open the file

    Hi,
    I am getting
    " getOutputStream() has already been called for this response " when i wanted to open a file. Pls advise why I am getting this error and solution to tackle the error.
    Thanks

    Hi,
    Thanks for the reply.
    I am running jsp on jboss server. Previously, I was using java version 1.2.2 and the codes was working fine. But when i migrate the codes to jboss 3.2.5 with jdk 1.3.1_13, it throws the following error.
    ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:163)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:122)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)
         at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:190)
         at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
         at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
         at org.apache.jsp.icbbv2.users.DownloadFile_jsp._jspService(DownloadFile_jsp.java:181)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    What i am trying to do is, I am downloading a file stored in Oracle database and open the file based on the file extension, i.e, using ms word for .doc ext .
    This i s where it is throwing error:
    mySmartUpload.downloadFile(docid,"application/msword",docname,65000);
    and the method is as the following:
    public void downloadFile(String sourceFilePathName, String contentType, String destFileName, int blockSize)
    throws ServletException, IOException
    if(sourceFilePathName == null)
    throw new IllegalArgumentException(String.valueOf((new StringBuffer("File '")).append(sourceFilePathName).append("' not found (1040).")));
    if(sourceFilePathName.equals(""))
    throw new IllegalArgumentException(String.valueOf((new StringBuffer("File '")).append(sourceFilePathName).append("' not found (1040).")));
    if(!isVirtual(sourceFilePathName) && m_denyPhysicalPath)
    throw new SecurityException("Physical path is denied (1035).");
    if(isVirtual(sourceFilePathName))
    sourceFilePathName = m_application.getRealPath(sourceFilePathName);
    File file = new File(sourceFilePathName);
    FileInputStream fileIn = new FileInputStream(file);
    long fileLen = file.length();
    int readBytes = 0;
    int totalRead = 0;
    byte b[] = new byte[blockSize];
    if(contentType == null)
    m_response.setContentType("application/x-msdownload");
    else
    if(contentType.length() == 0)
    m_response.setContentType("application/x-msdownload");
    else
    m_response.setContentType(contentType);
    m_response.setContentLength((int)fileLen);
    m_contentDisposition = m_contentDisposition == null ? "attachment;" : m_contentDisposition;
    if(destFileName == null)
    m_response.setHeader("Content-Disposition", String.valueOf((new StringBuffer(String.valueOf(m_contentDisposition))).append(" filename=").append(getFileName(sourceFilePathName))));
    else
    if(destFileName.length() == 0)
    m_response.setHeader("Content-Disposition", m_contentDisposition);
    else
    m_response.setHeader("Content-Disposition", String.valueOf((new StringBuffer(String.valueOf(m_contentDisposition))).append(" filename=").append(destFileName)));
    while((long)totalRead < fileLen)
    readBytes = fileIn.read(b, 0, blockSize);
    totalRead += readBytes;
    m_response.getOutputStream().write(b, 0, readBytes);
    fileIn.close();
    Pls assist. Thanks in advance.
    Rajes

  • Why do I keep getting low memory errors when opening files in Bridge CS4? (New computer running i7 2.40GHz, 12GB RAM)

    Just picked up a new computer which has a lot more RAM than my old computer bu I keep getting low memory errors. Never had this issue on my old computer, any ideas?

    Windows or Mac?  (If the former, I can't be of any help.)  Exact version of your OS?
    How much available disk space?  Do you have a separate hard drive for Photoshop's scratch file?

  • "Open method of Workbooks class failed" when opening Excel file via Internet Explorer

    (apologies, I posted this first to the general Office 2010 forum, but then realized this was probably a better spot to post)
    We have an Excel COM add-in installed on users' PCs.  This add-in responds to workbook open events by opening a particular XLA file (also deployed to the PC) to make certain features available.  This process works flawlessly when Excel files are
    opened locally - but when a user attempts to open an Excel file from an IE link, we get the following error: "Open method of Workbooks class failed".  This is happening on the line that is trying to open the XLA file.  This only happens
    when launching an Excel link from IE - works fine in Chrome or Firefox.
    I have found several posts on this topic, but no solutions:
    1. This post (https://social.msdn.microsoft.com/forums/office/en-US/73c96005-84af-4648-b103-32b677205be3/open-method-of-workbooks-class-failed)
    is the closest to our problem.  In this case, the "answer" was that the user may not have access to the 2nd workbook being opened.  But in our case, we're opening an XLA that is on the local machine, and I've confirmed that it is not
    corrupt and accessible (read & write, just in case!) to Everyone.
    2. This (very old) post (http://www.pcreview.co.uk/forums/open-method-workbooks-fails-excel-hosted-ie-t965608.html)
    seems similar, but is talking about opening Excel inside of IE.  This is not what we're doing - the link is supposed to (and does) open Excel outside of IE.  Interestingly, Excel.exe is being launched with the "-embedded" flag, even
    though it isn't running in the IE window.  When launching Excel by opening the file locally, Excel.exe is run with the "/dde" flag instead.  Clearly the "-embedded" mode is what is causing the problem.  I could change the
    links on the web page to use some JavaScript to open Excel differently... unfortunately, the links are actually generated by SharePoint (the Excel files are in a SP repository), so this is not really an option.
    3. This Microsoft KB article (http://support.microsoft.com/kb/268016) talks about problems opening an XLA directly from IE... but this is the case of a link pointing
    directly to an XLA file, not opening a regular workbook that in turn opens an XLA, as is my case.  In fact, this article specifically points out in the "More Information" section that "End users do not normally open XLAs; instead they open
    an XLS that (if needed) loads one or more XLAs during startup." ==> precisely what I'm trying to do that is giving me the error!
    I've replicated the situation with a very simple COM add-in (created in VS2010 using VB.Net) and a very simple XLA file (does nothing, just pops up a message in auto_open).  For anyone wanting to try it out, here is the exact test case:
    1. In Excel, create a simple XLA file containing only the following code, and save it in C:\TEMP\dummy.xla:
    Sub Auto_Open()
    MsgBox "Auto Open fired"
    End Sub
    2. In Visual Studio, create a new Excel 2010 Add-In.  I created mine via Visual Basic, but I doubt the choice of language matters.  Place the following code in ThisAddin.vb:
    Public Class ThisAddIn
    Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup
    AddHandler Me.Application.WorkbookOpen, AddressOf Application_WorkbookOpen
    End Sub
    Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown
    End Sub
    Sub Application_WorkbookOpen(ByVal workbook As Excel.Workbook)
    On Error GoTo ErrHandler
    If (Not workbook.Name.Contains("dummy.xla")) Then
    MsgBox("Workbook open")
    Application.Workbooks.Open("C:\temp\dummy.xla")
    Application.Workbooks("dummy.xla").RunAutoMacros(Excel.XlRunAutoMacro.xlAutoOpen)
    End If
    Exit Sub
    ErrHandler:
    MsgBox(Err.Description)
    End Sub
    End Class
    3. Build & publish this add-in and install it on the same machine as the XLA created in step 1.
    4. Create and save an empty Excel workbook (I called mine WayneTest1.xlsx) - save it locally (on your desktop), and put a copy somewhere on your web server (I put mine directly in c:\inetpub).
    5. Create an HTML file with a link to that workbook, saving it to the same web server location - here is mine:
    <html>
    <body>
    <a href="WayneTest1.xlsx">Link to Excel file</a>
    </body>
    </html>
    6. Double click the workbook on your desktop (from step 4) - opens fine, I get the "workbook open" message, following by the "Auto Open fired" message.
    7. In Internet Explorer, navigate to the HTML file specified in step 5 and click on the link - when prompted, select "Open" - I get the "workbook open" message, following by the error message "Open method of Workbooks class failed".
    Here are a few things I've ruled out / tried so far:
    - Unchecked all the "Protected View" settings in Excel, made no difference
    - Unchecked all the "File block settings" in Excel, made no difference
    - Made sure dummy.xla was open for read & write to Everyone
    - Made sure the web page was in Trusted sites and set the security level to Low for those sites in IE
    - Tried making the local desktop file (step 6) readonly, made no difference (i.e. launching it locally still worked fine)
    - Tried using Excel 2013 - made no difference
    Any ideas / suggestions?

    Hello Wayne,
    Apologies for the delay.
    I went through your post and tried to reproduce the issue. I was able to reproduce it. Based
    on its complexity and as it requires more in-depth analysis, your question falls into the paid support category which requires a more in-depth level of support.
    Please visit the below link to see the various paid support options that are
    available to better meet your needs. http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Thanks,
    Anush

  • Error in Open Excel Files from JSP..it display Eksponen...

    How to set Excel format in JSP? - Error in Eksponen.
    Hi, i have a problem.
    I am using JSP to select data from database and open it as an Excel file.
    It works perfectly, but the problem is,
    when the data is NUMBER (even though in JSP, i declare it as a String), in the Excel file, when the data is more than 10, the data will change to Eksponen value.
    Should be = 982520000324464
    but in Excel is = 9.8252E+14
    Can anybody help?

    Depending on how you are generating the Excel file there are different solutions.
    If you are generating the Excel file using contentType="application/vnd.ms-excel" and HTML tables, then you can use the following attribute on the cell you wish to format:
    <TD style="vnd.ms-excel.numberformat:#,##0;">24.562234</TD>where the #,##0 corresponds to the format you wish to present the data in.

  • SharePoint 2013 Foundation error when uploading Excel files

    Hello 
    I have a specific problem. I have an xlsx file that I cannot upload in SharePoint. Normally our SharePoint can upload Excel files and other file formats normally but this one has data with nearly 5000 rows. The size of the file is less then 500 KB. The error
    message is: "The URL is invalid. Perhaps it refers to a nonexistent file or folder, or it refers to a valid file or folder in the current Web." When I am uploading this file I am getting the same error message in every library. When I save
    the file as a 97-2003 compatible xls then it works. Sometimes even Excel files with Macros won't upload. 
    Kind regards
    ivicapro1987

    Hi,
    This issue occurs when the Version column is configured as an Indexed Column. 
    To work around this issue, remove the Version column from the list of Indexed Columns for the list that has this issue. To do this, follow these steps:
    Browse to the list where the issue exists.
    In the ribbon, click the Library tab, and then click
    Library Settings.
    In the fields list, click Indexed Columns.
    In the Indexed Columns list, click Version.
    Click Delete, and then click OK.
    Upload any files that you previously experienced the issue with.
    Reference:
    https://support.microsoft.com/kb/2796640?wa=wsignin1.0
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for