CppMax Homepage
Forum Home Forum Home > ReportMax > ReportMax
  New Posts New Posts RSS Feed - FormatException
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


 Post Reply Post Reply
PeKl View Drop Down

Joined: 27 Jan 2015
Location: Czech Republic
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote PeKl Quote  Post ReplyReply Direct Link To This Post Topic: FormatException
    Posted: 27 Jan 2015 at 9:49am
I just have found ReportMax and I tried Tutorial 1 from this site:

I did all settings according to my environment, but in time of starting the program i have got FormatException Error. The Error details are included.
I tried to find the solution and it could be that in Czech language setting we use comma ("0,55") as decimal point ("0.55") in double and decimal numbers.
After changing Language setting to US the program run perfectly.

Is it some setting or is it the failure in the ReportMax component?
Thanks for answer.

Petr Klement

System.FormatException was unhandled
  Message=Vstupní řetězec nemá správný formát. (English: Input string has not correct format)
       v System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
       v System.Convert.ToDouble(String value)
       v CppMax.ReportMax.ReportMaxPage.ProcessKeyValueScript(String lpKeyValue)
       v CppMax.ReportMax.ReportMaxPage.SetInfoScript(String strScript)
       v CppMax.ReportMax.ReportMaxViewer.LoadReportFromMemory(String strData, Int32 nPageIndex)
       v CppMax.ReportMax.ReportMaxViewer.LoadReportFromFile(String sReportFile, Int32 nPageIndex)
       v CppMax.ReportMax.ReportMaxViewer.OnCreateControl()
       v System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       v System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       v System.Windows.Forms.Control.CreateControl()
       v System.Windows.Forms.Control.WmShowWindow(Message& m)
       v System.Windows.Forms.Control.WndProc(Message& m)
       v System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       v System.Windows.Forms.ContainerControl.WndProc(Message& m)
       v System.Windows.Forms.Form.WmShowWindow(Message& m)
       v System.Windows.Forms.Form.WndProc(Message& m)
       v System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       v System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       v System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Edited by PeKl - 27 Jan 2015 at 9:51am
Back to Top
emadns View Drop Down
Admin Group
Admin Group

Joined: 06 Feb 2012
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote emadns Quote  Post ReplyReply Direct Link To This Post Posted: 28 Jan 2015 at 7:23pm
We confirmed this is a bug and we will fix it in the next release. Thank you for your feedback 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.06
Copyright ©2001-2016 Web Wiz Ltd.