System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'
Posted: Wed Mar 08, 2023 11:32 am
Hello team,
I was trying to generate a report however I got an error " System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'" when trying to process a date value, below is the log from the application, could you please suggest what could be wrong?
2023-02-10 10:14:25,750|GenerateReportMiddleware|ERROR: Exception while generating the report.
System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'
Cannot implicitly convert type 'int' to 'System.DateTime'
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile(StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile()
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress, Int32 fromPage, Int32 toPage)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
I was trying to generate a report however I got an error " System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'" when trying to process a date value, below is the log from the application, could you please suggest what could be wrong?
2023-02-10 10:14:25,750|GenerateReportMiddleware|ERROR: Exception while generating the report.
System.Exception: Compilation error: Cannot implicitly convert type 'int' to 'System.DateTime'
Cannot implicitly convert type 'int' to 'System.DateTime'
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile(StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile()
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress, Int32 fromPage, Int32 toPage)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)