Durga Velusamy

Durga Velusamy

  • NA
  • 318
  • 115.2k

Crystal Report throwing Missing Parameter while PDF export

Jan 1 2017 5:45 AM

Crystal Report throwing Missing Parameter while PDF export

only some times .
 
DateTime prntdate=DateTime.Now;
string printeddate=prntdate.ToString("dd/MM/yyyy");
if (!Directory.Exists(@"D:/Bills/" + printeddate))
{
Directory.CreateDirectory(@"D:/Bills/" + printeddate);
}
CrDiskFileDestinationOptions.DiskFileName = "D:\\Bills\\" + printeddate + "\\" + label1.Text + ".pdf";
CrExportOptions = crystalReport.ExportOptions;
{
CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
CrExportOptions.FormatOptions = CrFormatTypeOptions;
}
crystalReport.Export();
 

Answers (6)