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
Bhavesh Vankar
769
1.1k
88.2k
Print current Record
Jan 29 2021 7:07 AM
i have tried below code to print current record on crystal report.Report is generated when press button but report is blank printing. records not printing on crystal report what to do...?
SqlConnection con =
new
SqlConnection(
this
.con);
SqlDataAdapter sda =
new
SqlDataAdapter(
"Select * from S_TEST Where S_ID='"
+ txtidno.Text +
"'"
, con);
DataSet ds =
new
DataSet();
sda.Fill(ds);
ReportDocument rpd =
new
ReportDocument();
rpd.Load(Server.MapPath(
"~/Report/studentpass.rpt"
));
rpd.SetDataSource(ds.Tables[0]);
CrptViewer.ReportSource = rpd;
rpd.PrintToPrinter(1,
false
, 0, 0);
Reply
Answers (
2
)
C# equivalent of Python's struct.pack and sum?
What is the use of threadstart class and thread class in c#.net?