![]() ![]() You did show where the exception with the message "Object reference not set to an instance of an object" is thrown, but you did not provide all the detail. ![]() The error show the code which in Program.cs file : The interesting thing is, when I run in debugging mode(F11) then it will show the records in report(no error), but when I run without debugging mode(F5) then it will give that error. MessageBox.Show( " Items not Found!!", " Winform App", MessageBoxButtons.OK, MessageBoxIcon.Warning) SR.crystalReportViewer1.ReportSource = StR Data_Conn DC = new Data_Conn(Application.StartupPath) ĭC.SelectSta( " select comName,iType,iName,(qty & ' ' & unit) as qtyU,mrp,sealBscVATrs,unitPri from StockDetails sd,ItemsTbl it where it.iCode=sd.iCode ", " StockDetails") ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |