Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
9
Answers
when clicking print button in report showing error
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
deepa ashwi
11y
903
1
Reply
when clicking print button in report showing error as 'no printer are installed'.but when i run in my local system this error not occuring... only after uploading the file to the website i am facing this problem..can anyone help me..
protected void Print_Click(object sender, EventArgs e)
{
try
{
ReportDocument oReport1 = new ReportDocument();
oReport1.Load(Server.MapPath("~/Report/BranchPaySlip.rpt"));
connection.DoCRLogin(oReport1);
CrystalReportViewer1.ReportSource = oReport1;
CrystalReportViewer1.DataBind();
oReport1.PrintToPrinter(1, false, 0, 0);
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}
Post
Reset
Cancel
Answers (
9
)
Next Recommended Forum
Changing column name in Mysql using c# asp.net
How do i get this Format in asp.net?