Profile Picture

code errors after upgrade from 2.0 to 4.0 netframework

Posted By Warwick Payten 12 Years Ago
Author
Message
Warwick Payten
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 5, Visits: 1

Hi all

We recently have been going through a lengthy process to upgrade from VS2003 to VS2010 this included upgrading nevron charts from:

Nevron Chart for .NET Ent. Q4 2005 (N.CH.NET.40.ENT),

to

Nevron .NET Vision Pro. 2010 Vol.1 (N.DNV.NET.101.PRO

We have managed to get every thing working using Net framework 2.0. If we migrate to 4.0, we however, get hundreds of errors across all our nevron chart components.   The following is the simplest chart we have in our package I have double ## those lines that currently have errors

Any help appreciated Thanks

Sub Chart1()

##        NChartControl1.BackgroundStyle.FillStyle = New NGradientFillStyle(GradientStyle.Horizontal, GradientVariant.Variant2, Color.Ivory, Color.Gray)

        m_Chart = NChartControl1.Charts(0)

        m_Line = CType(m_Chart.Series.Add(SeriesType.Line), NLineSeries)
        m_Line1 = CType(m_Chart.Series.Add(SeriesType.Line), NLineSeries)
        m_Line2 = CType(m_Chart.Series.Add(SeriesType.Line), NLineSeries)
     
        m_Chart.Width = 150
        m_Chart.Height = 70

        Dim I As Integer
        Dim New_Rate_Temp As Double

        m_Line.BorderStyle.Color = Color.Black
        m_Line1.BorderStyle.Color = Color.Red
        m_Line2.BorderStyle.Color = Color.Blue
        New_Rate_Temp = 0

        For I = 0 To F_length - 2
            m_Line.AddDataPoint(New NDataPoint(New_Rate_Temp, x_data(I)))
            m_Line1.AddDataPoint(New NDataPoint(New_Rate_Temp, Del_T_Rate(I)))
            m_Line2.AddDataPoint(New NDataPoint(New_Rate_Temp, Out_Temp(I)))
            New_Rate_Temp = New_Rate_Temp + DeltaT
        Next

        m_Line1.UseXValues = True
        m_Line.Name = "Steam Temperature"
        m_Line1.Name = "Rate of Change"
        m_Line.UseXValues = True
        m_Line1.DataLabelStyle.Visible = False
        m_Line1.MarkerStyle.Visible = False
        m_Line2.Name = "Outside wall Temperature"
        m_Line2.UseXValues = True
        m_Line2.DataLabelStyle.Visible = False
        m_Line2.MarkerStyle.Visible = False
        m_Line1.DisplayOnAxis(StandardAxis.SecondaryY, True)
        m_Line1.DisplayOnAxis(StandardAxis.PrimaryY, False)

        m_Chart.Axis(StandardAxis.SecondaryY).Visible = True

##        m_Chart.Axis(StandardAxis.SecondaryY).ScaleMode = AxisScaleMode.Numeric
##        m_Chart.Axis(StandardAxis.SecondaryY).MajorGridLineStyle.Pattern = LinePattern.Dot
##        m_Chart.Axis(StandardAxis.SecondaryY).Title = "Rate of Change"
##        m_Chart.Axis(StandardAxis.PrimaryY).DimensionScale.AutoLabels = False
##        m_Chart.Axis(StandardAxis.PrimaryY).ValueFormatter.FormatValue(3.1)

##        m_Chart.Axis(StandardAxis.PrimaryY).Title = "Temperature"
##        m_Chart.Axis(StandardAxis.PrimaryX).Title = "Time"
##        m_Chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.Numeric
##        m_Chart.Axis(StandardAxis.PrimaryX).SetMajorShowAtWall(ChartWallType.Back, True)
##        m_Chart.Axis(StandardAxis.PrimaryX).MajorGridLineStyle.Pattern = LinePattern.Dot
##        m_Chart.Axis(StandardAxis.PrimaryY).MajorGridLineStyle.Pattern = LinePattern.Dot
             m_Chart.Wall(ChartWallType.Back).Width = 0

        NChartControl1.Refresh()
    End Sub


 



Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Warwick,

You need to use the scale configurators in newer versons of the control - for example:

NNumericScaleConfigurator scaleY = new NNumericScaleConfigurator();
scaleY.MajorGridStyle.LineStyle.Pattern =
LinePattern.Dot;
scaleY.Title.Text =
"Rate of Change";
scaleY.MajorGridStyle.SetShowAtWall(
ChartWallType.Back, true);
chart.Axis(
StandardAxis.PrimaryY).ScaleConfigurator = scaleY;

changes the title and major grid style properties.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic