Refreshing Crystal Reports at runtime
-
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
-
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
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
-
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
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 !!
-
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 !!
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 ViewersParameterFieldInfo
collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome -
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 ViewersParameterFieldInfo
collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming GnomeHi 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 !!
-
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 ViewersParameterFieldInfo
collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming GnomeHi 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 !!