Results 1 to 5 of 5

Thread: refreshing crystal report in visual basic code

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    1

    Question refreshing crystal report in visual basic code

    Hi.. i am working on a proyect in visial basic and i am trying to refresh the data in visual basic .. i know that it is posible to do if you open crystal reports (i am using 8.5) but when the user is working on the programa he can not open the crystal report so thats why i need if to be refresh in visual basic.... the thing is that i am using accees as database and in the program when i add some information to the database and then i want to see the report .. well there is no information so i have to stop the programa open crystal report an press refresh data.. and then i can see all the information i added... so can you help
    Thanks!

  2. #2
    Lively Member Joffies's Avatar
    Join Date
    Aug 2002
    Location
    London
    Posts
    119
    Do you use crystal report in your application using the OCX or the RDC components or do you run it seperately from your application in Crystal Reports 8.5 itself?
    Do, or do not. There is no 'try'.

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    You need to look up the crystal API call "CIUpdateReportEx" in your help files, but be warned, it don't work!

    By this I mean every 1 out of 10 times etc it decides to work okay & the rest of the time the call's successful, but the refresh doesn't actually work, I tried writing an app which went through all reports & refreshed each, even asked seagate themselves for some sample code on refreshing a report but neither worked!!!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    This is the sample from seagate themselves I was provided with if you want to take a look at the coding anyways.

    Note this is for version 7 / 7.5 but should be the same for version 8...
    Attached Files Attached Files

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5
    Lively Member
    Join Date
    May 2003
    Posts
    86

    Question

    I would like to refresh the data from within my application without closing the application and restarting it. How can I achieve this?

    Thanks in advance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width