cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal 2008 for Visual Studio 2010 - Refreshing Report

Former Member
0 Kudos

Hello,

We are developing a Crystal 2008 Viewer in VS 2010 and it's a WPF project (we're using the WPF viewer).

We developed our own Parameter Form so we do not want to use the default one; however, when refreshing the report we get a dialog that states: Click "Yes" to use the current parameter values. Click "No" to prompt for new parameter values."

We do not want this dialog to appear so we set the Handled property to true in the Viewer's Refresh event:

Private Sub viewer_Refresh(source As Object, e As SAPBusinessObjects.WPF.Viewer.ViewerEventArgs) Handles viewer.Refresh
        ' this makes sure that the default param window does not pop up
        e.Handled = True
End Sub

The dialog still appears. Any ideas on how to hide this Dialog?

Currently, we are using a timer and using the SendKeys event after some milliseconds but this does not always catch the dialog:

  Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
        Timer1.Enabled = False
        SendKeys.Send("{Enter}")
    End Sub

Thanks,

Tyler

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Tyler,

Sorry to say there is no CR 2008 for VS 2010. There is [CR for Vs 2010 |http://www.sdn.sap.com/irj/boc/crystalreports-dotnet?rid=/webcontent/uuid/5072b9d3-b530-2e10-b191-ff2fe6d395de] [original link is broken];which you can use. CR for VS 2010 includes a WPF viewer, CR 2008 does not.

Thank you

Don

Former Member
0 Kudos

Sorry, I thought it was called Crystal 2008 for VS 2010. We are using the Crystal WPF viewer for Visual Studio 2010.

The e.Handled for the viewer's Refresh Event doesn't seem to be working. Setting e.Handled equaled to true should allow the developer to handle the refresh event, at least this is how it worked on previous versions.

Thanks,

Tyler

former_member183750
Active Contributor
0 Kudos

If a report expects a parameter, then it will prompt for it. Only way for the report to not prompt will be to supply the actual parameter. Suppressing the parameter form, should result in error as no expected parameter was supplied(?).

- 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]

Former Member
0 Kudos

We've upgraded from the crystal 11 viewer in Visual Studio 2005 to the Crystal WPF viewer in 2010. In the crystal 11 viewer, the refresh worked fine and we did not see any dialogs when we set the e.Handled = true.

We've developed our own parameter panel which works great on the initial run of the report. Our parameter panel appears, the user enters the parameters, and the report runs without seeing the default parameter window.

But when the user clicks refresh, we supply the report with the parameters but we still get a dialog stating: "Click "Yes" to use the current parameter values. Click "No" to prompt for new parameter values."

If the user clicks Yes, the report refreshes with the parameters we've supplied but if they click No, the default parameter window appears.

Is there anyway to suppress the dialog? We currently have a work-a-round by clicking the "Yes" button for the user but the program can sometimes miss clicking Yes and the user sees that dialog.

Thanks,

Tyler

Answers (0)