Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Refreshing Crystal Reports at runtime

Refreshing Crystal Reports at runtime

Scheduled Pinned Locked Moved Visual Basic
help
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vikrant Badhai
    wrote on last edited by
    #1

    Hi, I'am looking for a code to refresh crystal reports at runtime.One code I used is : crviewer1.refresh where crviewer1 is the name of the crystal report object in VB6.But I'am getting the following error : " Method refresh of the object crviewer1 is invalid. " Can anyone help me out. Thanx & Regards. Success is not a Destination, ... But a Journey !! -- modified at 2:14 Monday 27th March, 2006

    D 1 Reply Last reply
    0
    • V Vikrant Badhai

      Hi, I'am looking for a code to refresh crystal reports at runtime.One code I used is : crviewer1.refresh where crviewer1 is the name of the crystal report object in VB6.But I'am getting the following error : " Method refresh of the object crviewer1 is invalid. " Can anyone help me out. Thanx & Regards. Success is not a Destination, ... But a Journey !! -- modified at 2:14 Monday 27th March, 2006

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Its been a very long time since I've used VB6 and/or CR, but IIRC, the ReportViewer object doesn't have a Refresh method. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      V 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Its been a very long time since I've used VB6 and/or CR, but IIRC, the ReportViewer object doesn't have a Refresh method. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        V Offline
        V Offline
        Vikrant Badhai
        wrote on last edited by
        #3

        Hi, Dave Thanx for ur response. Is there any way to put new values in the report at runtime. I am facing a small problem. What I want to do is that if the value in a combobox is changed then the report should show data related to that changed value without exiting the appl. When I generate the reports, by selecting an item from the list of a combobox, for the very first time, it displays the expected results.But when I change the selection from the list of the combobox, the CRViewer shows me the previous results.When I click the REFRESH button on the toolbar of the CRViewer then only the new values related to that selected list item are displayed.I want that, without clicking the REFRESH button the report should display the expected results. Is there an alternative for this problem ? Thanx & Regards. Success is not a Destination, ... But a Journey !!

        D 1 Reply Last reply
        0
        • V Vikrant Badhai

          Hi, Dave Thanx for ur response. Is there any way to put new values in the report at runtime. I am facing a small problem. What I want to do is that if the value in a combobox is changed then the report should show data related to that changed value without exiting the appl. When I generate the reports, by selecting an item from the list of a combobox, for the very first time, it displays the expected results.But when I change the selection from the list of the combobox, the CRViewer shows me the previous results.When I click the REFRESH button on the toolbar of the CRViewer then only the new values related to that selected list item are displayed.I want that, without clicking the REFRESH button the report should display the expected results. Is there an alternative for this problem ? Thanx & Regards. Success is not a Destination, ... But a Journey !!

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          I haven't used CR in about 8 years now, but looking through the documentation on MSDN, it looks like you can accomplish what you want by calling the RefreshReport method on your CrystalReportViewer object. Depending on how your report is written, you might have to change a parameter in the Viewers ParameterFieldInfo collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          V 2 Replies Last reply
          0
          • D Dave Kreskowiak

            I haven't used CR in about 8 years now, but looking through the documentation on MSDN, it looks like you can accomplish what you want by calling the RefreshReport method on your CrystalReportViewer object. Depending on how your report is written, you might have to change a parameter in the Viewers ParameterFieldInfo collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            V Offline
            V Offline
            Vikrant Badhai
            wrote on last edited by
            #5

            Hi Dave, Thanx for ur response. I tried the RefreshReport method but unfortunately it didn't work. Thanx & Regards. Success is not a Destination, ... But a Journey !!

            1 Reply Last reply
            0
            • D Dave Kreskowiak

              I haven't used CR in about 8 years now, but looking through the documentation on MSDN, it looks like you can accomplish what you want by calling the RefreshReport method on your CrystalReportViewer object. Depending on how your report is written, you might have to change a parameter in the Viewers ParameterFieldInfo collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              V Offline
              V Offline
              Vikrant Badhai
              wrote on last edited by
              #6

              Hi Dave, Thanx for ur response. I tried RefreshReport method, but unfortunately it didn't work. Thanx & Regards. Success is not a Destination, ... But a Journey !!

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups