Hi
this is the error : 'An error occurred while processing the local report
- NullReferenceException : Object reference not set to an instance of an object
So i thing the problem is with this line :
- FrmRpt.RPAfficher.LocalReport.ReportEmbeddedResource = "GestionDeStock.RAP.RP_Produit.rdlc";
and this is my code :
- 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();
HELPPPPP please :'(
have a nice day