Excel containing pivot table - Problem when opening

Hi,
There is jsp that generates an excel with few pivot tables in it. In the open/save dialog, if I save the excel and open it, it displays fine but if it is opened up directly, it gives an error saying "Reference is invalid".
Note: The range for the pivot tables are specified using named ranges ( data is in different sheet from that of the pivot table ) ... but it works fine if saved and reopened.
just confused of this behaviour... any ideas would be greatly appreciated...
Regards...

This seems to be a bug with the Excel. This works fine with Netscape and also should work fine with other browsers. In IE, the temp file is created with a file name that ends with a square bracket at the end( eg. myExcel[1].xls ) and this is contrary to the file naming convention of ms-excel ( should not contain '[' or ']' ).
Only solution is, open the excel file as inline...
response.setHeader("Content-Disposition", "inline; filename = myExcel.xls");Please advice if my perception is wrong or is there any other work around for this? I have tried using all types of headers when sending the response but nothing helps.
To check this,
Create an excel file and try to save it with a file name that contains square brackets...
Regards...
Edited by: Praveeen on Jun 27, 2008 1:36 AM

Similar Messages

  • How to solve the problem when opening program illustrator cs6 ERROR: 16 It is WINDOWS 8.1 / 64 BIT help please

    how to solve the problem when opening program illustrator cs6
    ERROR: 16
    It is WINDOWS 8.1 / 64 BIT
    help please

    Thanks, Jeff! The file Adobe Setup Error.log contains the following information:
    02/14/14 07:20:26:474 | [INFO] |  | OOBE | DE |  |  |  | 8860 | DEVersion: 5.0.0.0
    02/14/14 07:20:26:475 | [INFO] |  | OOBE | DE |  |  |  | 8860 | Loading library from C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\DECore\DE5\Setup.dll
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    ::START TIMER:: [Total Timer]
    CHECK: Single instance running
    CHECK : Credentials
    Load Deployment File
    CHECK : Another Native OS installer already running
    Create Required Folders
    Assuming uninstall mode
    Lookup for master payload
    [    8860] Fri Feb 14 07:20:26 2014 ERROR
    DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    [    8860] Fri Feb 14 07:20:26 2014  INFO
    :: END TIMER :: [Total Timer] took 6.90443 milliseconds (0.00690443 seconds) DTR = 579.338 KBPS (0.56576 MBPS)
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s), 0 warning(s)
    ERROR: DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
    Please search the above error/warning string(s) to find when the error occurred.
    These errors resulted in installer Exit Code mentioned below.
    Exit Code: 33 - The product is not installed, cannot uninstall.
    Please see specific errors and warnings for troubleshooting. For example, ERROR: DW040 ...

  • Export excel to Pivot table issue

    Hello Folks,
    Our Business user has a problem with the exporting to excel as Pivot table. Now, the user is trying to do, List - Export - Spreadsheet, and she is getting "Save XXL list object in  SAPoffice". How can we get the option to save in "Excel in XXL format" to get to the Pivot table..
    Thank You.

    hi,
    check out this [LINK|http://sample-code-abap.blogspot.com/2009/05/reset-alv-export-option-for-user.html]
    the report SALV_BS_ADMIN_MAINTAIN is used to reset this setting. It's easy, run the report, select and delete the record for the specific user from report output and that user will get the dialog again.

  • Send excel as Pivot table in attachment through ABAP

    Hi All,
    I have a requirement where I have to send excel file as attachment. Which I can do without any issue.
    But when we send in excel it should be in Pivot format as we can do in Excel.
    Sending excel file as attachment in Pivot format thorugh ABAP. Is it possible. If some one has tried it ever can tell me some thing about this.
    Thanks,
    Anu

    Hi Anu,
    can you pls share  the logic of sending excel as pivot table and i can try with it.
    Thank You.
    K.S.

  • Strange problem when opening word doc situated in WLS virtual dir

    Hi all,
    we have a strange problem when opening word doc
    situated in C:\Oracle\Middleware\as_1\forms\webutil
    we put some word docs there and tried to open from forms using for example web.show_document('http://wp0606:9001/forms/webutil/mug00103.doc', '_blank');
    no problem using FF, however in IE8 the word doc is shown in its binary format, this also happens when we try to open the doc in IE8
    however when we google and search for instance for a test.doc and then click on this url a file save dialog is shown
    that's why we believe that this might be due to a configuration issue of WLS
    any help would be greatly appreciated
    Kr
    Martin

    I think you have 2 ways to go here. Figure out what html is from wherever weblogic gets it, meaning you have to delve into the docs, snoop
    around in directories and find what it must be sending (This is going to be unavoidable if you are going to change what weblogic is doing.
    Sooner or later you have to try to figure out where it gets this stuff from)
    or
    you can experimentally snoop on your url with a tool like wget or curl. These are fundamental web tools.
    The latter is always a useful thing to be able to do. (you need to formulate a query to get the content-type).
    Whoever managed to get weblogic to serve any files in the first place probably can figure this out.

  • Problem when opening "Mail"

    Dear members of the Apple Community,
    After transferring my files and my profile on my new Macbook pro, I keep encountering a problem when opening "Mail". Each time I try, the app asks me to choose a mail account to add, but I already added the ones I normally use. I can either create/add this new account or click the "cancel" button. I cannot use the program (the main functions are not available). But if I try to add a new account, Mail does not upload the new messages for my existing accounts and if I click "cancel", the application simply close itself. What could I do?
    Thanks a lot to your help.

    It might be worth running Disk Utilities and then Repair Disk Permissions to see if that resolves the problem.
    Chris

  • I have a problem when opening a profile on Facebook. when I open the main page and facebook all ok but when I try to open your Firefox profile my block! what the problem ????? before me it was happening but now when I installed Firefox 4

    I have a problem when opening a profile on Facebook. when I open the main page and facebook all ok but when I try to open your Firefox profile my block! what the problem ????? before me it was happening but now when I installed Firefox 4

    WiFi signals get stronger the closer the machine is to the router and the less interference/blocking of the signal like via walls with metal in them or of thick concrete.
    Since the signal emanates outwards in a sphere, your supposed to place the wireless router in a central location in the building so it covers all areas.
    The power of the router also has a affect, if your router is old or something not that powerful like a Airport Express, it doesn't have the ability to filter out other signals or enough punch to get through walls etc. or cover a large area as effectively.
    If you buy/have a powerful router of newer make and have issues where there is metal in the walls or thick concrete, then you can buy something like OpenMesh and by using Ethernet cables from the back of the router, extend the WiFi signal into other rooms and areas past the blockage.
    https://www.open-mesh.com/

  • I have a problem when opening author book samples in iPad they dont open at the first page,

    i have a problem when opening author book samples in iPad they dont open at the first page, they open further in, can you explain what i need to do to correct this , Ron Ritter

    Book? I thought you said sample?
    Not sure how that is possible, sorry.
    How many users out of the total downloaded are having this issue?

  • Problem when opening excel sheet in jsp

    Hi friends
    When i try to open excel sheet from my program I am getting two problems
    1. first row of excel sheet is empty
    2. while opening I am getting error message of "the file is not in a recognizable format"
    Please help me..It is an urgent work
    my code
    <%@page language="java" import="java.io.*,java.text.*,java.sql.*,java.util.*"%>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn = DriverManager.getConnection("jdbc:mysql://256.136.119.86/mydb","zzz","zzz");
    Statement st = conn.createStatement();
    StringBuffer sb = new StringBuffer();
    sb.append("SAP#" + "\t");
    sb.append("x-plant status" + "\t");
    sb.append("Total Amount" +"\t");
    sb.append(">90 days" + "\t");
    sb.append("\n");
    try
    String query="select * from temp_Xplant";
    ResultSet rs = st.executeQuery(query);
    while(rs.next()){
    sb.append(rs.getString("sapNo") + "\t");
    sb.append(rs.getString("status")+ "\t");
    sb.append(rs.getString("amt") + "\t");
    sb.append(rs.getString("days") + "\t");
    sb.append("\n");
    conn.close();
    st.close();
    catch (Exception e)
    out.println("error");
    conn.close();
    st.close();
    response.setContentType("application/vnd.ms-excel");
    // response.setHeader("Content-Disposition", "attachment; filename=\"test.xls\"");
    String testt = "tests.xls";
    response.setHeader("Content-Disposition", "attachment; filename="+testt);
    out.println(sb.toString());
    out.close();
    %>
    thanks in advance

    The problem here is, you have setted the content type as excel sheet and you are writing some String content into the output stream. when excel tries to read the String content it will surely throw some error. Lot of excel APIs are available in the market to generate excel sheets.
    you can find one in the below URL.
    http://www.teamdev.com/downloads/jexcel/docs/JExcel-PGuide.html

  • MS Excel 2011 pivot tables and Lion

    Hi,
    I run quite a lot of spreadsheets with pivot tables in MS Excel 2011. With the most recent version of Snow Leopard and all the patches from Microsoft it seemed to be working quite well. The minute after the upgrade to Lion, when I tried to refresh a pivot table Excel crashed, and it is crashing on every single file that I have. I also created new files from scratch, ran a new pivot table, and the second time I open the file it would crash upon refresh.
    Apart from being extremely annoying, there seems to be no way around it for the time being; I really hope that with the next release of Office 2011 they fix it. Anyone has similar experiences or ideas?
    Thanks,
    Claudio

    This is absolutely a problem after insalling Lion!  Office 11 was a great improvement over office 08 to handle pivot tables and now pivot tables are basically useless on Office 11, running Lion.  I confirm that munipulating pivot tables in Excel 11 causes excel to crash every time.

  • Excel 2010 Pivot Table VBA Not Refreshing Table

    My company recently upgraded from Excel 2003 to 2010. I had VBA written to take source data and convert it into a number of Pivot Tables on a number of worksheets. It has been working fine for years. After upgrading to 2010 the VBA crashed. I tracked it
    down to the fact that when my code was making changes to the Pivot Tables (changing fields, filters, etc...) the pivot table on the worksheet had no data, but the fields were there. I can manually go to the pivot table and manually refresh and all the data
    comes in.
    So I tried adding the VBA code to refresh the pivot table, but the pivot tables will not refresh with data.
    I tried:
    ActiveSheet.PivotTables("WO Pivot").RefreshTable
    and
    ActiveWorkbook.RefreshAll
    And these did not work.
    I also tried recording a macro for the manual steps to refresh and got:
     ActiveSheet.PivotTables("WO Pivot").PivotCache.Refresh
    This does not work either.
    The PivotTable name is correct, but I tried using the number as well, and the name works for other code manipulating the the pivot table.
    e.g.:
    With ActiveSheet.PivotTables("WOPivot").PivotFields("Task Title")
          .Orientation = xlRowField .Position = 2
          .Subtotals = Array(False, False, False, False, False, False, False, False, False, False, _False, False)
    End
    With Why isn't this working? Is there another way to refresh pivot table data in 2010?
    Thanks. P.S. I've tried formating this so it is readable, but it comes out garbled. Hope this looks better.

    The solution above didn't work for me, but the following did the trick:
    ActiveSheet.PivotTables("WOPivot").PivotCache.Refresh
    By the way, I identified it by recording a macro, then going on the Pivot Table that needed refreshing and pressing F9 to refresh it. The line of VBA code above was the result.
    Cheers,
    Marco.

  • Problem when Opening a file in the Function Moudle

    Hi,
    I was encountered a Problem , when i am opening a file from the function Module,
    But when i tried the same code in the ABAP Editor it was working fine.
    Is there any Difference from ABAP Editor & Function Module Editor
    (ex : Un-Code  Etc ) ...
    Let me know if your have any conserns.  Thanks In Advance.
    Regards
    Nag

    Hi,
    In the FM'S u might have declared the import,export,tables parameters.So u have to use these parameters in the source code editor of FM.If u don't use any of these parameters and try to use any other parameters which also not declared in the FM source code,then u will get the error.pz check the parameters u r using in the FM....
    Regards,
    Nagaraj

  • Why are objects in tables removed when opening a document (created in pages 2009) in the new pages?

    I have a problem: Documents I created in Pages 2009, when opened in the new Pages I get "objects in tables were removed".
    This makes all my documents useless !
    Is there any way to get the objects (images and tables mostly) to load into the tables across all my documents ?

    No, there isn't. Use Pages 09 with your old documents and Pages 5.0 for creating new ones. Do you really need Pages 5.0 is the question you need to answer. If not, don't.

  • I have problem when opening a pdf page, my mouse control is hijacked to that tab when im on other tab, i cant scroll or use the middle rollling button, i have to click at the pdf tab then my control over the mouse middle button is restored.

    I think I have this problem even on earlier version. The thing is I set open link in new tab and not switch over to the opened tab. My habit is to open a pdf page in the background and let it load first. What happen is that when the pdf page finished loading ( i do not set to download it), it hijacks my middle mouse button control. When i scroll down or scroll up on my original tab, it wont scroll on the tab, but insttead it scrolls on the pdf tab. I have to click on the pdf tab, then i can use the scrolling function on other tabs back. As for when i opened several pdf tabs, it seems i have to click on the tab that just finished loading, that means several times until they all finish loading. It has been getting on my nerve lately. And all pdf trouble i search from google led to unable to open pdf, firefox hang or crash when opening a pdf and the likes.

    core-el, i don't see the advantage of that or i can't figure out how i'm supposed to use it. for starters, i have to click the mouse in order to get "add bookmark here" to open, which is no different than clicking on the star in the location bar, or right-clicking on the page. there are also options in the bookmarks toolbar, but they all require clicking the mouse & holding down the right button, etc.
    my goal is to use keystrokes only. typing on the keyboard, using both hands, using the space bar & my left pinky finger to tab over are all painless routines for me. as soon as i have to take my fingers off the keyboard & use the mouse, the pain begins.
    as i said, in older versions of firefox, all i had to do to bookmark a page was click ctrl>d, then tab over & arrow down, when appropriate, to find the folder & add the bookmark. for me, as a touch-typist whose speed is between 60 & 80 wpm, this is lightning fast.
    if i have this wrong, please correct me. i just see it as more mouse clicks that don't save me time or pain.

  • Strange problem when opening new message.

    I have a rather annoying problem when I open a newly received SMS from a particular contact (lets call him Bill).
    When I open the new message from Bill, either by swiping to unlock or touching a banner message at the top of the screen. Instead to being shown the message itself, I will automatically be taken to the 'start new message' screen with none of our message history (i.e. as if I am starting to type an entirely new message to Bill)
    I can then cancel this and return to myself and Bill's normal message stream.
    Any ideas how to get around this annoyance? Thank you.

    I think you have 2 ways to go here. Figure out what html is from wherever weblogic gets it, meaning you have to delve into the docs, snoop
    around in directories and find what it must be sending (This is going to be unavoidable if you are going to change what weblogic is doing.
    Sooner or later you have to try to figure out where it gets this stuff from)
    or
    you can experimentally snoop on your url with a tool like wget or curl. These are fundamental web tools.
    The latter is always a useful thing to be able to do. (you need to formulate a query to get the content-type).
    Whoever managed to get weblogic to serve any files in the first place probably can figure this out.

Maybe you are looking for