Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

SubReport with ParameterFieldName - Crystal Report

$
0
0

Staff       Based on the structure below, as you would to implement a subreport, where I am using stored procedure, and I am thinking of using the ParameterFieldName parameter, where the report parameter is id_Pedido_Item, you would have any tips to pass me?

 

Dim rptPrint As ReportDocument = New ReportDocument       

rptPrint.Load(Me.nm_Path_RPT)       

rptPrint.DataSourceConnections.Clear()       

For nr_Servidor As Integer = 0 To rptPrint.DataSourceConnections.Count - 1             rptPrint.DataSourceConnections(nr_Servidor).SetConnection(Me.nm_Servidor, Me.nmBancoDados, Me.nm_Usuario, Me.ds_Senha)             rptPrint.SetDatabaseLogon(Me.nm_Usuario, Me.ds_Senha, Me.nm_Servidor, Me.nmBancoDados)       

Next       

Dim paramFields As New ParameterFields       

Dim paramField As New ParameterField       

Dim discreteVal As New ParameterDiscreteValue       

paramField.ParameterFieldName = "id_Pedido_Principal"       

discreteVal.Value = "00001234"       

paramField.CurrentValues.Add(discreteVal)       

paramFields.Add(paramField)       

CrystalReportViewer1.ParameterFieldInfo = paramFields       

CrystalReportViewer1.ReportSource = rptPrint

 

Message was edited by: Don Williams


Viewing all articles
Browse latest Browse all 3636

Trending Articles