I had added crytal32.ocx control, but it showing an error
System.Runtime. InteropServices .COMException was unhandled
Message="Except ion from HRESULT: 0x800A501B"
Source="Interop .Crystal"
ErrorCode=-2146807781
Help me out
Thanks
BJ
System.Runtime. InteropServices .COMException was unhandled
Message="Except ion from HRESULT: 0x800A501B"
Source="Interop .Crystal"
ErrorCode=-2146807781
Code:
//code sniffet--
IDataReader IDR;
SqlConnection CN = new SqlConnection("Data source= BJ-PC\\SQlEXPRESS;User ID= sa; Password=sa1; Initial Catalog=Bakery");
CN.Open();
SqlCommand Cmd = new SqlCommand("Select * from Tax", CN);
IDR = Cmd.ExecuteReader();
crpt.Reset();
crpt.DiscardSavedData = true;
crpt.ReportFileName = "D:\\DSA\\Reports\\Audit.rpt";
crpt.SetTablePrivateData(0,3, IDR);
crpt.Action = 1;
Thanks
BJ