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.ExportToDisk(ExportFormatType.PortableDocFormat, "D:\\ff.pdf");  

Hope it will help you.

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...