Exception with long subreport

Exception with long subreport

Forum member · May 20, 2008
I'm evaluating the product, and one of the first things I tried was creating a report with a subreport that had a LOT of rows in it. It blew up. The CustomerMaster table in the database I'm working against has only two rows. The WorkOrder table, on the other hand, has 109,519 rows. Approximately ninety percent of have the same CustomerID, the remainder point to the other. Adding a "TOP 10" to the select clause in the subreport makes the exception Not Happen. Exception info: System.Exception was unhandled Message="Maximum Float Value Exceeded." Source="ceTe.DynamicPDF.20" StackTrace: at zz93.ed.c(Single A_0) at ceTe.DynamicPDF.IO.OperatorWriter.Write_Tm(Single x, Single y) at ceTe.DynamicPDF.Text.TextLineList.g(OperatorWriter A_0, Single A_1, Single A_2, Int32 A_3, Int32 A_4, Boolean A_5) at ceTe.DynamicPDF.Text.TextLineList.Draw(OperatorWriter writer, Single x, Single y, TextAlign align, Color textColor, Boolean underline, Boolean rightToLeft) at ceTe.DynamicPDF.ReportWriter.ReportElements.ReportTextArea.DrawRotated(PageWriter writer) at ceTe.DynamicPDF.PageElements.RotatingPageElement.Draw(PageWriter writer) at zz93.ar.a(Single A_0, Single A_1, PageWriter A_2) at zz93.ia.a(PageWriter A_0) at ceTe.DynamicPDF.PageElements.Group.Draw(PageWriter writer) at ceTe.DynamicPDF.PageElements.ContentArea.Draw(PageWriter writer) at ceTe.DynamicPDF.PageElements.Group.Draw(PageWriter writer) at ceTe.DynamicPDF.Page.b(PageWriter A_0) at ceTe.DynamicPDF.Page.DrawEntries(DocumentWriter writer, Int32 pageNumber, Int32 sectionPageNumber) at ceTe.DynamicPDF.Page.a(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3) at zz93.ab.d(Int32 A_0) at zz93.ab.v() at ceTe.DynamicPDF.Document.Draw(String filePath) at WindowsFormsApplication1.Form1.cmdPDF_Click(Object sender, EventArgs e) in C:\Documents and Settings\mgates\My Documents\Source\Utilities\Internal\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 27 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at WindowsFormsApplication1.Program.Main() in C:\Documents and Settings\mgates\My Documents\Source\Utilities\Internal\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs:line 18 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: The DPLX <?xml version="1.0"?> <document xsi:schemaLocation="http://www.DynamicPDF.com http://www.DynamicPDF.com/schemas/DPLX4.xsd" version="4.0" id="Document" author="" keywords="" title="" subject="" xmlns="http://www.DynamicPDF.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <report id="Report1"> <query id="Query" dataProvider="msSql" connectionString="Data Source=&quot;sc-dev\sqlexpress&quot;;Initial Catalog=MGVTWinMergenthaler;user id=foo;pwd=bar"> <sql>SELECT CustomerID From CustomerMaster</sql> </query> <header id="Header" height="50"> <label id="Label1" x="19" y="9" height="24" width="183" text="Header Heady Heady head!"/> </header> <body id="Body" height="77"> <recordBox id="RecordBox1" dataFormat="" field="CustomerID" width="155" x="3" y="4" height="16"/> <subReport id="SubReport1" groupBy="" width="226" x="7" y="8"> <query id="Query1" dataProvider="msSql" connectionString="Data Source=sc-dev\sqlexpress;Initial Catalog=MGVTWinMergenthaler;user id=foo;pwd=bar"> <sql>SELECT WorkOrderNumber, SystemEquipmentNumber FROM WorkOrder WHERE WorkOrder.CustomerID = '#CustomerID#'</sql> </query> <header id="Header1" height="21"> <label id="Label2" x="14" y="4" height="18" width="65" text="WON"/> <label id="Label3" x="142" y="4" height="16" width="50" text="SEN"/> </header> <body id="Body1" height="21"> <recordBox id="RecordBox2" dataFormat="" x="4" y="6" height="15" width="109" field="WorkOrderNumber"/> <recordBox id="RecordBox3" dataFormat="" x="120" y="8" height="16" width="103" field="SystemEquipmentNumber"/> </body> <footer id="Footer1"/> </subReport> </body> <footer id="Footer" height="50"/> </report> </document>

Re: Exception with long subreport

Support · May 21, 2008
Hello, Can you please send over the .dplx file and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it furhter. Also please send a database script with some sample data which can be used with the dplx file. This will be easy for us to troubleshoot the problem. Thanks, ceTe Software Support Team.