Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,
I have created a windows application and trying to generate a report using crystal report, when I run that program from visual studio the report is working well but on that same computer when I tried from exe file of that program the crstal report is not generating and the application closes with showing following error.please help me as soon as posible. it will be a great help for me, thanks a lot in advance


XML
<b><pre lang="css">Description:
  Stopped working

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: Women Health Center.exe
  Application Version:  1.0.0.0
  Application Timestamp:    52627bf6
  Fault Module Name:    KERNELBASE.dll
  Fault Module Version: 6.1.7600.17206
  Fault Module Timestamp:   50e65f4f
  Exception Code:   e0434352
  Exception Offset: 0000969b
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:    16393

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&amp;clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt</pre>
</b>
Posted
Updated 23-Oct-13 19:30pm
v2
Comments
Hasan Habib Surzo 24-Oct-13 2:24am    
Can you please share the code. From your description it is not clear. also you can check custom variable in CR. Need to know about your CR call procedure.
Kumar Pardeep 24-Oct-13 3:35am    
private void FrmRegisterPtCReport_Load(object sender, EventArgs e)
{
try
{
if (prcoe == "")
{
MessageBox.Show("Please Select a Patient to Print");
}
else
{
NewPatientReport rep = new NewPatientReport();
PatientRegistry ds = new PatientRegistry();
tblNewPatientMasterTableAdapter adp = new tblNewPatientMasterTableAdapter();
adp.Fill(ds.tblNewPatientMaster);
rep.SetDataSource(ds);
rep.SetParameterValue("PrCode", prcoe);
crystalReportViewer1.ReportSource = rep;
}
}
catch
{
}
}
Hasan Habib Surzo 24-Oct-13 3:39am    
Can you do one thing, please delete your exe file from bin directory and rerun the software first from vs. then check. also check your crystal report is embedded or not in properties.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900