Problem with opening the xls file

I am getting this message while opening the xls file.
type Status report
message /report/eltc/timeplan_mjain_200708301147.xls
description The requested resource (/report/eltc/timeplan_mjain_200708301147.xls) is not available.The file has been created successfully but not opening. whever i refresh the entire application in the tomact then its been recognized.the code below is used to open the file after creating it.
BaseAction action = new IndicativeTimePlanAction();
               action.execute(objReq, objRes);               
               TreeMap map=(TreeMap)objReq.getAttribute(LTCConstant.LTC_TIME_PLAN_MAP);
            String strFilename = TimePlanUtil.downloadTimePlan(objReq,objRes, map);    
            //String strFilename="vsblt_mjain1.xls";     
            objRes.setContentType("application/octet-stream");
            objRes.setHeader("Content-Disposition","attachment;filename=\""+strFilename+"\"");
            objRes.setHeader("Cache-control","must-revalidate");
            RequestDispatcher dispatcher = objReq.getRequestDispatcher("/report/eltc/"+strFilename);
            dispatcher.forward(objReq, objRes);No exception is thrown at the console.
Any suggestions plz.
Message was edited by:
bobz
Message was edited by:
bobz

whever i refresh the entire application in the tomact then its been recognizedMaybe you're creating and downloading it asynchronously so that the creation of the file isn't finished yet while you're about to download it.

Similar Messages

  • Problem with opening the .fmx file through hyperlink

    I am trying to open a .fmx file through hyperlink. After clicking on the hyperlink a dilogue box opens up and asks for "open from the remote server", "save on the local disk" and cancel. If I click on open the .fmx file opens up and applications starts working.
    Problem is "I do not want this dialogue box to be opened after clicking on the hyperlink". I tried to change the mime type and changed the setting of Internet explorer. But it does not work.
    Any suggestion will be appreciated.
    thanx in advance
    anil dhiman

    whever i refresh the entire application in the tomact then its been recognizedMaybe you're creating and downloading it asynchronously so that the creation of the file isn't finished yet while you're about to download it.

  • Problem with opening a indd file in CC 2014.

    When I'm trying to open a 5.5 .indd-file in CC 2014 on my Windows computer, I get this error message: 'Either the file does not exist or you do not have permission to open it or the file is used by another program'. However my collague has no problem with opening the document on his Mac computer. I guess it has something to do with a kind of setting in my CC 2014. Can anyone help me?

    Nothing to do with ID. It really means what it says - your file permissions are hosed and it being an ID file this could include things like fonts or placed images referenced within it.
    Mylenium

  • Hello! The new version of Firefox I have a problem with opening the site VKontakte. The browser displays the following error: "Firefox has determined that the s

    Hello!
    The new version of Firefox I have a problem with opening the site VKontakte. The browser displays the following error: "Firefox has determined that the server redirects the request for this address in a way that it will never end." How to solve this problem? Please excuse me for my English.
    Sincerely, Vsevolod.

    You're welcome

  • Problem while opening the excel files

    Hi
    In my system , i have excel reports in my server disk . And i am opening the excel files through an action class like /viewReport.do?id=23 .....and thus from the action class i open my excel file .
    After opening one excel file , i try to open another excel by clicking that link , then my system often hangs else excel shows an error saying "a report with name viewReport.do is already open " even though both of these files are different on the server
    How can i avoid this ??
    The reason why i am opening the excel file through an action class is , i need to perform some operations before opening that excel report
    i tried by setting the
    response.setHeader("Content-disposition","attachment; filename=myWorksheet.xls");
    and i kept on changing the names but that doesnt work
    Can any one let me know how to go abt this ??

    Hi Sir,
    I found you posted the issue in the
    APS.NET forum, and you seems use some code to open the file. Have you tried the last link in the thread?
    Then, let's do some test to narrow down the issue.
    I notice that you are using Office 2010, does the issue occur only with 'Reachlocal.xlsx' or every existed file?
    If every Excel file has the issue, please try the following methods:
    Open the file in
    safe mode.
    Repair Office 2010.
    On the other hand, this problem might be caused by malware on the affected machine. There are now two known variants of malware which causes this problem: Win32/Crilock.A and
    Win32/Buma!rts. They have both been identified as a new family of
    ransomware.  
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx                                   
    If you have any further assistance about code/program, I recommend you post the question to MSDN forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    Regards,
    George Zhao
    TechNet Community Support

  • Problem with opening of PDF file, generated through smartform

    Recently, I have developed a new program where, the output of smartform will generate a PDF file, and then that PDF file will be mailed to concern persons,
    I have sucessuly done this in development server, and further testing I have transported this to Quality, in Quality i am able to generated a pdf file and able to send it to mail box of concern person, but when concern person tries to open the PDF file, it gives the error stating 'There was an error in opening the document, The file is damaged and could not be repaired'
    But same, I can able to read from development server.
    When I asked the Basis person, they are not aware about it, and , I have make it sure that, I have transported all request to Quality and nothing is pending in development.
    Can you please give me some idea to sort out this issue.
    Thanks in advance
    Rani

    Hi,
    I have same requirement.
    I need to cnvert smartform->pdf->send mail.
    The mail is send but the attachment is corrupted.
    Can you tell me what code you have written so its working in developement?

  • WebDynpro: Problem with opening the generated xls file

    Hi,
         I am new to the WebDynpro for Java world.
    I am trying to learn by referring to the sample tutorials on SDN.
    I tried executing the sample project for the exporting to excel.
    After I down load the generated xls file to my computer and try opening it I get an error message from excel : "Microsoft Excel Viewer cannot open files of this type".
    I get the same error message if I try opening the file directly instead of first downloading it.
         Please help me out with possible reasons for this.
    Thnx in anticipation,
    Pravesh Puria.

    Hi,
    Is the content type : application/vnd.ms-excel.
    I guess the problem is with identification of the content type.
    Regards,
    Sujana

  • Problem with opening the social networks applicati...

     i got a problem with this app, once i want to open it, it says:“Sorry, please uninstall and reinstall communities. what can i do ?

    whever i refresh the entire application in the tomact then its been recognizedMaybe you're creating and downloading it asynchronously so that the creation of the file isn't finished yet while you're about to download it.

  • Problem with opening a chm file in java.

    Hi all,
    I m having an application in which i need to open a chm file from some gui interface. I m using the following code for that...
    Process theProcess =Runtime.getRuntime().exec("hh.exe RWXml.chm");
    it is working fine on my machine. But when i deploy the code on other machine, It shows some windows error. And when i give the same command on commandline it is working fine. Can anybody tell me that what's wrong with this code.
    Thanks

    Nothing to do with ID. It really means what it says - your file permissions are hosed and it being an ID file this could include things like fonts or placed images referenced within it.
    Mylenium

  • Problem with opening MS Excel files through Portal

    Hi All,
    I have a user that is complaining about the behaviour of MS Excel files in the Portal. The MS Excel files do not match their behaviour at the windows level. The issue has to do with how MS Excel files never seem to open in a maximized sate when you open them from the portal. The same cannot be said about MS Word files. The behaviour of MS word files is consistent between windows and portal.
    Solutions will be REWARDED.
    Thanks & Regards,
    Krishnen Subramanian.

    Hi Hussain,
    I hav uploaded the excel file into my KM contentafter that when i try to open it , it does not open as maximized.
    Let me explain:
    I create a new excel file on my desktop:
    I open this file:
    I maximize the workbook and save:
    I close Excel and then open the file right back up:
    I notice that Excel and the workbook open up maximized. I close Excel again.
    I now upload the file to the portal:
    I then open the file from here:
    It is noticed that the Excel is not maximized. We would like for it to behave as it does from the desktop. In other words, if it is saved as maximized, it should open from the portal that way. If it is saved as half way open, it should open that way from the portal.
    I have found that MS Word documents behave in the portal as they do on the desktop. I create an MS Word file on my desktop:
    There appears to be something portal related that prevents MS Excel files from opening maximized.
    Hope you will be abl to solve the message.
    Thanks & Regards,
    Krishnen Subramanian.

  • Problem while opening the PDF File in Enterprise Protal

    Dear All,
    I have uploaded a PDF Document of around 30 pages in KM and made an iview to view that document but when i click on the iview the document is not opening properly and after sometime the Portal/system is getting hanged.But when i open the pdf document with less number of pages it is working fine.
    I am using EP 7.0  and Adobe Reader 8.1.
    Any help or suggestions will be highly appreciated.
    Regards
    Shareef

    Doesnt seem to appear as a portal issue neither it is a reader issue. Might be some issues with the network which isnt allowing the entire file to get downloaded and hence causing the browser to hang.
    Thanks,
    GLM

  • Problem with Opening the Database

    Dear All,
    I am learning myself Backup And Recovery.
    I messed up with Redo Log files and now the database is not opening.
    What actually I did is
    1) I got 2 redo log groups with I member file in each group.
    Group 1 (redo1) & Group 2(redo 2)
    2) Then I shutdown the database "Shutdown Normal"
    3) Then I removed the one redo log files. (redo 1) "rm redo1"
    4) Now I tried to open the database. It didnot opened as redo 1 is not available
    5) Now I Added one group 3 when the database is in mount mode (alter database add logfile group 3 ...)
    6) Now when I tried to drop the redo log file, I am getting the below error
    ORA-01623 log 1 is current log for instance orcl (thread 1) - cannot drop.
    7) So Now I am not able to open the database
    Can Anyone please help me out.
    Appreciate any help
    Thanks & Regards
    Madhu K

    Madhu,
    Can you try recreating the controlfile ? All it does is resets the redologs (reinitializes them). There wont be any dataloss. You can open the database using "alter database open resetlogs" after you recreate the controlfile.
    Have you looked into the backup and recovery case scenarios. They covered loss of redologs also.
    Since you are learning by yourself, i hope you are following Official Oracle guides. They are your bible when you practice things for the first time.
    http://www.oracle.com/pls/db102/portal.portal_db?selected=4 => Backup and Recovery Section => Backup and Recovery Basics and Backup and Recovery Advanced User's Guide
    -Srinivas

  • Problem with opening various text files in notepad through java

    Hi friends,
    I need to open any .txt file in notepad by running the code in Java.I could open the notepad through java but not a perticular file.I dont even want to hard code my program that only one perticular file will open through it.I want it generalised...if anyone could help me,it would be really nice...
    thanks
    Vishal.

    If your program opens notepad I'll delete it because I set UltraEdit as my default editor. So if you already must use system-specific code, how about grabbing a Windows manual to find out how to use the editor registered for these files? (Hint "start").

  • Problem with opening URL (articulate) file in Captivate 3

    Hi,
    I created a Captivate 3 file, hoping to link an Articulate .html file if I click on a button.
    I created a text button:
    On success: open URL or file
    URL: Z:\Tutorial\WebsiteTutorialReviewandSurvey_09_03_10\quiz.html
    If I publish this file, I am able to play this file on my computer or any computer that is mapped to this drive. However, when I open the file on other machines, where this drive is not mapped, then the file cannot be opened. The file will be sent to other users who will not have access to my local drives, so I'm not sure how to set up my URL directory.
    Can someone please help???
    - is it the directory? "Z:\"
    - I've also changed that to start off as \\servername\Tutorial\WebsiteTutorialReviewandSurvey_09_03_10\quiz.html = this also does not work
    Thank you so much!

    Hi, You most likely will find help at this Forum:
    http://forums.adobe.com/community/adobe_captivate/adobe_captivate_general?view=discussions &start=0
    Also when you first open your thread here on the Flash Forum, you'll see a section to the right "More like This" that may be helpful as well.
    Thanks,
    eidnolb

  • Problem with opening a dmg downloaded file.

    I have a problem with opening a dmg file type. Example. I down loaded an update for Onyx. The download is placed on my destop. OnyX.dmg. When I click the file, disk utility opens up. I click OnyX.dmg and it attaches the image. I then have the OnyX disk image on my desktop. I click on OnyX.pkg and get the message "There is no default application specified to open the document "OnyX.pkg"
    I remember when I 1st installed the program months ago. I just dragged the icon to the applications folder and was done.

    There is something rather odd with your defaults for opening things. Double clicking a .dmg file should cause it to mount automatically using DiskImageMounter, and double clicking a .pkg file ought to cause Installer to run. DiskImageMounter is here:
    /System/Library/CoreServices/DiskImageMounter
    and the Installer is here:
    /System/Library/CoreServices/Installer
    You can use GetInfo to assign those programs to those file types. You might consider fixing your LaunchServices database. See the discussion thread here:
    http://discussions.apple.com/thread.jspa?messageID=5744911
    Using OnyX is probably the easiest solution.
    Francine
    Francine
    Schwieder

Maybe you are looking for

  • I want to delete icam photos stored on iphone 4s

    I have 2,500 icam images stored on my 4s, and now they have been streamed to iCloud!  I don't want to delete each snapshot that makes the videos, but want to get rid of these images that are eating up my iCloud storage, and 4s storage.  I deleted  iS

  • Oracle errors while running script

    When i run my script i get the some error: errrors are listed below: ORA-04045: errors during recompilation/revalidation of COLLECTION.STEP ORA-04020: deadlock detected while trying to lock object COLLECTION.COL_CUSTOMER_REC

  • Lock Purchase Order fields after goods receipt

    Hello everyone,   I need to be able to set a couple of fields in ME22N as display only after goods receipt has been done for the PO. Is there any config that I can do to get this done? Any idea or suggestion?   Thank you very much for your help! Kell

  • Custmizing Legacy Stimulus Profile editor

    Hi Stephen,  I want to customize Legacy stimulus profile editor to add below features: - Converting test cases from excel sheet to CSV and to nivstest. - User interface to monitor status of each test case along with its channel values and display in

  • Can i safely delete the indexedDB folder from profile? 3gb+ is alot

    saving a backup of profile and discovered 3gb folder indexedDB was wondering if its safe to delete...or what it is even for.