Hi
this is the error : 'An error occurred while processing the local report
- NullReferenceException : Object reference not set to an instance of an object
- FrmRpt.RPAfficher.LocalReport.ReportEmbeddedResource = "GestionDeStock.RAP.RP_Produit.rdlc";
- FrmRpt.RPAfficher.LocalReport.ReportEmbeddedResource = "GestionDeStock.RAP.RP_Produit.rdlc";
- ReportParameter PCat = new ReportParameter("RP_Categorie", Nom_Categorie);
- ReportParameter PMarque = new ReportParameter("RP_Marque", Product.Nom_Produit);
- ReportParameter PCouleur = new ReportParameter("RP_Couleur", Product.Couleur_Produit);
- ReportParameter PTaille = new ReportParameter("RP_Taille", Product.Taille_Produit.ToString());
- ReportParameter PQuantite = new ReportParameter("RP_Quantite", Product.Quatite_Produit.ToString());
- ReportParameter PPrix = new ReportParameter("RP_Prix", Product.Prix_Produit.ToString());
- string ImageString = Convert.ToBase64String(Product.Image_Produit);
- ReportParameter PImage = new ReportParameter("RP_Image", ImageString);
- FrmRpt.RPAfficher.LocalReport.SetParameters(new ReportParameter[] { PCat, PMarque, PCouleur, PTaille, PQuantite, PPrix, PImage });
- FrmRpt.RPAfficher.RefreshReport();
- FrmRpt.ShowDialog();
have a nice day
Jefferson S. MottaPosted May 13, 2020, 5:23 AM
Yanis SaadiPosted May 11, 2020, 10:24 AM
Salman BegPosted May 11, 2020, 12:59 AM