Wednesday, April 23, 2014

Crystal report Save as Pdf in defined path


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.

vfpoledeb.1 provider is not registered on the local machine

Have u Install VFP Ole DB Provider in your System ? If No then Please Install it from following link. http://www.microsoft.com/download...