Hi,
After the upgrade to the latest version I am now getting the following error:
Unable to cast object of type 'TimeAndAttendance.TimeAndAttendanceReport' to type 'Telerik.Reporting.ReportSource'.
This happens when I do the following. This is bastardised code from the system but enough to generate the error.
I am assuming and hoping that it's something simple to fix...
Regards,
Jon
After the upgrade to the latest version I am now getting the following error:
Unable to cast object of type 'TimeAndAttendance.TimeAndAttendanceReport' to type 'Telerik.Reporting.ReportSource'.
This happens when I do the following. This is bastardised code from the system but enough to generate the error.
I am assuming and hoping that it's something simple to fix...
Regards,
Jon
Dim
report
As
TimeAndAttendance.TimeAndAttendanceReport =
New
TimeAndAttendance.TimeAndAttendanceReport()
GenerateAndSendReportByRequest(report)
Public
Shared
Sub
GenerateAndSendReportByRequest(
ByVal
report
As
Telerik.Reporting.IReportDocument)
Dim
reportProcessor
As
New
Telerik.Reporting.Processing.ReportProcessor()
Dim
deviceInfo
As
Hashtable =
New
Hashtable()
deviceInfo(
"FontEmbedding"
) =
"Subset"
Try
Dim
result
As
Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport(
"PDF"
, report, deviceInfo)
Catch
ex
As
Exception
End
Try
End
Sub