Checking if Report has fully loaded in Java Project

Morning All,
I hope this isnt another one of my daft questions, but how can I put a listner or determine when a report
has fully loaded.
Im testing out the "Crystal Reports Java Project" and am trying to determine when the report has fully
loaded so that I can dispose of it and close the Frame.
So far I am not having any luck, I have got some listeners checking when the window looses focus
and such but that still doesnt tell me when the report has finished loading.
I also tried useing
viewerFrame.reportViewer.isBusy()
but I am not happy with this, as sometimes it returns the correct "true" result while its loading, but then other times it says "false" when clearly I can see the report is still loading.
A post I found somewhere said that the only way is to determine if the total page count in known, but
I have not worked out how to do this yet, or atleast cant find how to do this.
So..... any ideas how I can be sure the report is loaded so that I can programmaticly export the report
and then close everything up.
Cheers
Darren

If you are programmatically exporting the report, typically the code would look as follows:
reportClientDoc.open(REPORT_NAME, 0);
ByteArrayInputStream byteArrayInputStream =
(ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
reportClientDoc.close();
As you can see there is no need to check to see whether the report has finished loading, because the ReportClientDocument deals with that process behind the scenes, and won't close the report until the report has finished processing.

Similar Messages

  • Satellite Pro M40: screen stays dark untill Windows has fully loaded

    Hello to all on here.
    I have a problem with my laptop. My laptop is a Satellite Pro M40.
    When I turn on my laptop I have found the back light will not come on... the screen will stay dark untill it has fully loaded into Windows. I have checked all of my power options and there all fine. Even if I can get to the Bios screen its impossible to read the txt due to no backlight. I have tried holding the Fn & F7.. noy joy.
    Does anyone have any ideas?
    Richard

    Hello Richard
    I didnt see something like that before and I am little bit confused why you can not see BIOS settings but running OS. Usage of FN+F7 key combination will not help because this option works just under Windows and not under DOS level.
    If possible try to connect external monitor and test it again. Anyway I dont believe that you can fix it on your own. Try please to contact Toshiba authorized service partner in your country. Explain the situation and you will see what they will say.
    If you find out something please let us know. It will be really interesting to know why this happen.

  • Loading a Java project into Eclipse.

    I am trying to load a project from in eclipse
    The project is in c:\Project and is called ABC.
    My workspace in eclipse is c:\MyWorkspace.
    I am trying to import this project into the above workspace
    I am saying: New - Project - Java Project - Create project from existing source (and point it to c:\Project\ABC)
    Error:The specified location already exists.
    How do I get project ABC into my workspace ?
    I seem to have forgotten

    Just move the folder "ABC" from C:\Project to C:\Workspace
    then create a new Java Project named "ABC" and you are all set.
    Don't choose "Create from existing project" Just create the project.
    Message was edited by:
    jjhusa01

  • How to Up load a Java project in the Web Server

    Hello friends,
    Can u please help me to sort out this problem i want to upload my java project ie a web application with some database operations like add,delete,update.
    I took webspace in the webserver and from the client system i have to upload my Application please help me.
    Thanks
    Ramesh Nagu

    Hello friends,
    Can u please help me to sort out this problem i want to upload my java project ie a web application with some database operations like add,delete,update.
    I took webspace in the webserver and from the client system i have to upload my Application please help me.
    Thanks
    Ramesh Nagu

  • Java embedded browser has glitchy load

    I'm using the "easy way" javascript method of adding a QT movie to a web page:
    script src=AC_QuickTime.js language=javascript
    script language=javascript
    QT_WriteOBJECT
    'MyMovie.mov' , '320', '240' , '','autoplay','true'
    Sometimes the page hangs for a moment before fully loading. During this hang, only the part of the quicktime controller bar (the part containing the scroll bar/download progress bar) appears. The icons on either side of it pop up after the hang, and the movie abruptly starts playing a few seconds into the clip (as if it had started during the hang but was not visible)
    It seems to only happen when the movie has been previously viewed and cached - therefore ready to play.
    Hope this makes sense - is there a neat line of code that can get the page fully loaded before the movie starts?
    Any suggestions appreciated!

    I saw no issue as you described and your file plays without any when viewed on my Mac using Safari beta 3.
    You page code is missing some elements:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.postmark.tv%2Freel%2Fqequints %2Findex.htm&charset=%28detect+automatically%29&doctype=Inline&group=0
    Sorry for the long URL.

  • Checking wether a JWindow has finished loading all widgets

    Hi,
    I'm writing a class that implements a splash screen. What I need to know is when the main app is fully loaded and ready to work so that I can close the splash. How can I check this? I use several Toolkit.getImage() calls, and as far as I found out I have no way of kmowing if the corresponding image has been loaded.
    Has anyone done this ? Am I going about this the wrong way ?
    thanks in ahead,
    -Miguel

    Thanks!! That solves the images problem!
    But what about the rest of the widgets ? I may have a number of widgets without any images ... is there any way of knowing wether the widgets are loaded and running ?
    -Miguel

  • A Required COM Add-in program for XL Reporter has not been loaded and ....

    A Required COM Add-in program for XL Reporter has not been loaded and prohibits Microsoft Excel from running. For more information, click help.
    XL 2007, with the Trust level for macros set to minimum. SBO 2007 PL 42.
    Thanks
    Charles

    Read the following solution from SAP for your problem:
    When we open XL Reporter we get an error
    message "A required COM add-in program for XL Reporter has not been loaded
    and prohibits Microsoft Excel from running." when trying to open a report
    definition.
    SOLUTION FOR THE PROBLEM:
    Reason and Prerequisites
    You need to be an administrator on the local machine to add COM add-ins.
    Solution
    The user should be added as a member of the administrator role on the
    local computer the first time you start Excel from XL Reporter the first
    time so that the COM addin are registered, then you can remove the user
    from the administrator group again.
    Manually Loading the XL Reporter Excel COM Add-In
    Symptom
    If you install Microsoft Office after installing the XL Reporter
    application or use another Windows user than the one you used when
    installing XL Reporter, you can get an error message.
    Reason and Prerequisites
    The reason for this is that the report writer COM Add-in has not been
    loaded, which prohibits Microsoft Excel from running.
    Solution
    1. Start Microsoft Excel. If you already have the COM Add-ins command on
    the Tools menu, go to step 7.
    2. In the Tools menu, choose Customize.
    This opens the Customize window.
    3. Choose the Commands tab and select Tools from the Categories pane on
    the left.
    4. In the Command pane on the right, scroll down to the COM Add-ins
    command.
    5. Select the COM Add-ins command, hold down the mouse button, and drag
    COM Add-ins from the Commands pane over to the Tools menu on the Microsoft
    Excel men bar. When the Tools menu commands appear, point to where you
    want the COM Add-ins command to appear on the menu and release the mouse
    button.
    6. To close the Customize window, choose Close.
    7. On the Tools menu, choose the new COM Add-ins option.
    This opens the COM Add-ins window.
    8. In the window, choose Add to open the Add Add-in window.
    9.Select the IXXLReporter.dll file located in the Client directory in the
    XL Reporter program installation area and choose OK.
    10. In the COM Add-ins window, select the XL Reporter checkbox and choose
    OK.

  • Reports 10g and Firefox 3 - How to load the java bean

    Hi,
    I have problems configuring Firefox to run Reports.
    I have been told that Firefox cannot load the java bean right from the start.
    If someone could direct me to documentation on using Firefox and Reports, that would be nice.
    Many thanks in advance.
    Jean

    Hello,
    If you execute your Reports as a JSP page : URL like http://server:port/reports/myreports.jsp?param1=...
    the output will be in HTML
    If you execute your Reports using the Reports Servlet : URL like hhp://server:port/reports/rwservlet?report=myreports.jsp&param1=...
    the output will be in the format specified by DESFORMAT : (HTML / RTF / PDF / ..)
    Supported values for DESFORMAT :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/bld_desformat.htm
    Regards

  • Install sneak preview java  and check if it has installed

    hi all:
          it is said to use ESS  there should be  for a installed sneak preview java  for which a technical system
    should be created on SLD, my question is how to install sneak preview java  and check if it has
    been installed?
    Edited by: jingying Sony on May 5, 2010 8:32 AM

    sneak preview java you are pointing is J2EE server , i think

  • Checking when file has loaded (AS2 in CS3)

    Hey everyone,
    I am currently writing a site and one of the things it does is read variables from a database (by using the following code to access a php file which does the database lookup):
    loadVariablesNum ("loadvariables.php", 0, "POST");
    This works perfectly, however following this I load a number of images based on the variables that are returned. I am still quite new to flash so i don't think this is complicated, but i can't work out how to put an eventlistener, or something similar, so i can tell when loadvariables.php has finished loading. Then i can just load the relevant images in the oncomplete section (or the equivalent).
    I would be immensely grateful if anyone could point me in the right direction as i can't seem to work it out.
    Thanks very much everyone, i really appreciate your help,
    Dave

    Yep i have used clearinterval to clear it once the data has loaded. Thanks so, so much for your help, it really is greatly appreciated, no doubt i will be back again soon!!
    Thanks again,
    Dave

  • How do you identify when a report has finished?

    Hi all,
    I've got a big report that is taking a while to run (approx 1min) and the problem I'm having is that my users are getting bored of waiting and starting to click around my web application and re-running the report because they think it has failed. The re-running of the report is causing more load on the system and the reports to run even slower. What I would like to do is stop them re-runnning the report maybe by somehow locking the web page until BI publisher has finished but I don't know how to get a message back from BI publisher.
    Currently I'm running the BI publisher report by having a button push which redirects the users web browser to a url such as:
    'http://'||:BI_PATH||'/xmlpserver'||:BI_DIRECTORY||'/Custom Reports/'||:p180_report||'/'||:p180_report||'.xdo?_xpf=&_xpt=1&_xdo='||:BI_DIRECTORY||'%2FCustom%20Reports%2F'||:p180_report||'%2F'||:p180_report||'.xdo&_xt='||:p90_template||'&_xf=rtf&_xmode=4'
    And then as I'm returning an rtf doc the familiar save, open or cancel popup comes up. The problem is that before the popup appears they can re-click the run report button.
    One way round it I've thought of is to have the report generate to a file system and redirect the user to a waiting page that checks periodically for the files existance and then when it does exist forward the user to a page with a view report button. This sounds like a lot of effort, does anybody know of a better way?
    I've also wondered if running the report using webservices would be an option, is there a way of getting BI publisher to run a web service when a report has finished? This could then interact with my back end server and the web page could act on that, or am I totally barking up the wrong tree?
    Any help would be greatly appreciated!
    Thanks,
    Darren.

    Hi Darren
    couple of ideas
    1. Rather than 'run' the report, get it to run through the scheduler immediately. Once its running through the scheduler you could then poll the scheduler tables to see when it completes. You could either redirect the users to a wait page or show an egg timer until the document has been created. this would require the document to be delivered to somewhere for you to poll as the URL will not return a job id.
    2. Bit more involved but probably better is to hook into BIPs web services. So rather than the button issue an http request it calls a servlet to issue a web service call to BIP to schedule a report. The WS will return the job id to the caller, you can then poll the scheduler via a ws to check the progress of the job. Once complete you can then retrieve the result form the scheduler tables via another call.
    Food for thought I hope
    Tim

  • Media Encoder crash in CS6. Could not read from the source. Check if it has moved or been deleted.

    I'm having a problem getting Media Encoder to get past the dynamic link portion of encoding a time line sequence.
    I can send it over to Media Encoder, but it crashes consistently after the yellow bar saying something about dynamic link.
    I have CS6 installed in my computer here at work, it previously had CS5.5 installed on it.
    I read some answers about CS4 having this problem and tried to create a shortcut and put it in the dynamic link folder, but that didnt work.
    I would hate to have to reinstall the software here at work as the IT department is a pain- but I can't encode video on one of the computers we use here.
    Any ideas on what may be happening and how I can solve the problem?
    Thanks!
    Its a Dell Workstation with Windows 7 Ultimate installed dualE5620 processors at 2.4GHz. .
    only 6 GB RAM, and a RAID 5 hard drive setup with 3- one gb drives giving the C drive space of 1.8Gigs
    Its got an NVIDIA Quadro NVS 420 video card.
    I'm upgrading this computer to better work with editing video, so this is a good time to get this all cleaned up.
    Im adding RAM (24GBs)- replacing the video card to a GTX 780 3GB running 3 monitors.
    I'd also like to either split up the RAID (ugh)..or just add 2 internal SAS HDDs. to split up the video and the cache and the OS/programs as is usually done with editing video.
    Thanks for your help in advance...
    Mike

    ...more information...problem still not solved....
    After searching more in the forums, I tried a couple more things:
    I tried to restart AME and clearing the preferences. This didnt help.
    I also deleted the ...appData/Roaming/Adobe/AdobeMediaEncoder/6.0 folder and all subfolders   No help here either.
    I also tried to import the sequence via AME rather than export via PP. This worked. The sequence loaded immediately and processed perfectly.
    When I export via PP, I hit the queue button, it hangs for about 3 mins, then the yellow bar appears saying "Connecting to Dynamic Link server"
    it then hangs for approx 3 mins again and then I get the Failed alert.
    the error log reports:
    Encoding failed
    Could not read from source. Please check if it has moved or been deleted.
    any help available here????

  • When i active my mac pro all i get is a white screen and  it loading .. and when it fully loaded it turns off and the same thing keep on happening again

    when i active my mac pro all i get is a white screen and  it loading and when it fully load its turn off , and it keep on doing the same thing for hours

    Hi Shahenaz,
    It's a little difficult to understand exactly what's going on with your mac based on the description you gave. Is there anything else you could add? Is it stuck in a reboot loop? Or is it just showing a white screen forever?
    I had pretty much the same problem a few days ago, and was worried my mac was screwed permanently, but I got it fixed up no problem!
    Follow these steps to try and troubleshoot/fix the problem.
    1. Boot into OSX Recovery Mode
    First, turn off your Mac. If it isn't responding, or is stuck in a reboot loop, just hold down the power button until it turns off, and you hear the fans stop. Then boot it while holding the Command and R keys. If it successfully boots into OSX Recovery Mode, continue with this step. If not, skip to step two. (My Mac couldn't successfully boot into the recovery mode, so I had to go to step 2)
    Select "Disk Utility" from the list of options, and find your built in hard drive from the list on the left. Usually there are two listings/names for your drive. The first should be something like "500GB longchainoflettersnumbers Media". Then the one below will be a little easier on the eyes, named Macintosh HD, if you haven't changed its name. That's the one you want, click it.
    Now go to the "First Aid" tab. Click on the "Verify Disk" button in the bottom right corner, and let it do its thing. Once that's done, hit repair disk, also in the bottom right corner. If your disk is corrupted, you may need to run the repair process several times, before it comes up completely clean.
    Once this is done, select Shut Down from the Apple menu and, once your Mac is completely off, turn it back on like normal. If it works, great. If not, proceed to step two.
    2. SafeBoot
    Sometimes, when a mac is acting up and doesn't want to start, all it takes is a safe boot, followed by a regular restart. Or maybe you recently installed a program that either has malicious or errored coding that's causing your troubles. This is where Safe Boot comes in.
    Turn off your mac, and reboot it while holding Shift. (If you want to see the process that's going on in the background, boot while holding Shift, Command, and V. This will enter something called Verbose Mode).
    If it boots successfully into Safe Mode, great. If you believe that there's a particular program that you recently downloaded that might be causing your trouble, now's the time to delete it. If not, just reboot normally and see if it works! If it doesn't, or if your Mac didn't even Safe Boot like mine, proceed to step 3.
    3. Fsck!
    For this step, you're going to be booting your mac into Single User Mode. I'm not going to go into details as to what this step does, but it works for some people. Here are the steps.
    Turn off your mac, and reboot it while holding Command and S. The screen should go black, and you'll see some white text run across the screen, wait a few seconds, until you see the command prompt. Now type
    fsck -fy
    and hit the Enter key. This will run a series of system checks, which could take a few minutes. Be patient on this part. Once it's done, it will show one of two messages:
    1. "The volume (your Mac) appears to be OK
    or
    2. "File System Was Modified"
    If you got message 1, type reboot and press Return. Hopefully your computer works after this - if not, proceed to step 4.
    If you got message 2, run the same command again until you get message 1. If it doesn't seem to be working, turn off your system and proceed to step 4.
    If you couldn't even boot into Single User Mode in the first place (like me), go to step 4 anyways.
    Step 4: Reset the NVRAM
    The NVRAM is another kind of RAM that stores data like the computer volume you had set before you turned it off, or the screen brightness, resolution etc. This memory is saved, unlike with regular RAM. Resetting it isn't harmful to your system, it will just put your screen brightness, volume, etc. to defaults.
    Turn off your Mac, and reboot while holding Command, Option, P, and R, and continue holding them down until you hear the computer restart again.
    I can't really explain why to do this step, I just know it works for some people, and seems to be what unbricked my MacBook Pro. If none of these steps, fixed your Mac, well the situation is looking pretty grim. Try setting up a meeting with a Mac Genius at your local Apple store. However, I know that many other people with these symptoms ended up having a logic board failure. Apple can swap out your logic board for a new one, but the price is pretty hefty, somewhere around $300 I believe.
    Well I wish you luck, I hope this helped you!

  • Safari won't fully load websites

    Safari is having many and varied moments of not fully loading webpages. It is also happening to a lesser degree on other browsers (firefox, camino, shiira). I have tested removing internet plugins, deleting cache, history, duplicate fonts, plist, etc and nothing seems to want to fix this. I have loaded the latest release of flash, 8.0.27 UB after it was doing it with previous versions. I'm thinking it has something to do with flash but I'm not certain. Simpler webpages seem to load fine, it's the ones with lots of differing content that have a problem.
    I have seen that this is not a unique problem to me, judging by the other posts here, but no-one has come up with a solution yet.
    Any ideas and help would be very appreciated. It's driving me crazy!

    Hello, Simonw44
    Sorry for your frustration, it seems you have done a lot to resolve this issue, you do not mention if you have tried running Safari under Rosetta , perhaps you could try and see if that helps, though I am not sure how it would help the other browsers. Safari ->Applications-> Get info-> check box . I have to say I do not run it under rosetta & it not an issue , some have to, I do not know what the variables might be or why.
    I'm thinking it has something to do with flash but I'm not certain. Simpler webpages seem to load fine
    Would you post the site/s that do not load for you ? Is it possible they are ActiveX flash sites?
    Cards try previewing ( bit goofy) does this site work for you? It does on my intel. It is a Macromedia Flash site.
    This is the Category for our intelsimac intel duo forum though I looked briefly & did not see much for Safari.
    Hope this helps some. Please let us know.
    Eme: )
     Power PC G4 (3.3) ♥ iMac Flat Panel 10.3.9 ] 15 Alum.PowerBook Tiger   Mac OS X (10.4.6)   AEBS & iMac Intel Core Duo 2gb

  • How to know the report has already been sent to printer?

    Dear All,
    I have one problem to check that the report has been printed on paper through a printer after user already previewed and pressed Printer button. Is there any parameter will be sent back from system to inform the program? Please suggest me if you have developed or solved this problem.
    Thank you in advance.
    Pawinee H.
    e-mail: [email protected]
    null

    Yes. I ran the code example and it ran successfully.
    So if we wanna generate report by java code, we should use the code as a http client to access report server to do it.
    I think we could use url http://server:port/reports/rwservlet/showjobid to know the status of generating report (i.e. successful or failed).
    And one more question is that could I get the jobid by any url as soon as I generate my report?
    Thanks a lot.
    Best Regards.

Maybe you are looking for

  • Extending a web application to port 80

    Hello - I have a web application running on port 80.  The associated IIS site is http://sharepoint I want to extend the web application to port 80 and use a different URL:  http://isharepoint The authentication schema will stay the same (classic NTLM

  • How to search a char in 2d array any direction

    the method will take a string argument and convert them into char and try to find them in a 2d array. It is more like a word puzzle(wordSearcher).Here's what i've done so far... public void find(String word) for(int a = 0; a < word.length(); a++) { c

  • Problem seeing site on tablet

    I have published a site to the businesscatalyst.com site as I work on it. I can go to it on a computer but when I try on my tablet it has the template that I used and does not seem to update. Any ideas of why or what I can do? Thank You for any help

  • 508 & W3C compliance

    If you check to generate Section 508 Compliant Output AND W3C Compliant Topics, exactly WHAT CHANGES in the help files? What is different? improved? whatever?

  • Working with Pop-Up windows

    Hi, heres my requirement: To open a pop-up window onclick of a link from the parent window. Parent window has a data-table and a column called 'StatementInfo' which shows the statementNumber as a h:commandLink. When i click on the statement number i