CrystalReportViewer refresh finished event?

Hi,
I'm try to figure out a way to automatically export (using a user configured set of options) a report when the report is finished processing. 
I'm currently subscribing to the RefreshEventHandler, however, this is only fired at the start of the report refresh.  What I actually need is an event that is fired when the report has finished. 
Is there anyone who can help me please?
Thanks in advance,
Rory.

Again, thanks for the swift reply Ludek.  The preview makes the code look ugly.  Hopefully you can decipher it.
Rory.
void CCrystalContainerView2008::OnTest1()
     CCrystalContainerDoc* pDoc = GetDocument();
     String ^str = gcnew String(pDoc->m_strReportPath);               // convert the CString to a system string
     CrystalDecisions::Windows::Forms::CrystalReportViewer ^viewer = gcnew CrystalDecisions::Windows::Forms::CrystalReportViewer();
   CrystalDecisions::CrystalReports::Engine::ReportDocument ^report = gcnew CrystalDecisions::CrystalReports::Engine::ReportDocument();
     // Get embedded Crystal report viewer control
     viewer = GetControl()->ReportViewer;
     // Load the Crystal Report file
     // This should have the same effect as opening the report in the CR 2008 Application
     report->Load(str);
     if(report->IsLoaded == true)
          if(report->HasSavedData == true)
               // Discard saved data here !
               report->Refresh();
          // Now I assign the opened report to the crystal viewer control
          viewer->ReportSource = report;
          // Here I expect the program to only continue when the parameters
          // have been entered by the user.  However, the parameter screen only get presented
          // to the user when my application yields control back to the main message loop, after this function ends
          // Export the report based on user configured settings
          // This function fails as the parameters for the report have not yet been parsed by Crystal
          this->ExportReport();
void CCrystalContainerView2008::OnTest2()
     CCrystalContainerDoc* pDoc = GetDocument();
     String ^str = gcnew String(pDoc->m_strReportPath);               // convert the CString to a system string
     CrystalDecisions::Windows::Forms::CrystalReportViewer ^viewer = gcnew CrystalDecisions::Windows::Forms::CrystalReportViewer();
   CrystalDecisions::CrystalReports::Engine::ReportDocument ^report = gcnew CrystalDecisions::CrystalReports::Engine::ReportDocument();
     // Get embedded Crystal report viewer control
     viewer = GetControl()->ReportViewer;
     // Load the Crystal Report file
     // This should have the same effect as opening the report in the CR 2008 Application
     report->Load(str);
     if(report->IsLoaded == true)
          if(report->HasSavedData == true)
               // Discard saved data here !
               report->Refresh();
          // Now I assign the opened report to the crystal viewer control
          viewer->ReportSource = report;
          // Now I force the parameter screen to be presented to the user
          viewer->RefreshReport();
          // Now that the parameters have been accepted by Crystal and everything "appears" ok
          // However, the parameter for the ReportDocument "report" gets presented the user again
          // when my application yields control back to the main message loop.
          // Export the report based on user configured settings
          // This works successfully, however, there is still a parameter screen awaiting user intput
          this->ExportReport();
Edited by: Rory O Donnell on Apr 29, 2010 1:38 PM

Similar Messages

  • Is it right that GCs returned from GC start/finish events are not Full GC i

    We have noticed that all those GCs returned from GC start/finish events are not only Full GCs (which are stop world GC specified as in JVMTI spec if I understand it correctly) in JVMTI. It is not like in JVMPI. Is it a right behavior? Should only stop world GCs be reported by GC start/finish events per JVMTI spec?
    For example:
    GarbageCollectionStart...
    [GC 1719K->1304K(1984K), 0.0003732 secs]
    GarbageCollectionFinish...
    post-GarbageCollectionFinish actions...
    GarbageCollectionStart...
    [GC 1771K->1351K(1984K), 0.0003081 secs]
    GarbageCollectionFinish...
    post-GarbageCollectionFinish actions...
    GarbageCollectionStart...
    [GC 1823K->1446K(1984K), 0.0003593 secs]
    [Full GC 1446K->277K(1984K), 0.0127902 secs]
    GarbageCollectionFinish...
    GarbageCollectionStart...
    [GC 754K->420K(1984K), 0.0003827 secs]
    GarbageCollectionFinish...........
    Thanks,
    Chong

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • How to generate SCS=FINISHED event and skip phase STOP_SCS_INITIAL_ADDIN

    Hi all,
    My SapEhpi 'upgrade' from ERP 6.0 to ERP 6.04 EHP4 is stuck in phase STOP_SCS_INITIAL_ADDIN
    This phase stops the SCS with a wrong parsing of the OS stopsap command
    So this phase is stuck, and the ABAP part stops in PHASE GETSYNC_SCS_FINISHED and waits for this Java part to finish and generate an SAPJup SCS event
    My questions:
    1:
    How can I change / override the behaviour / creation of this errourness OS command so it will return without errors?
    2:
    How can I skip this Java phase, since I did its work directly at OS-level?
    i.e. how can I fool the SAPJup that this phase is finished?
    3:
    How can I generate the SAPJup SCS event, so that the ABAP part will continue?
    Kind regards,
    Paul Hoogendoorn

    Hi Sunny,
    The error is caused bij a wrong parsing of the OS command:
    It creates the command: stopsap .. INSTHOST(AMPL-AS01)..
    But it should create stopsap .. INSTHOST('AMPL-AS01')..
    This is an small error in the sapjup, wich will be solved soon by sap on i developer.
    In the meantime: don't use host names wich include a '-' hypen during EHPi upgrade, alltough that are valid host names.
    Kind regards,
    Paul Hoogendoorn

  • MovieClip Finished Event

    Hi All!
    Thanks in advance for any help, as usual...
    So, I'm a bit stunned to learn that there isn't an Event
    which specifically broadcasts that a MovieClip has finished
    playing; seems like kind of a no-brainer to me...
    I was wondering if people had a preference between
    -Check to see if currentFrame == totalFrames
    -dispatchEvent(new Event()) plus listener
    Or, if they have a different preferred method.
    Thank you!
    Be Well
    Graham (using AS3)

    your on the right track Graham - either of those are valid
    methods. often a simpler solution though is to call a stop on the
    final frame, and then call to a method directly as needed. there
    'are' some event notifications for certain classes however, such as
    Tween, Motion, and Animation classes. another work around might
    also be to 'remove' the instance through code at the end of the
    timeline's play - then use the 'removedFromStage' event of the
    DisplayObject class - might be a few other tricky ways :)

  • Locked controls on new tab after finishing event structure

    Greetings All,
    My first question for the forum.  I found a few posts which had similar issues but I still can't seem to figure this one out.
    This program creates a temperature profile and it's within a much larger program where I want the user to be able to cancel, continue, go back a step, etc.  It all works fine until I leave the event structure loop and go to the verify tab.  The user should be able to continue or cancel but the buttons will not press.  I believe the event structure is locking the front panel but I turned off the lock for that case and still no go. 
    I've attached the LLB, please check it out.  Any help will be most appreciated.
    Regards
    Using LabVIEW: 7.1.1, 8.5.1 & 2013
    Attachments:
    TempProfiler2.llb ‏575 KB

    Hi,
    The answer is almost in the question, just go to the event structure and disable the option "lock front panel until event completes"
    Message Edité par TiTou le 06-30-2006 09:18 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏435 KB

  • Crystalreportviewer print button event postback issue

    Post Author: krishna.moorthi
    CA Forum: Crystal Reports
    I have the VS2003.Net and crystalreports10 for developing reports in our appliction.
    When the print button clicked in the crystalreportsviewer,based on the entered no of pages in printerdialog the page_load is happening multiply with the no of pages .
    Example: I have entered Pages =2 then the page_load will execute the 4 time (CRViewer having the 7 pages)
    why this is happening ...in behind any reason for this ..help would be highly appreciated.
    thanks in advance.

    Look for the search box in the top right corner of this web page. Enter the following string: 'Communication error crystal net'. You should get a number of results. See if any of those help.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • In IPhoto I changed movie dates after thumb nails were created in IMovie but the new dates are not showing up in IMovie.  Is there someway to refresh the IPhoto event in IMovie?

    Background:  I'm transferring file folders from a Visa laptop via an external hard drive to my IMac.  In the folders are photos and videos from different cameras.  SO I first tried to import to IMovie but it would not recognize any of the files.  So then I imported into IPhoto and both photos and videos were imported and I created events for each folder.  When I first opened IMovie I had to wait for it to create "thumb nails".  Then I could view the events in IMovie BUT the video clips are not together because they have vastly different dates and are mixed with videos from other events.  I looked at the dates and said I can fix that in IPhoto which i did but those new dates are not showing up in IMovie.    I think I need to somehow refresh the event data that Imovie is using but have not found how to do that in either IPhoto or IMovie. 
    I'm doing this on three events with about 100 photos and videos.  But I have many 1000s more to do so need to know how to either fix this or delete these events, reimport, change the dates, then open again in IMovie.   I'm sure that would work but I can't understand why changing the dates in IPhoto is not being reflected in IMovie.  
    Appreciate any tips or pointers.
    OBTW this is my first question as a first time Apple owner. 

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • IMovie 09 takes forever to refresh folders - unusable!

    I have a MacPro 8-core with 32GB RAM, 3 x 1TB Seagate drives in Raid 0, with a eSata external tower with 4 x 1TB Seagate drives in Raid5. I'm running Leopard 10.5.8.
    Using iMovie 09, I imported all of the digital video tapes collected over the past 6 years. My iMovie Events folder on my external eSata tower now contains about 1.2TB of imported movies. My iMovie Events folder on internal Raid, which contains only the last 2 years of movies, is about 730GB.
    The problem that I'm having is that iMovie 09 takes almost 10 minutes to load while it refreshes the Event Library. Each time that I move to view a different event folder in the Event Library, I get the spinning ball and it takes 3-6 minutes before iMovie responds to keyboard import. Each time I click on a different year subfolder in the event library, the delay happens again. It's making iMovie virtually unusable. If I turn off my external eSata tower and restart iMovie, the responsiveness improves because the larger events folder is not available to iMovie.
    It seems that iMovie is not designed to handle a large events folder event even on a super fast MacPro.
    Any suggests to get iMovie to be more responsive? Or, have I outgrown iMovie's capabilities?
    Thanks.
    Bud James

    OK, I have a bit more data, and some success!
    Using Handbrake I converted the original mov files to mpeg-4 files using the ffmpeg codec rather than the H.264, then imported them as events in iMovie. This time they imported quickly, were responsive when edited, and shared to iDVD quickly, completing in under an hour.
    So it would seem that it is the H.264 format that does not play well with iMovie. Still curious if anyone has any suggestions/explanations as to why that may be, but at least for now the problem is resolved.

  • Calendar events older than a month have disappeared!

    I use the calendar on my iPhone and iPad, also synced with my husbands phone) for all our business appointments. In searching for a past appointment the other day, I suddenly discovered that any appointment or event created more than 4 weeks ago has disappeared, from all devices! This is a major headache for us as we rely on using previous events to help book future appointments etc!
    Is this normal? Are events only stored for a period of time? I had assumed they would stay until someone deleted them!
    Really grateful for any help as may have to stop using this feature if it doesn't store events!
    Thanks

    The events should come back. Try refreshing the calendar. Launch the calendar app and tap the calendar button at the bottom. Pull down on the window that opens to refresh the events.

  • Instantly syncing calendar events on iPad and iPhone.

    What settings do I need to have in order to have my iPhone and iPad's calendar sync instantly (or even almost instantly)?
    For example, say I type in Dentist appt for tomorrow at 3:00 on my ipad. I want to be able to open calendar on my iphone and see it there. Or at least have calendar on iphone sync when I turn it on. I suspect I need to do something in settings but not sure what.  Please advise. Thanks.

    There's no setting for that.  When you open your calendar they should automatically sync with the server and refresh the events.  You can force a manual refresh by tapping Calendars on your phone, then pulling down and releasing the screen.

  • DFSN-Server ID 516 Flooding Event Log

    Good Day,
     Since setting up a Server 2012 server as a DFS root the Administrative Events log is getting flooded with DFSN-Server ID 516 warning events. We have multiple name spaces and we get a message for each every 15 minutes, so for our 6 name spaces
    that is over 500 messages a day.
    DFSN service has started performing complete refresh of metadata for namespace <DFS-Root>. This task can take time if the namespace has large number of folders and may delay namespace administration operations.
    Although I found one solution on the Russian Technet forum DFSN-Server EventID 516 this disables the entire DFSN-Server
    Admin log, so if there are any problems with the refresh they will not appear.
    The main cause of the problem appears to be that the 516 Events have a Warning level 3 for something that should be Information level 4. There is no reason for a warning to be issued for what is a regular update process.
    Thanks,
    James

    What bothers me is that those events mention only "started a complete refresh", but they never mention so far completing one ... weird...
    Thank you Microsoft (sarcasm).
    If you look directly at the log, you'll see this message is quickly followed by ID 517 which states it has completed the refresh.  Event 517 is an informational event, so it won't display in the default "Administrative Events" filter.
    My suggestion to Microsoft:  Change the severity on ID 516 to Informational.  I don't believe
    anyone would consider this routine refresh a warning-level concern!!
    yes, you are right. sorry for super late reply, but I was swamped in company move and server upgrades, new installations, new IP phone system, new IP cams, site-to-site VPN, new faster firewall for new faster Internet link, NAT config changes ... man ...
    a bit too much for a single person to manage sometimes ...
    anyways, I didn't see the 517 events in "Custom Views - Administrative Events" that's why I was alerted with a flood of 516 (there is 1 every 12 minutes), can't understand why MS would drop one informational event (categorized wrongly as warning)
    and not add the other one stating it was completed right after (because it's still informational only) ... I finally found the following 517's when I went to the tree of Apps and Services Logs - MS - Win - DFSN-Server - Admin ... it's kinda buried down there
    very annoying it still is in end of October, especially then I am troubleshooting a non-replication conditions without any errors between two DFS servers (also DC roles installed) running 2012R2. Ended up removing DFS from secondary DC (VM actually) and
    building a new DFS dedicated VM with fixed sized disks on Hyper-V 2012 R2 server, hoping it resolves the issue when replication would just stop without error creating a huge file count (and content!) mismatch over time... a flood of meaningless events in administrative
    logs in not helping with troubleshooting ...

  • Terminating event -- No active receiver found

    Hi -- on an Integration project I just need a workitem that stays active until explicitly closed via an event..
    It's easy enough to create a triggering event which starts a process.
    I've followed all the rules (as far as I can see) to create a terminating event but it doesn't work.
    I've created a test Bus Obj ZZJIMBO which simply has a key of the SAP user ID.
    I've defined 3 events
    STARTSYN  ====> Synchronous
    STARTASY  =====> Asynchronous
    FINISHED ======>  terminating
    Using SAP_WAPI_CREATE_EVENT the STARTSYN and STARTASY  are triggered and the relevant processes start - both for the synchronous and asynchronous tasks.
    However on raising the FINISHED event the system just errors with NO Active receiver found.
    All the binding etc is fine and SWU0 doesn't find any problems.
    Looking at the instance table (transaction SWE3)
    I see that the eventid is the same as the current workitem but the object key is empty
    object key  <empty> 
    eventid    000000250100
    The only possibility I can see is that my Business object doesn't really have "instances" like say a sales order as it only exists at run time.
    Would I have to say trigger the event finished using something like the Work item itself which does have a valid individual instance -- I can extend the WORKITEM bus obj and add an event FINISHED to it instead.
    I can get the workitem id via the container so that shouldn't in theory be a problem to "instantiate"  the Workitem (or ZWORKITEM) business object.
    I really hoped to have all the events in the SAME business object however.
    Any ideas
    Cheers
    jimbo

    Hi James.
    1. Yes, I think the workitem in runtime would expect the triggering event should be from the instance of the object either from
            a. standard workitem relevant obejct instances like _WORKITEM, ATTACHOBJECTS, RULERESULT
           b. or the associated BO in the task i.e WIOBJECT_ID
    2. However as you say >>I really hoped to have all the events in the SAME business object however>>. I can suggest the following
           a. create a parallel fork to the step which is creating your workitem
           b. In this parallel branch create step 'Wait for Event; and refer it to your ZZJIMBO.FINISHED.
          c. define necessary branches required to complete the fork as 1. meaning, if any one of the branch ends flow will continue to next step in main workflow.
    So, when the event ZZJIMBO.FINISHED is raised with the correct instance which was used in workflow. 'Wait for event' will receive it and this branch will end and eventually other branch will get logically deleted. You can put some flag in the 'Wait for event' branch using which u can understand whether the workitem is completed in normal way or through exeption.
    Hope this helps !!
    Regards
    Krishna Mohan

  • Refresh functionality in portal

    Dear Experts,
    I'm facing issue regarding REFRESH functionality in WDP ..The issue is i have REFRESH(FPM Button) on my screen and when ever the user clicks on it , the screen should refresh(should come to initial state).
    And on refresh button event, i'm launching the screen by using below code.
    But, when appl'n is tested from portal, it is working incorrectly. If i pass parameter use_suspend_plug = ' ', first time on click of refresh button in portal,it is opening screen in portal it self, and on second click of refresh button in portal screen, it is opening screen in new window.
    Is it better to launch the appl'n or to refresh/clear all the screen element values and bind it again?... Here i have one more probelm, the ex-developer of the component has declared some attributes(nearly 15 attributes) in view controller(which cannot be access in component controller) and i cannot read those view controller attributes in component controller. so that i can read those attributes and clear the values( which is not possible now).
    Pls help me to achieve REFRESH(F5) functionality .
    Thanks
    KH

    Hi,
    My issue is resolved.
    Steps followed :
    1) Created an event in component controller( in events tab)
    2) In process_event of component controller, the created event is fired.
    3) And that event can be handled in any of the view controller's by declaring method in view controller
        with method type as event handler and in event->select the event created in component controller.
    4) Proceed further with the required functionality.
    Thanks
    KH

  • Table View MULTI SELECT option and Event handling problems

    Hello All,
    I am facing problem while giving miltselect option in a table view. When i mention multiselect attribute in Select option in table view, i am unable to select all the rows which i want to select,because i have an event onRowSelection event activated so when i select a row then it will automatically go to the event and i am unable to do multiple select.
    Can you guys pl tell me is there any way thtat i can put check boxes in a table column and by that i can get values of row seelct and can perform my subsequent SQL operation.
    Also i am not able to navigate in table view through BYPAGE or BYLINE option. When I click on navigate button then page got refreshed and i lost data.
    One more query guys , can you pl tell me how can i store my internal table values from one event for the another event. I have used EXport/Import but internal table values get refreshed as page got refreshed on event switching/selection.
    Please respond.

    hye rahul.
      as i told you my second solution, will help you . the values remain in the corresponding UI elements.
    For example , you have a drop down and table view. both will trigger events. bind the data of the table at drop down event and bind the dat of the drop down at table event.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    CASE event->id.
    when 'dd1'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    when 'tbv_id'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    This is how data should be binded in case of Stateless application. All the UI elemets must b binded again.. as the global data is refresed again.
    Hope this helps.
    Regards,
    Imran.

  • Refresh in Visual Composer

    Hi Experts,
    Can anyone tell how to refresh the events ("SUBMIT") in visual composer.Where to set or see the event settings??
    roshini

    Hi Roshni,
    Can you explain in detail what type of event do you want to put on your form. Do you want to refresh the elements on your form by clicking some button?
    About where to set the event settings, follow the following steps:
    a) Select the outline of your Form and then click the Configure button in the task-panel
    toolbar. The fields and controls in the form are displayed in the table at the bottom of the
    task panel.
    b) Click the Plus (Add) button at the bottom of the task panel. The New UI Control dialog
    box is displayed.
    c) From the Select control type list, choose Pushbutton and in the Field name field, enter a name. This creates a new control in your Form.
    d) Right-click the button, choose Properties from the context menu and click the Action tab to define the event that is associated with the button.
    f) Now if you want to submit the data entered in this form, you can set Action Type as System Action, and select the action from drop down as 'Submit Form'. Else you can define your own custom action by setting the Action Type as Custom Action and the defining your own action.
    By the way, the if some event can be put on some UI element, it has to be defined in the same way, ie by going to the properties of that element.
    See if this solves your problem, otherwise please explain in detail what event do you want to be put.
    Bye
    Ankur
    Reward points if it helps!!

Maybe you are looking for

  • Xbean.jar file missing from install of 8.1.5 express

    Hi, I just recently installed 8.1.5 express for development purposes. We are currently developing for an application running 8.1.5 server. I'd had version 8.1.4 running locally and in server/lib xbean.jar existed and we use it in our application. Now

  • BDC Related Upgrade issues

    Hi every one, I want to know wat are the issues while doing a version upgrade. I have the knowledge of Dynpro missing , Screen Field related problem and Program itself missing the target system. Pls .. tell me .some other issues... Thanks Everyone in

  • HT204074 Changing ID on iPhone

    I have changed my Apple ID, now my iPhone won't see my account. The help page tells me to click Manage Devices in the iTunes Account Information screen, but I can't see this heading. Can anybody help please?

  • Compare two complex variables with BPEL ?

    Hi, I would like to compare 2 csv files with BPEL, with specific rules. For example, I would like to check that for each row : "Value of Field1 of File1" has less than a 10% difference with "Value of Field1 of File2" I can successfully retrieve the c

  • Why can't I browse the internet when streaming music?

    I am using a Mid 2012 MBP in tip top shape and I have 24MB/s ADSL 2+ with current speed test results of 12.34 Mbps line speed and 1.51 MB/s dl speed. I have 3 things connected to my router MBP, iPhone and Apple TV. Router is D-Link N750. All items li