6
Reply

Crystal Report throwing Missing Parameter while PDF export

Durga Velusamy

Durga Velusamy

Jan 1 2017 5:45 AM
250

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)