using CrystalDecisions.Shared; using System; using System.Windows.Forms; namespace Bremington { public partial class AniversariantesRV : Form { public AniversariantesRV() { InitializeComponent(); } private void CrystalReportViewer1_Load(object sender, EventArgs e) { setReportParameters(); } private void setReportParameters() { ParameterFields paramFields = new ParameterFields(); ParameterField pfMes = new ParameterField(); ParameterField pfUnidade = new ParameterField(); pfMes.ParameterFieldName = "prmMes"; pfUnidade.ParameterFieldName = "prmUnidade"; ParameterDiscreteValue dvMes = new ParameterDiscreteValue(); ParameterDiscreteValue dvUnidade = new ParameterDiscreteValue(); dvMes.Value = Aniversariantes.varMes; dvUnidade.Value = Aniversariantes.varUnidade; pfMes.CurrentValues.Add(dvMes); pfUnidade.CurrentValues.Add(dvUnidade); paramFields.Add(pfMes); paramFields.Add(pfUnidade); crystalReportViewer1.ParameterFieldInfo = paramFields; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)