in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Header Text converted to double?! OnDraw exception

Last post 05-15-2008 2:27 PM by thiagofm. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-07-2008 5:35 PM

    Header Text converted to double?! OnDraw exception

    Hi all,

    I have a weird error in hands..
    In the Chart drawing, it is being tried to convert the text property of header to double, which causes an exception and the chart is not drawn.
    The same thing is happening to the legend of this object.

    Someone have any workaround about this issue? 

    C1.Win.C1Chart.dll version: 1.0.20032.13084
    Please let me know if is required other informations (by debugging or component version) to understand the problem.

     Thanks for any advice

     

    Thiago 

    Filed under: , , ,
  • 05-08-2008 9:40 AM In reply to

    Re: Header Text converted to double?! OnDraw exception

    Explaining better:

    I've created the chart in a Windows Form of .Net Framework 1.1. Set up several properties (there are 2 charts, a bar and a line chart) and everything gone OK. When set up the header text of both charts (the legend of line chart cause the same), on runtime, while drawing the charts, the component tries to convert the text property to double, and obviously gets an exception (catch in call stack).

    Testing, i create a new form and insert a chart only changing the text header: the same problem.
    Thank you

    Thiago
     

  • 05-15-2008 2:27 PM In reply to

    Re: Header Text converted to double?! OnDraw exception

    Hello Thiago,

    Thank you for contacting ComponentOne Technical Support.

    What I understand is that you are getting an exception error while trying to set the Header Text at
    runtime.

    Thiago, from the information you have provided, I can see that you are using a very old build of
    C1Charts for .net 1.x. While replicating the issue, I can see an exception being thrown though the
    message is not the same as you have mentioned.

    However, this issue has been resolved in the later releases of the C1Chart. I would request you to
    try the latest build of C1Chart and verify if the issue is resolved. The latest build of the C1Chart is
    available for download from the given web link:

    http://prerelease.componentone.com/dotnet/C1Chart/2008-T1/C1Chart_1.0.20081.18078.zip

    I believe this should resolve the issue. In case the issue persists, I would request you to send me
    a sample application which replicates the issue so that I can research on this further. If you have
    any other doubts, please feel free to contact us. We will be glad to assist you.

    Looking forward to your response.

    Regards,
    Allen


    Allen Smith
    Technical Support, ComponentOne LLC

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.