How to stop prompt while opening an excel file in new window

hi all
i made one table in jsf and i am having two icons corresponding to each row one for open and one for save. on the click of open i am calling web services getting the excel file and opening it but it is happening only . when i choose to open option from the prompt which comes when i click on the link. how to remove that prompt so that on click of the open it should directly open the excel file. plzzzzzzzzz hepl

in the url of the new page that you are opening add --> &RetainAM=Y at the end.
Following points should be useful :
Suppose ,you have to open a new window from your page by clicking on a link or a button and after opening, when you click on any button in the parent page, if you are getting a session out error… try the following solutions:
1.     Add retainAM=Y in the destination URI of the button or link
2.     If you have the back button handling in your code, ensure that…
if (!pageContext.isBackNavigationFired(true)) is written instead of
if (!pageContext.isBackNavigationFired(false))
3.     Also ensure that the trasaction name is exactly same in both startTransactionUnit and end TransactionUnit
TransactionUnitHelper.startTransactionUnit(pageContext, "sameName");
TransactionUnitHelper.endTransactionUnit(pageContext, " sameName ");

Similar Messages

  • Microsoft Forms and Microsoft Visual Basic while opening the Excel file

    Hello,
    I have issues with 2010 64 bit Office Pro Plus Excel. Whenever I open an Excel file (97-2003 worksheet) which has macros then I get below 2 errors in sequence.
    Please note that all macro settings are enabled and below are my system configs.
    Win 7 Ultimate 64 bit,
    MS Office Pro Plus 2010 64 bit with SP2.
    Googled all and tried but in vein and also note that I dont have any .exd files under ../forms to delete. Please help.
    Please note that for others with same system config/office versions and same 97-2003 worksheet it works so issues is only in my system.
    First Error
    Microsoft Forms
    Could not load an object because it is not available on this machine.
    Second Error
    Microsoft Visual Basic for Applications
    Compile error in hidden module:  MainUtilities2.
    This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.  Click "Help" for information on how to correct this error.
    Thanks.

    Your macro's will not run in a Office 64 environment only in a 32bit environment. The 64bit environment has a whole different setup and macro's created in an earlier 32 bit environment will stop working.
    So if you want to use them in a 64 Office environment you have to rewrite the macro's.
    have a look here:
    http://msdn.microsoft.com/en-us/library/gg264421.aspx
    Maurice

  • 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 while opening an excel file

    Hi
    I am trying to open an excel file by clicking a link where it goes to action class and then sets the content type to excel and I am opning it from there�but the strange thing is that a file download opens with open/save/cancel but in the same window but it is showing a warning in the dailog box(windows warning which comes as an exclamatory mark) saying "This type of file could harm your computer if it conatins malicious code" and on cliking open it shows a dialog saying "Could not open http://localhost:8080/context/myaction.do?fileName=3.xls" .Dont know why its trying to opne my action url rather than it should look for 3.xls in my folder
    Any clue on this would be helpful

    Hi,
    Try saving the file and then check if extension is xls. If you are not able to do anything (open, save), try to call the same application (file), from other machine, as sometimes browser gives the problem.
    If still problem occurs, then copy paste the code for setting the content type here.
    Best of luck,

  • Problem opening excel file in new window

    Hi,
    I have a JSF application that sends an Excel file back to the user.
    My backing bean has a method that uses POI to generate the excel file and then write it to the servlet response.
    This works fine if I call the method from a command button, but this displays the file in the current browser window, whereas I want to open the file in a new window.
    I added an onclick javascript call to a command button which does a window.open() to open a jsp in a new window. The jsp contains an empty view, as I'm using an on-load phase listener to make the call to my backing bean method which should send the excel file when the file opens.
    However, when the window opens, I get an IE error message saying 'Could not open xxx.faces', and then an excel error message saying 'Could not open xxx.xls. This may be because the file does not exist, or the file is already open etc etc'
    However, I found that if the popup window goes through a servlet (which just forwards to the jsp page) instead of going to the jsp directly, it works like a charm.
    Any ideas or suggestions on how to fix this would be very much appreciated. If I can't fix it I'll just stick with the servlet approach, although it just seems a bit messy.
    (I'm using IE6 SP2, tomcat 5.5 btw)
    Cheers,
    Stuart

    I'm doing a similar thing, but I use commandLink to lauch the window. CommandLink has the "target" attribute that I set to _blank.  As you would expect, that opens up the page in the new window.                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I creat or open an excel file in labview?

    I am using Labview 7.1 and report generation toolkit. I got the example code from this address :"Creating a report in Microsft excel using the labview report generation toolkit"
    But seems this example only can creat report when the excel file exist, otherwise it will get error code 7.
    How can I creat a new file if it doesn't exist and open the file if it exist? Can I creat a report without openning excel because I need to creat more than one report and check it after the test.
    Thanks

    Simply use the "Open/Create/Replace File.vi, and wire a constant "Create / Replace".
    Wire a path/filename and make sure the name ends with the extention .xls
    If you have multiple lines (likely), place aech line in an array and use the "Array to Spreadsheet String.vi" before sending it to "Write to file.vi". Don't forget to close the file.
    Hope this helps..
    JLV

  • Can we avoid the message  while opening downloaded excel file.

    Hi,
    I have an interesting issue.
    In my scenario I am downloading characteristics value from COID.
    Through background job we are getting that report in our Out look mail box. Report format is XLS.
    While opening the attached XLS file we are getting one message.
    The message is as follows
    The file is not in a recognizable format
    •     If you know the file is from another program which is incompatible with Microsoft excel click cancel, then open this file in its original application. If you want to open the file later in Microsoft excel. Save it in a format that is compatible, such as text format.
    •     If you suspect the file is damaged, click help for more information about solving the problem.
    •     If you still want to see what text is contained in the file, click OK. Then click finish in the text import wizard
    if we ok it the file is opening properly
    So My question is Can we avoid this message ?
    Edited by: amit kulkarni on Apr 10, 2008 9:01 AM

    Hi,
    can you check with your ABAPer on this or post this thread to ABAP Developement forum
    Regards,
    Sankaran

  • How to open ALV Excel Inplace in new window

    Hi everybody,
    I have an ALV report which is used in Excel Inplace mode. However, I'd like to have Excel to be opened in a new window and not in the ALV container. I do not want to manually export my data to Excel as described in many discussions here on SCN, but I want to have exactly the same xls document opened that is generated by the ALV control. This is because I want to open the default XLS template uploaded into BDS filled with the data of the ALV grid.
    I thought that getting the generated XLS using the Desktop Office Integration, i_oi_document_proxy->repoen_document would work (using open_inplace = space), but unfortunately this opens the excel template without data.
    Does anyone have a soulution for this?
    Thanks and BR,
    Tamas

    var url:URLRequest = new URLRequest("http://www.adobe.com"); navigateToURL(url, "_blank");
    getURL/navigateToURLThis method uses the getURL (ActionScript 2.0) or navigateToURL (ActionScript 3.0) command to create a new browser window by targeting a new, blank window. This method is simple, works on all browsers, and requires no JavaScript. This method, however, it does not provide control over window location, size, scrollbars, or toolbars.    I guess something like this you needed?

  • Not able to open excel file in new window any one plese help me as early

    Hi all,
    I have a imag tag in jsp on click on the image i am submitting the form
    1. i have used the below code
    HSSFWorkbook wb=viewHelper.getExcel();
    response.reset();
    ServletOutputStream outs = response.getOutputStream();
         response.setContentType("application/vnd.ms-excel");
         response.addHeader("Pragma", "No-cache");
         response.addHeader("Cache-control", "no-cache");
         response.addDateHeader("Expires",1 );
         wb.write(outs);
         outs.flush();
         outs.close();
         return;
    2. I got one dialog box to open ,save,cancel . if i try to open it is openeing in the same window i had made the request. i need it to ask for in which type of application to open. i.e, in excel , notepad,.....
    please mail me as soon as possible
    [email protected]

    I had a similar porblem....
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......
    Thanks in advance...

  • Opening a URL/File in new window instead of new tab

    I think I know the answer to this, but I'd like to check anyway.  When setting an action to Open URL or File for a button/click box/hyperlink/etc, is there a setting in Captivate to open the URL/File in a new WINDOW instead of a new TAB? I know to use the "New" setting along with the Open URL or File action. I assume opening in a new window instead of a new tab by default is going to depend on the settings of whatever browser you use, but like I said, just wanted to check. Thanks!

    If you open it in javascript and specify a height/width or location it should open in a new window.
    window.open("http://www.adobe.com", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");

  • Error while opening an excel file via labview

    i don't know why i get this message,then the excel won't open at all

    It appears that the New Report .vi only accepts the .xlt template format and not .xltx as one would commonly expect. I am currently working to determine for sure that this is the case, but it does run (mostly) properly on my end if you make that change.
    When I say mostly, I mean there are a couple other minor issues with your code. First the first frame of your sequence structure is really accomplishing anything. If your intent is to open a reference to the excel template, there is no need because the New Report .vi does it automatically.
    Second, you will need a file path of some sort wired in to your Save Report to File .vi or else you will get a different error message after fixing the .xlt issue. I am currently researching whether this should be marked as a required terminal instead of recommended so that it not being wired would result in a broken run arrow rather than an error.
    Let me know if these suggestions resolve your issue, or if I can provide further input on what you are doing in your first frame. I will touch base again once I determine whether these are expected behaviors or bugs.
    Christopher S. | Applications Engineer
    Certified LabVIEW Developer
    "If in doubt... flat out." - Colin McRae

  • While opening a pdf file in new tab, the rest tab's mouse scroll not works until closing the pdf file tab

    I have noticed this problem in ff5 too. Suggest me is it a bug my machine or it came with it. If this issue is real i can provide more detail how often/ on what stages it happens.

    There's a Bug filed about that issue.

  • Intermittent Error 41106 Error when trying to open an Excel file.

    I am having an intermittent problem while opening an Excel file.  The problem only occurs occasionally during execution of my program.  My program has a cluster of buttons each button opens a sub VI that is part of a calibration process.  The first VI generates an EXCEL filename that is used to save all calibration data.  A template is opened, data is placed in this template, and then it is saved under the generated filename.  Most of the time this seems to work fine, but every once in a while I receive a -41106 error indicating that Microsoft EXCEL did not open.  As far as I can tell when I run each sub VI independently they work fine and no errors are generated.  Does anyone know why this might be happening?  I would appreciate any help.
    Thanks 

    What version of LabVIEW and the Report Generation Toolkit are you using?  I remember adding some code in the 1.1 version of the toolkit to attempt to avoid some Microsoft Excel latencies with opening/closing the application repeatedly, but it was by no means fool proof, since Excel sometimes takes its sweet time leaving memory when the application exits.  Without knowing any more specifics, my best suggestion is for you to add a small delay between successive operations regarding opening/closing Excel and see if that helps.  Also, if you could post a simple VI that demonstrates the behavior, that would be extra helpful.
    Oh yeah, and another suggestion would be to open one report reference at the beginning of your program, and use this reference through the whole thing...I understand that this might not be possible, though, if you're opening different worksheets throughout the course of your application running.
    Good luck,
    -D
    P.S. - For those of you reading this wondering why I would automatically assume MegaMan is using the Report Generation Toolkit, he cites error -41106, which is an error specific to this toolkit.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Is it possible to open Excel file in XAML Windows Store App?

    Hi,
    I want open excel file from local folder(not from Url) within the windows store app.
    Could you please help me how to implement ?
    Thanks,
    Siva varri
    Thread response from msdn

    Hi,
    If you want to open an excel file by a windows store app. There is no direct API in windows store app can handle excel file. You will need to find a third party component. But
    if you want to launch a file into its default handler, please see 
    Launcher.LaunchFileAsync API. And you can refer to the link below:
    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh779671.aspx
    private async void Button_Click(object sender, RoutedEventArgs e)
    StorageFolder storageFolder =
    Windows.Storage.ApplicationData.Current.LocalFolder;
    StorageFile file =
    await storageFolder.GetFileAsync("56.xlsx");
    if (file != null)
    // Launch the retrieved file
    var success = await Windows.System.Launcher.LaunchFileAsync(file);
    if (success)
    // File launched
    else
    // File launch failed
    else
    // Could not find file
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Why does TDM Importer start up when I open an Excel file in LabVIEW, and how can I stop it?

    I have a new application using LabVIEW 2012 SP1.  I open an Excel file using the Report Generation toolkit and when I do so, a small TDM Importer window pops up on top of the Excel file.  
    How can I prevent this?

    Hi Steve,
    The TDM Importer pops up because the report generated in LabVIEW is in the TDMS file format.  TDMS is a binary file that requires an importer to make sense of the binary data and translate it into an Excel spreadsheet.  As per this white paper, the appearance of the floating toolbar is expected behavior:  http://www.ni.com/white-paper/5874/en/
    To the best of my knowledge, you cannot get rid of the floating toolbar unless you uninstall the add-in, in which case you probably would not be able to open your LabVIEW-generated reports.  However, as of Excel 2007, the toolbar is embedded in the "Add-Ins" tab instead of floating on your spreadsheet.  You can see how the toolbar looks as of Excel 2007 in step 6 of this white paper:  http://www.ni.com/white-paper/5885/en/
    If there is a way to embed the toolbar in Excel 2003, it would be the exact same way you would embed any other floating customer toolbar in Excel.  In other words, I don't think this has anything to do with the fact that it's NI's add-in.  This is just the way Excel 2003 and earlier treats add-in toolbars.  Someone on these forums may well know a way to embed it (perhaps a macro?), but you may have better luck contacting Microsoft.  I'm not sure whether it's even possible for a user to embed the toolbar.
    David R
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Sharing media across user accounts on the same iMac

    My partner and use the same iMac but we have to different user logins. We are often at the same events and like to use the clips, photos or footage taken by the other in our iMovie projects. Is there an easy way to access those media files while work

  • Attaching a file to gmail in firefox is extremely slow

    When using gmail through firefox when I click on Attach file and then select a file it takes a very long time for the file to actually get attached so that I can send the email. Is this a problem with the Adobe plug-in? A firefox problem? Please help

  • Sorting by headings: Name, Artest, Album, Popularity gone in itunes 11

    If you're looking for a particular song from an artist and select :See all results for a particular artist, there's no longer a way to sort by clicking on the header such as Album to arrange alphabetically. Often there are several versions of the sam

  • About Dot matrix printer device problems

    Hai ,           I have a problems in smartforms and i used the printer device is dot matrix(Used PLY paper)..Its unable to print the vertical & horizontal lines but the corresponding spooler contains correct alignments..in the same time i used HP las

  • Broken software Creative Zen Mi

    Hello there, I'm originally from Holland, and I'm doing my internship here. But it seems my software, necessary to use my mp3 player properly, is not working anymore. The CD-ROM has got a scratch on it, and I can't install it anymore on my new PC her