Hi
I have a large VB project that uses Crystal reports. i have recently migrated to Visual Studio 2013 (Crystal for Vs version 13 update 10)
i have 1 report that runs on my machine with no issues, but when i roll it out to users i get an error
my pc is running 64 bit windows, the majority of my clients are running 32 bit
the report has 2 parameters passed to it, both of which are dates. the date passed is in a date format and there is no issue with the data being passed.
i've tried it using 1 date only and get the same error
when the report is run on a client machine the following error is generated:-
?DateFrom and ?DateTo are both date parameters and both contain date values
please help i'm desperate and need to implement this report ASAP
************** Exception Text **************
CrystalDecisions.CrystalReports.Engine.FormulaException: A string is required here.
Details: errorKind
Error in File temp_deca800b-455d-4f71-89c9-d133bbd36626 {15C5702B-37A5-4833-BFE2-78E51ED36619}.rpt:
Error in formula Record_Selection:
'{VW_WitnessReport.CalendarDate} in {?DateFrom} to {?DateTo}'
A string is required here.
Details: errorKind ---> System.Runtime.InteropServices.COMException (0x80041019): A string is required here.
Details: errorKind
Error in File temp_deca800b-455d-4f71-89c9-d133bbd36626 {15C5702B-37A5-4833-BFE2-78E51ED36619}.rpt:
Error in formula Record_Selection:
'{VW_WitnessReport.CalendarDate} in {?DateFrom} to {?DateTo}'
A string is required here.
Details: errorKind
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
at Abbey.FrmPrintReports.WitnessReport(DateTime DateFrom, DateTime DateTo, String OpType)
at Abbey.FrmPrintReports.FrmPrintReports_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)