AyaNova v3.1.7 with SQL Database on server. I got this error while using the server.
I don’t do quotes very often, which is why I hadn’t noticed this before. I did one today and attempted to print it out and no matter which template I chose I got this error (I even got it when I went into edit the template and clicked on the preview tab):
Unhandled Exception:
The following error occurred when the script in procedure Detail1.OnBeforePrint:
Object reference not set to an instance of an object.
Procedure Detail1.OnBeforePrint was executed, it will not be called again.
System.Exception
Stack Trace:
at DevExpress.XtraReports.XRControlEventsScriptManager.RunEvent(String eventName, Object[] parameters)
at DevExpress.XtraReports.UI.XRControl.RunEventScript(String eventName, Object[] args)
at DevExpress.XtraReports.UI.XRControl.OnBeforePrint(PrintEventArgs e)
at DevExpress.XtraReports.UI.Band.GenerateContent(DocumentBand docBand, Int32 rowIndex)
at DevExpress.XtraReports.UI.Band.DevExpress.XtraReports.Native.IContentGenerator.GenerateWithSubreports(DocumentBand docBand, Int32 rowIndex)
at DevExpress.XtraReports.UI.Band.CreateDocumentBand(Int32 rowIndex, RootDocumentBand rootDocBand)
at DevExpress.XtraReports.UI.DetailBand.CreateDocumentBand(Int32 rowIndex, RootDocumentBand rootDocBand)
at DevExpress.XtraReports.Native.Printing.DetailWriter.WriteDetail()
at DevExpress.XtraReports.Native.Printing.DetailWriterWithDS.WriteInternal()
at DevExpress.XtraReports.Native.Printing.DetailWriter.Write()
at DevExpress.XtraReports.Native.Printing.DocumentBuilder.Build()
at DevExpress.XtraReports.UI.XtraReportBase.BuildDocument(DocumentBuilder builder)
at DevExpress.XtraReports.UI.DetailReportBand.BuildDocument(DocumentBuilder builder)
at DevExpress.XtraReports.UI.XtraReportBase.WriteToDocument(DocumentBuilder docBuilder)
at DevExpress.XtraReports.Native.Printing.DetailWriter.WriteDetail()
at DevExpress.XtraReports.Native.Printing.DetailWriterWithDS.WriteInternal()
at DevExpress.XtraReports.Native.Printing.DetailWriter.Write()
at DevExpress.XtraReports.Native.Printing.DocumentBuilder.Build()
at DevExpress.XtraReports.UI.XtraReportBase.BuildDocument(DocumentBuilder builder)
at DevExpress.XtraReports.UI.DetailReportBand.BuildDocument(DocumentBuilder builder)
at DevExpress.XtraReports.UI.XtraReportBase.WriteToDocument(DocumentBuilder docBuilder)
at DevExpress.XtraReports.Native.Printing.DetailWriter.WriteDetail()
at DevExpress.XtraReports.Native.Printing.DetailWriter.WriteInternal()
at DevExpress.XtraReports.Native.Printing.DetailWriter.Write()
at DevExpress.XtraReports.Native.Printing.DocumentBuilder.Build()
at DevExpress.XtraReports.Native.Printing.RootReportBuilder.Build()
at DevExpress.XtraReports.UI.XtraReportBase.BuildDocument(DocumentBuilder builder)
at DevExpress.XtraReports.UI.XtraReport.BuildDocument(DocumentBuilder builder)
at DevExpress.XtraReports.UI.XtraReport.CreateDocument(PrintingSystem ps, Single progressRange)
at DevExpress.XtraReports.UI.XtraReport.CreateDocument(Single progressRange)
at DevExpress.XtraReports.UI.XtraReport.CreateIfEmpty(Single progressRange)
at DevExpress.XtraReports.UI.XtraReport.ShowPreviewDialog()
at AyaNova.Util.ReportHandleToolClick(ToolBase lTool, String ReportKey, Object DataSource)
at AyaNova.WorkorderForm.(Object , ToolClickEventArgs )
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(T