Vim is a powerful text editor favored by many sysadmins and developers - here are some commands that you'll want to keep in your back pocket!
When I run the above code, the Invoice report is displayed in the viewer, however it's empty -- apparently no result set is being returned. When I preview the report in the designer and supply a parameter value when prompted, the report displays perfectly.
Private Sub frmReportViewer_Load(sender As Object, e As EventArgs) Handles MyBase.Load Try Dim rptInvoice As New SD.Invoice Dim crParameterField As New ParameterField Dim crParameterFields As New ParameterFields Dim crParameterDiscreteValue As New ParameterDiscreteValue crParameterField.Name = "@RepairOrderNumber" crParameterDiscreteValue.Value = miRepairOrderNumber crParameterField.CurrentValues.Add(crParameterDiscreteValue) crParameterFields.Add(crParameterField) crViewer.ParameterFieldInfo = crParameterFields crViewer.ReportSource = rptInvoice Catch ex As Exception ' error handling code omitted, but no error is raised. End Try End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.