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]
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)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.