Spending a lot's of time i figure out that you can save a crystal report as pdf in your defined path, It can be your local drive or server path.
List<Student> studentList = new List<Student>();
studentList = GetStudentInfo();
ReportDocument details = new ReportDocument();
details.Load(Server.MapPath("../Report/rptStudent.rpt"));
details.SetDataSource(studentList);
details.ExportToDisk(ExportFormatType.PortableDocFormat, "D:\\ff.pdf");
Hope it will help you.
Comments
Post a Comment