fast report error: System.TypeInitializationException
Using fast-report .Net, I encounter the following problem :
Assume you have a .Net project that require reporting some stuff. I use fast report to produce reporting stuff. my code is obvious: rpt.Prepare(); rpt.ShowPrepared();. rpt is an object of Report.
At runtime, when the report is preparing, the following error arises. It is interesting that if I click continue, the error is appearing again. If I don't move the mouse on the report, the error is not appear. If I don't show the preview dialog (rpt.Print()[img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />, there isn't any problem and my report will be printed. Usually in windows 8, the following problem arises:[/img]
Assume you have a .Net project that require reporting some stuff. I use fast report to produce reporting stuff. my code is obvious: rpt.Prepare(); rpt.ShowPrepared();. rpt is an object of Report.
At runtime, when the report is preparing, the following error arises. It is interesting that if I click continue, the error is appearing again. If I don't move the mouse on the report, the error is not appear. If I don't show the preview dialog (rpt.Print()[img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />, there isn't any problem and my report will be printed. Usually in windows 8, the following problem arises:[/img]
System.TypeInitializationException: The type initializer for 'FastReport.Design.PageDesigners.Page.ReportWorkspace' threw an exception. ---> System.FormatException: Input string was not in a correct format.
at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
at FastReport.Utils.Converter.FromString(Type type, String value)
at FastReport.Utils.Converter.StringToFloat(String value)
at FastReport.Design.PageDesigners.Page.ReportWorkspace..cctor()
--- End of inner exception stack trace ---
at FastReport.BandBase.PointInObject(PointF point)
at FastReport.ReportPage.HitTest(PointF mouse)
at FastReport.Preview.PreviewWorkspace.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)