I'm trying to setup and schedule an automation script where a standard report is generated and then the report is e-mailed out.
I can test run the report, but as soon as I schedule the script, I get the following message in the output window:
Unable to cast object of type 'DevExpress.XtraReports.UI.ReportPrintContextWin' to type 'DevExpress.XtraReports.UI.ReportPrintContext'.
-- 10/4/2011 11:53:54 AM: Person_Script.log: at DevExpress.XtraReports.UI.ReportRuntime.ContextDictionary`1.CreateInstance(String asmName, String typeName)
-- at DevExpress.XtraReports.UI.ReportRuntime.ContextDictionary`1.GetContext(Type reportType)
-- at DevExpress.XtraReports.UI.ReportRuntime.CreatePrintTool(XtraReport report)
-- at DevExpress.XtraReports.UI.XtraReport.get_ReportPrintTool()
-- at DevExpress.XtraReports.UI.XtraReport.CreateDocument(Single progressRange, Boolean buildPagesInBackground)
-- at DevExpress.XtraReports.UI.XtraReport.CreateDocument()
-- at Quest.Toad.Workflow.Activities.Database.ToadReportActivity.ExportReport()
-- 10/4/2011 11:53:54 AM: Person_Script.log: Failed
At times afterwards, the test run may not work as I get a running process in the background that keeps going and going until I click on the red 'X' to stop the process and then I'll get the message:
Toad Data Reports cannot be cancelled.
Then the same "Unable to case object of type" error occurs again when testing or scheduling the script.
You need to be signed in and under a current maintenance contract to view premium knowledge articles.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center