Hi,
The below code shows how to pass the paramater and export it to the PDF format...
This message is appering when you try to export report and having parameters in that report...
Passing the paramter in below format will export the report without any errors...
' The Below code passes parameter to Crystal Report
Dim discretevalue As ParameterDiscreteValue
Dim values As ParameterValues
discretevalue = New ParameterDiscreteValue
discretevalue.Value = "Imtiaz" ' Assign parameter
values = New ParameterValues
values.Add(discretevalue)
crReportDocument.DataDefinition.ParameterFields(0).ApplyCurrentValues(values)
' The below code converst into PDF file format
Dim oStream As New MemoryStream
oStream = crReportDocument.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray())