TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Yanis Saadi
NA
6
601
What wrong with my code, An error occurred local report
May 10 2020 8:16 PM
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
Reply
Answers (
3
)
How could force Console application in Csharp to exit!
How do i get count of CPU cores using C#