Crystal Report Error exporting records in Excel format.Purba Anggara10yAsked Aug 4, 2016, 9:25 PM831Visual Basic .NET Help me....
Vishal Jadav10y agoPosted Aug 5, 2016, 7:37 AMAccepted answerHi, It's been a long i worked crystal report. But according to the message it says that a parameter is missing its value. Might be your formula field or any db field value is not available. Try debugging the code and try to identify the each field values. You will get the error origin. Thanks. 0
Joginder Banger10y agoPosted Aug 5, 2016, 5:16 AMHi Purba,what this error come bind crystal reports or when export in excel format. am not sure but sound look like this type of error come when pass parametersReportDocumentcryRpt=newReportDocument();cryRpt.Load(Environment.CurrentDirectory+"\\Reports\\CashReceipt_DL_JHARKHAND.rpt");TableLogOnInfocrtableLogoninfo=newTableLogOnInfo();ConnectionInfocrConnectionInfo=newConnectionInfo();TablesCrTables;crConnectionInfo.ServerName=ConnectionDetails.DSNName;crConnectionInfo.DatabaseName=ConnectionDetails.DatabaseName;crConnectionInfo.UserID=ConnectionDetails.UserID;crConnectionInfo.Password=ConnectionDetails.Password;CrTables=cryRpt.Database.Tables;foreach(CrystalDecisions.CrystalReports.Engine.TableCrTableinCrTables){crtableLogoninfo=CrTable.LogOnInfo;crtableLogoninfo.ConnectionInfo=crConnectionInfo;CrTable.ApplyLogOnInfo(crtableLogoninfo);}cryRpt.Refresh();cryRpt.RecordSelectionFormula="{DL_INFO.DLNUMBER}=\""+txtDLNo.Text+"\"";cryRpt.PrintToPrinter(1,true,1,1);Please check above code and let me know if face any problem.0
Vishal JadavPosted Aug 5, 2016, 7:37 AM
Joginder BangerPosted Aug 5, 2016, 5:16 AM