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.

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...