Close the IE window openeded after a Crystal Reports Report opened in Excel

Hi all
I wonder if any of you have an answer for this doubt:
I have developed a series of Crystal Reports reports which I open by using the opendocument command and by specifying the parameter &sOutputFormat=E. It works properly: When the user executes the report, an Internet Explorer window appears , followed by a File Download dialog box where the user chooses wether to Open, Save or Cancel.
This dialog box has a checkbox for allowing the user to "Close this dialog box when download completes". If the user had already checked this option ( for a previous download, for example), then the excel file gets saved automatically but the Internet Explorer window opened at first, remains opened which may seem like the report is still being generated, even it was already saved.
I'm wondering if there's a way to close this Internet Explorer window automatically, once the report was saved.
I greatly appreciate any contribution.
Gabriel Sanchez V.

Hi Don. You are right, as I mentioned, I'm using the opendocument command which gets called via an URL.
Did you mean this is not the proper forum to post my question? This forum is "SAP Crystal Reports Design" isn't it?. Could you please clarify this point?
Thanks in advance
Best regards

Similar Messages

  • No link to the local .avi files after exporting Crystal report as .pdf

    Hello all,
    The overall scenario is like-
    My application fires a query on SQL Server database and result of that query is stored in a Dataset. This dataset is set as a datasource to the Crystal report.  Now some, records (returned by the query) have .avi files(i.e. Event Videos which are stored on the local hard disk) associated with them. I have stored these .avi files in a specific path on local Hard disk say "C:/EventVideos/*.avi" .   I used a special format in these avi files name. (like - "EventVideo_1.avi" (This is for 1st event), "EventVideo_5.avi" (This is for 5th event)etc. to identify which avi is for which event. All events do not have avi files associated with them)
          Now, I take one Text Object in crystal report. Using it's Format editor created a formula for hyperlink as -
          "file:///c:/EventVideos/EventVideo_" + {DataTable1.EventID} + ".avi" .
    EventID is the field of dataset which has ID's (like 0, 1, 2,  3, 4 etc) of all resulted events. It is of a String data type.
         Now when I export, my report as .xls, .rtf, .doc, I can open the avi files. When I bring cursor on this Text Object, cursor get change to Hand and after click on it avi file start to play.
         But if I export it as .pdf, it does not contain the link for avi files. When I bring cursor on this Text Object , it does not change to Hand, and after click on it nothing happens. No video play.
    I stick to this problem. What should be done in this case?
    Appreciate your help.
    Thanks in advance.

    duplicate - please do not post multiple times

  • Using separate_frame=true and trying to close the applet window after...

    We are using separate_frame=true and trying to close the applet window (the one with the large gray box) after using the following post-form trigger:
    if :system.last_form = 0 then     
         message('Please wait while Forms closes - '||:system.last_form);     
         web.show_document('/forms/html/close.htm','_self');     
    end if;
    This works fine for the first form we open, but if that same form using Open_Form to open a child form we have a problem. When the child form is closed the user is returned to the parent calling form (which is expected), but then when the parent form is closed the separate applet window fails to close. Any suggestions?

    I guess you mis-interpreted the value of :SYSTEM.LAST_FORM. From the online-help:
    SYSTEM.LAST_FORM represents the form document ID of the previous form in a multi-form application, where multiple forms have been invoked using OPEN_FORM.So LAST_FORM shows always the ID of the last activated form, and this will never be 0 if you issued one OPEN_FORM in your application.

  • After login close the login window and open home page in new window

    Hi guys,
    I want to go to a new window for the "home page" without browser back button etc. after login validation.
    And also close the login window at the same time.
    Here is the code I used after the login validation.
    ExtendedRenderKitService erks =Service.getRenderKitService(FacesContext.getCurrentInstance(),ExtendedRenderKitService.class);
    StringBuilder script = new StringBuilder();
    script.append(" params = 'width='+screen.availWidth-10;\n" +
    " params += ', height='+screen.availHeight-50;\n" +
    " params += ', top=0, left=0'\n" +
    " params += ', fullscreen=yes';\n" +
    " params += ', scrollbars=1';\n" +
    " params += ', resizable=1';\n" +
    " params += ', status=1';\n" +
    "window.close();\n" +
    " newwin=window.open('home.jspx','xxxxxxxxx', params);\n" +
    " if (window.focus) {newwin.focus()}");
    erks.addScript(FacesContext.getCurrentInstance(), script.toString());
    This successfully opens a new window. I want to close the current login window at the same time.
    Please help me with this.
    Regards !
    Sameera

    on the 'Submit' onclick event add some JavaScript code:
    this.form.target = '_blank';

  • After I finish a search, How do I close the search window?

    after I finish a search, how do i close the search window?

    I have same macbook air and i am assuming ou mean when its in fullscreen? well go to the top and the top bar should come down and you should see a blue icon with two little arrows facing towards eachother. Click it and it should minimize then click the little red x. done!
    Hope this helps
    Enchanterblu

  • Adobe illustrator crashes right after I Close the tutroial window!!  Help!

    Adobe illustrator crashes right after I close the tutroial window!!  Help!
    I just purchased illustrator after my trial period. It wont run!  And have resinstalled several times. Cleared my font cache.  cleaned my registry. Tried logging as a diffferent user. 
    Im on windows 7
    I need this to work now!!  I have a deadline for a project and this damn program wont work now.  WTF Adobe.  I'm screwed.!!
    Help me please now  asap!

    This can be caused by a permissions problem with AI being unable to write the Preferences file to the proper folder. You can try running the program as an administrator.

  • With Safari 5.1, I have to re-login after I close the browser window

    After I upgraded to Safari 5.1 from the previous version, I noticed some changes that I do not like.  Whenever I close the Safari browser window and later open it up again, I have to re-login to all websites that require login (such as ebay, Facebook, my Yahoo).  With the previous version of Safari, this only happened when I quit Safari and reopened the application afterwards.  With the new version, I even have to set my default location on Google Maps every time after I close the browser window.  With the previous Safari version, that didn't even happen after I quit out of it.  Another thing I noticed is that the browsing history starts listing again after I close a window, even though Private Browsing remains checked.
    Is there a setting I can change to avoid having to re-login every time I close a window ?  Or is this a feature of Safari 5.1 that cannot be changed ?

    If you have Private Browsing enabled, that's why you aren't staying logged into websites. Same with Google maps.
    Private Browsing doesn't  "remember" AutoFill information.
    Click History in the menu bar then click: Clear History

  • Plugin-Container keeps playing video sound after I close the tab/window

    Plugin-Container keeps playing video sound after I close the tab/window. I have to shut down the process to make the sound stop.

    Try disabling hardware acceleration. Many visual bugs can be attributed to issues with graphics drivers.
    (Firefox -> Options -> Advanced -> General -> [ ] Use hardware acceleration when available)

  • Any way to close the DOS window ?

    Is there anyway to close the DOS window, after executing a DOS command in a GUI Java program ?
    I keep getting "Please press any key to continue..."..I don't think I can use the System.exit in a GUI Java program?

    Yes.
    Process p = Runtime.getRuntime().exec(...);
    PrintStream out = new PrintStream(p.getOutputStream(), true);
    out.print("a");You get the output stream of that process and print an a (which I guess will work just like you pressed a key). I don't know if there has to be a delay before you write this character. If you send it before it has written "Press a key ..", then it might not work. In this case you can add a line with Thread.sleep(1000); to sleep for 1 sec in this example, just before you execute the print statement. Or you can get the InputStream from the process, and read everything it sends and check if/when you get the "Press a key .." text:
    PrintStream out = new PrintStream(p.getOutputStream(), true);
    BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String s;
    while ((s = br.readLine()) != null) {
      if (s.startsWith("Press a key")) {
        break;
    out.print("a");something like that..
    There might be cases where you don't get a "Press a key" back if the DOS window is big enough to hold all the information (it is possible to change the buffer for DOS windows so they can hold more than 25 lines).

  • How to close the main window  from Popup

    hello all,
    i need to close the main window from a popup, so i create a popup and after clicking on close button of this popup, should also the main window be closed.
    how can do this please?
    BR

    Hi
    Please go through this.. check thomas reply
    Re: Close Main Window directly on action on Pop up window
    also check this..
    how to close main window on click of a button on popup window
    cheers,
    Kris.
    Edited by: kissnas on May 12, 2011 5:06 PM

  • After installing Crystal Reports XI on Windows 2003 server with one error..

    After installing Crystal Reports XI on Windows 2003 server with one error... REGSVR sapldap.dll error.  I had to regsvr it manually.  Crystal still didn't run.  Found out that Crystal Reports XI will not run until you change DEP to protect only windows program and services.  Thanks.

    Thank you for sharing your finding. Very much appreciated.
    The DEP is a known issue and it is documented in [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Crystal Reports XI was not compiled with the nx flag as it released before Windows XP Service Pack 2 or Windows 2003 Service Pack 1.
    As for the sapldap.dll. I'm not sure where this is coming from. I do not see this dll on my install, however it does come with the SAP portal integration kit. So I'm not sure if that is flying around somewhere on that server(?)
    Ludek

  • I can't finish the installation because a window tells to close the SafariNotificati application, but i haven't got anything open other that the Creative cloud window

    I can't finish the installation of Acrobat XI Pro, because a window pops up and tells me to close the SafariNotificati application, but i haven't got anything open other that the Creative cloud window, it always stops at 42%, what can I do? All other applications downloaded without any problem

    I am having a similar problem. Running Xp.
    Latest revision of firefox.
    After using firefox for a while if I exit, parent.lock is locked and i have to reboot to reload firefox.
    I have killed all firefox applications from task manager (usually there are none). and I have tried 3 different "file unlock" programs including unlocker to no avail.
    I also recently installed a program that shows -all- open files, and parent.lock is not listed, and thus not closable/unlockable from there.

  • I always have many tabs open in FF, and rely on it restoring them each time I close/open it again. Sometimes I'll have a second window open and will close the main window first, losing a record of tabs I had open. Is there a way around this?

    Seems like when FF restores a session, it restores the session of the last window open. If you use tabs as a way of keeping a list of things to do or look at, you have to be careful if you have a second window open to close the second window before your main one, or you will lose your list. I'm absent minded though and do this all the time. The only way to prevent this is bookmark all my tabs once a day, but I tend to forget to do even that. Any workaround for this?

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • Closing the Forms Background Page closes the Java-Window as well

    Hi,
    we are running Forms 10g and start the Applet in an separate window. This cannot be changed, because otherwise we lose some size of the Window and the Look and Feel is to different as with Client-Server mode.
    If a User closes the Background-Window or starts a different URL in the Background-Window, the Java Applet is closed directly without any warning.
    This isn't nice for the Users, but they have to live with it.
    But if I'm running a couple of Forms-Sessions in the Applet maybe with Database-Locks as well, and somebody closes the BG-Window, those Forms-Sessions (frmweb.exe) keep running for ~ 5-10 Minutes and the Locks are kept as well.
    Is this behaviour intentional or can it be changed ?
    Any comments are welcome.
    Mark

    Hi Craig,
    in principle I agree that it might be a training issue, but ...
    the default setup for the IE at this customer-site is that Links don't open in a new window. We may change that, but who knows.
    With this setting, the following happens quite normally.
    Forms is started which leeds to the "Background-Window" and the Java-Applet.
    If i minimize all windows and start f.e. Citrix or any other URL-Link, that link is opened in the Background-Window and the Forms-Java-Applet dies.
    In theory this can be avoided by training, but I do not agree, that it is a reasonable behaviour to check all open windows before I start a new URL.
    It just doesn't make sense in my opinion. It might be difficult to solve, but it still doesn't make sense.
    But we've found a solution ourself at least for the accidential closing of the Backgrund-Window :
    In formswegh.cfg we had a line like :
    =======
    HTMLbeforeForm=<_p align=center><_b>nicht schliessen</_b></_p><_p align=center><_b>sonst wird die</_b></_p><_p align=center><_b>Anwendung abgebrochen !</_b></_p>"
    =======
    we added an onBeforeUnload so that it looks like :
    =======
    HTMLbeforeForm=<_BODY onBeforeUnload="return ' Achtung Anwendung wird geschlossen !'"><_p align=center><_b>nicht schliessen</_b></_p><_p align=center><_b>sonst wird die</_b></_p><_p align=center><_b>Anwendung abgebrochen !</_b></_p>
    =======
    This leads to an "Is it OK"-question as soon as the BG-Windows is closed or another URL is called. This prohibits the Users of accident closing. If they still do it, it's their fault and than it is a training question.
    Thanks for your input and maybe this help some others as well.
    Mark
    P.S.
    the underlines before the p's and b's need to be deleted. Just because they are interpreted as HTML otherwise

Maybe you are looking for