SJS opens .xls file present on server as HTML in browser window

Hello Everyone,
I am facing a very different kind of problem here and have not been able to get any help. In my application I generate a report in .xls format and save it on the App Server. Problem arises when user tries to access this file from browser to download, as file opens in HTML format instead of opening it through ms-excel. I checked mime.types for mime mapping and it does have an entry for ext. type .xls.
content of xls file shown on browser is somewhat like
Encoder Productivity Report Date =T("10/05/2005") Makers ID Today Date Month To Date Year To Date Prinicipal Late Ext Total Prinicipal Late Ext Total Prinicipal Late Ext Total ADMIN 6 0 6 6 0 6 6 0 6 CURING1 1 0 1 1 0 1 1 0 1 CURING2 1 0 1 1 0 1
Same thing works fine on IBM websphere... but i need to deploy it on SJS only.
This is really becoming critical for me..... please help ASAP

Hello Everyone,
The problem got solved after update default-web.xml on app. server with mime mappings for .xls

Similar Messages

  • How to open a file located at server using JSP

    hi,
    i would like to open a file located at server as it is. I mean to say, if it a MS Word file, i wanna open it in MS Word, if it an Excel file, i wanna open it in Excel. i know the location (path) of the file. Can someone help me please.
    Thanx

    The best way would simply be to HREF it.
    ie<a href="excelfiles/spreadsheet.xls">Open spreadsheet</a>When a user then clicks on that lick in their browser they should be given the option to either download or (if they have the appropriate program, in this case MS Excel, installed) open it.
    This works best if the client is using a version of Internet Explorer (if you're dealing with MS files), but any browser should potentially offer you the option of opening the file.
    Beyond that there's no way to specifically open a program on a client machine (it'd be a bit of a security loophole if you could! - Imagine a JSP page being able to open FDISK...). All you can do is pass the file (via the HREF) and let the client decide what to do with it.

  • Is there a way to open Excell file from the server and display in the UI and save it back on to the

    Hello there,
    Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)

    Hi Mike,
    Welcome you to the forum.
    You may try:
    SELECT * FROM MyDBNameHere.dbo.OUSR T0
    Thanks,
    Gordon

  • How to read .xls file from FTP server t oInternal table

    Hi
    am using the FTP_SERVER_TO_R3 to read xls file from FTP server to internal table
    but the data i get in LT_TEXT is special characters.
    CALL FUNCTION 'FTP_SERVER_TO_R3'
    EXPORTING
    handle = hdl
    fname = f_name "ProdDataFromCRM.xls.
    * CHARACTER_MODE = 'X'
    * IMPORTING
    * BLOB_LENGTH =
    TABLES
    BLOB = lt_text
    * TEXT = lt_text
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4
    can any one help me out to get the exact data..
    Really appreciate your quick response..
    Thank You

    Hi, if you really retrieve an excel file, you can not see the data in ABAP. You may see them in Excel. For this you may use
    CALL METHOD document->open_document_from_table
    of the interface i_oi_document_proxy for OLE objects. You can access the data with reference to the interface i_oi_spreadsheet.
    Please check [Desktop Office Integration (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf] for details.
    But, who knows, perhaps you want "And Now For Something Completely Different".
    Regards
    Clemens

  • After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading.

    After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading. I have no special software like numbers or anything else installed on either device. Just using the default viewer provided by apple for viewing email.

    The attachment is an .xls excel 97-2003 spreadsheet. I viewed the file in the email and did not edit it with any software. I can forward the file to anyone that is may want to check it out to see if they can help me. I was wondering if there was some way of forcing another ios6 install on my phone and maybe that would solve it.
    Is there anyone out there that is viewing .xls files in email using ios6 w/o any other software installed like numbers or any other add ons? I am not upgrading my ipad from ios5 to ios6 so I can still continue to view the emails on my ipad. Is there an email viewer .xls plug-in that will be availablle in the next ios6 update?

  • How to open xls files in Mountain Lion

    I upgraded to Mountain Lion and now cannot open xls files.  xlsx files open fine. Is there a way to convert the xls files?

    I think I have the same issue. I had xls associated with Openoffice but after upgrading xls opens with Preview. I tried to change it using CMD+I but when I select Openoffice it returns to Preview.... And yes I also tried to change the extention into xlsx but that also didn't solve the issue

  • How to open sdf files in SQL server 2012?

    How to open sdf files in SQL server 2012?
     I couldn’t figure out how to open the sdf files in SQL server 2012
     Thank you
     Best
     Jamal

    I don't think it's hard if understood the question properly you can try this I do it most of the time and this might be the solution for you, sometimes minor simple click is a life saver:)
    1. 
    Open SQL Server Management Studio, or if it's running select File -> Connect Object Explorer... and click the
    connect drop down arrow
    2. 
    In the Connect to Server dialog you will see Database Enghine, Analaysis Servie on so on and you go head change Server type to
    SQL Server Compact Edition
    3. 
    From the Database file drop-down as shown below click the drop down arrow and select <
    Browse for more...>
    4. 
    And you will see C:\, D:\, G:\
    drive and so on and open, your SDF file where it is located
    I hope this has been informative for you and good luck
    Please remember to click “Mark as Answer” on the post that has answered your question as it is very relevant to other community members dealing with same problem in seeking the right answer

  • Cant open xls files on my computer

    not sure what i need for my computer to open xls files i have adobe reader10 not sure what to do help

    If you have Excel installed, do a repair install.
    Otherwise install the Excel viewer from http://www.microsoft.com/en-us/download/details.aspx?id=10

  • Loaded os maverick now can't open xls file

    I just updated OS Maverick and now can't open xls files - any idea?

    What version of Office? If 2004 or X, upgrade to 2011. Or use one of the free alternatives.
    Other than that, please provide more details.

  • Numbers can't open xls file by Windows Foxpro.

    I have to open XLS files made by exporting a table in FoxPro using:
    EXPORT TO FileName XLS as mentioned in:
    http://msdn.microsoft.com/en-US/library/1515xf19(v=vs.80).aspx
    Whenever I try to open this file in Numbers I get the following error:
    I am using Number version 3.2 (1861) on Mac OS X Mavericks (10.9.3).
    Any solution/patch to open these files?

    https://discussions.apple.com/docs/DOC-6941

  • Cant open doc files from the server on MacBook Air after upgrading to Maverick

    Cant open doc files from the server on MacBook Air after upgrading to Maverick, I can only open up docx file. Thank you!

    Thanks for the suggestion! I don't use Phantasm or VectorScribe (or any Astute Graphics plugins for that matter). I do, however, have a Wacom tablet and have a few plugins that concern using Blurb Book Creator as well as LiveSurface Context.
    I did the very unfortunate and foolish act of upgrading to Maverick without a backup, so postponing isn't an option for me.
    I geuss my question at this point would be, would it be worthwhile to wipe all the adobe products from my harddrive and re-install them? Or would that be a useless endeavor.
    I don't have an external hard-drive so backing up and re-installing the entire OS would be a bit much. Any suggestions?

  • Importing Data From XLS File to SQL Server

    Dear All,
    I want to import the data from Excel(.xls) file to SQL Server (2008 R2). But due to some problem (may be data), an error is occurring when I am going to import using Import Data Wizard. I want the rows to ignore those are creating issues and to keep track
    of those records. That's why I need to process rows one by one. How can I do it? Any idea?
    Thanks & Regards,
    Anujit Karmakar
    Anujit Karmakar Sr. Software Engineer

    Whats the error? Have you mapped the source-destination data types  in column mappings?
    Below is a link to video to guide you through the Steps of Import/Export Wizard
    SSIS Wizard Video: http://www.youtube.com/watch?v=9Wmdhnx1niU
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other
    forum members can benefit from it 

  • I cannot open xls files on my Imac in preview or numbers where as I used to be able to

    I am no longer able to open XLS files on my Imac.  I was able to do it with preview or number & it will start to load & stop "progress"
    Thank you

    I opened one of the PDF files in notepad and these are the first couple lines:
    瀖ᕁމጿ␠씴豈䧉筩롈ꓳ劏ꎯ僪뚢頟뻏즏谀㿃夑퀉꟠鲲쮂⫉笿褡밤籞冁탁ӓ轸뿐笼ⵆ횰䄌ඁ淥ة寨闤⬅鳦팥링빨嬄敎უ婏㣴ً鮓ࣿꢚ㑀녲莒඼ိȆ䕇纍쉉籶뺝갞伐쮠᥏﯒넉釖ȓ겴☧ ἣ秵駻�䣞띰㖔流羀籔朼敨ꢉ糶당⬤俉膇䄐惡�ಹꛖ鍡恡ⱶᶜ�堷﹑ﱌ僿걄뎔æ䋷귪⛢⫐䅪䉙὿烶ꖆ႟ᗔ瘞狻틫儩六잶覱낵듘盋崾�ᦜ㺆௹뻹燴ឋ騙쬄ꏿ뽒煹�钼뇲腎稦ꃲ㈃沒ꔈ뺐뛽첑䘶畱䍣紻 ⁜哠鳾

  • Open The File in the Server

    Hi All,
    The macro OPENFILE is working fine for opening the files in the local.
    The same macro if used to open the file in the server its not working fine.
    I tried both in the following,
    evmnu("OPENFILE","link name","HTTP://server name/appsetname/application name/eEXCEL/REPORTS/Report1.xlt")
    evmnu("OPENFILE","link name","//server name/appsetname/application name/eEXCEL/REPORTS/Report1.xlt")
    both they are not working,
    Please let me know, if there is any problem in this or the procedure for accessing the files from the server.
    Thanks in Advance..
    Regards,
    G.Vijaya Kumar.

    Here is a working example if u want to open a report that is located in your local folder:
    =EVMNU("OPENFILE";"Description";"/REPORTS/WIZARD/template1.xlt")
    To open file that is located in a company folder on the root lvl u can use next formula:
    =EVMNU("OPENFILE";"Description";"CompanyLVLFile.xlt")
    Hope that was helpful,
    Dzmitry

  • Open (.sdf) file with SQL server 2005 Management Studio

    In VS2005, I have created a SQL Mobile database, (.sdf).
    Copied that (.sdf) file to Desktop, and when I try to open with SQL Server 2005 management studio, its showing error "make sure the application for the file type (.sdf) is installed."
    How can I open this file with SQL server?
    Regards
    Abinash

    You must install SP2 if using Management Studio Express (http://www.microsoft.com/downloads/details.aspx?familyid=6053C6F8-82C8-479C-B25B-9ACA13141C9E&displaylang=en)Erik Ejlskov Jensen, MCTS: WM App, MCITP: SQL 2008 Dev - http://erikej.blogspot.com
    Please mark as answer, if this was it.

Maybe you are looking for

  • Ipod Touch (2nd gen) drawing too much power, disable USB?

    Earlier today, when my iPod Touch (2nd gen) was syncing with iTunes, it disconnected and this error message popped up: Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled.  To prevent

  • Web cam recommendations please

    Hi All, I'd like to get a web cam with microphone for myself (in a low-light house) but also for three others who own pcs. These pc users are elderly with varying degrees of computer savvy. Sigh. This is strictly non-professional. Keeping the grandpa

  • External HD as device in iTunes

    The script I'm trying to write at the moment is triggered by a certain volume beeing mounted. I allready got that part. Now I want the mounted drive to be shown as a device in iTunes (like an iPod) Any suggestions?

  • Open Accordian Panel via anchor tag

    I have about 20 accordian panels stuffed with content. Is it possibe for a user to click a link on the same page and be carried to the specific panel? -- having it open would be a bonus. thanks for your time

  • Big problem: i can't see old email

    help me please! i can't see older email in my webclient but there are in database. if i receivea new mail i can see it. what can i do? the only think i do is to activete virus scrubber service many thanks giorgio